[opengeodb] Undefined Class Name
Taner Ayaydin
taney at web.de
Sam Feb 24 15:13:53 CET 2007
> Hallo Liste,
>
> location.php
> /geo/Map.php
> /geo/Geo.php
> /geo/Object.php
> /geo/helpers/e00.php
> /geo/helpes/map.php
> /geo/sources (DB.php, DB.Nima.php, DB_OpenGeoDB.php...)
>
> Vorher hatte ich versucht, die ganzen PEAR-Sachen in httpdocs einzufügen,
> hab es aber jetzt alles unter usr/share/pear installiert. In GEO.php war
> auch damals require_once 'Geo/sources/DB.php' anstatt require_once
> 'DB.php'.
> Da er die DB.php ja nicht mehr von /geo/sources/.. abzapft, wird das
> Verzeichnis geo/sources in httpdocs wahrscheinlich nicht mehr nötig sein
> ne?
>
> In location.php kann ich nun einen Ort eingeben, diese sagt dann, dass ein
> Ort/Treffer gefunden werden konnte, ohne drunter die Ergebnisse
> aufzulisten.
> Wenn ich nun http://xxx/karte/location.php?id=19255 aufrufe, erhalte ich
> folgende Meldung:
> Da ich leider kein PHP kann und zurzeit .JSP mache, wäre lieb, wenn mir
> jemand weiterhelfen könnte:
>
> Warning: imagecreate(): Invalid image dimensions in
> /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on line 54
>
> Warning: imagecolorallocate(): supplied argument is not a valid Image
> resource in /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on
> line 148
>
> Warning: imagecolorallocate(): supplied argument is not a valid Image
> resource in /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on
> line 148
>
> Warning: imagecolorallocate(): supplied argument is not a valid Image
> resource in /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on
> line 148
>
> Warning: imagecolorallocate(): supplied argument is not a valid Image
> resource in /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on
> line 148
>
> Warning: imagecolorallocate(): supplied argument is not a valid Image
> resource in /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on
> line 148
>
> Warning: imagecolorallocate(): supplied argument is not a valid Image
> resource in /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on
> line 148
>
> Warning: imagecolorallocate(): supplied argument is not a valid Image
> resource in /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on
> line 148
>
> Warning: imagepng(): supplied argument is not a valid Image resource in
> /home/httpd/vhosts/xxx/httpdocs/karte/Geo/helpers/map.php on line 137
>
>
> In Zeile 148 sieht die map.php so aus:
>
> function color($r, $g, $b) {
> return imagecolorallocate($this->img, $r, $g, $b);
>
> Zeile 137
>
> function dump($fn) {
> return imagepng($this->img, $fn);
>
> Zeile 54
>
> $this->img = imagecreate($this->size_x, $this->size_y);
>
> In http://xxx/karte/location.php?id=19255 wurde auch ein Bild eingebunden,
> dass es garnicht gibt. Den Ordner maps gibt es auch nicht.
>
> http://xxx/karte/maps/19255.png
>
> Grüße
Hallo noch mal, habe am Ende den Fehler halbwegs gefunden. Habe einen Ordner
/maps angelegt mit einer D.png.
Jetzt bringt er keine Fehlermeldung mehr, jedoch ist kein Punkt auf der
Karte und keine Angaben zur Stadt vorhanden:
Verwaltungsgliederung
Staat
Koordinaten
L?ge
/
Breite
/
Zusatzinformationen
Liegt es eventuell daran, dass wir nicht die neue
opengeodb-0.2.4d-UTF8-mysql drauf haben, sondern noch die alte mit
geodb_adm0, geodb_adm1 und so.
Grüße
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: http://lists.phpbar.de/pipermail/opengeodb/attachments/20070224/7e67da65/attachment-0001.html