php_mapscript problem, which is not present in cgi-mode
Stephan Holl
stephan.holl at INTEVATION.DE
Thu Nov 23 06:46:11 PST 2006
Dear Mapserver-gurus,
I am working with php_mapscript 4.8.4 and have some strange investigations.
When I use an ovf-table construct and use the shp2img-tool, the correct image
gets rendered, but not using php_mapscript.
my testcase:
dl("php_mapscript_48.so");
$mapFile = "/var/www/web1/html/gis/config/testmap_2classes.map";
$map = ms_newMapObj($mapFile);
$image=$map->draw();
$image_url=$image->saveWebImage();
the error:
Warning: [MapServer Error]: msDrawMap(): Failed to draw layer named
'statistic'. in /var/www/web1/html/gis/config/test.php on line 6
Warning: [MapServer Error]: msOGRFileOpen(): Open failed for OGR connection
`join_together.ovf'. SQL statement failed, or returned no layer result:
select n2n_wert, n2n_idflm, n2n_wertdat, frmt_wert, format_wert from bld join
'join.ovf'.values on AGS = n2n_idflaeche where AGS like '%'
in /var/www/web1/html/gis/config/test.php on line 6
Fatal error: Call to a member function on a non-object
in /var/www/web1/html/gis/config/test.php on line 8
ogrinfo reports no errors when accessing the join_together.ovf itself.
Thanks for any pointers on this.
Best
Stephan
--
Stephan Holl : www.intevation.de/~stephan | GISpatcher: www.gispatcher.de
Intevation GmbH: www.intevation.de | GAV e.V.: www.grass-verein.de
Georgstr.4 : 49074 Osnabrück |
More information about the MapServer-users
mailing list