[Mapserver-users] PHP Mapscript - executeWFSGetfeature how?

Nicol Hermann mapserver at geochem.de
Wed Jun 23 12:10:57 EDT 2004


Dear List,

i'am trying to execute the executeWFSGetfeature() Function with
PHPMapscript. Unfortunately i always get back an empty sting. 
When i execute the same Map-File with the following CGI-URL i get back a
gml output as expected:

http://emil/cgi-bin/mapserv_42?MAP=/usr/local/apache/cgi-bin/wfstest.map&REQUEST=getFeature&service=wfs&version=1.0.0&&typename=plz,deutschlandkarte&BBOX=8.43,50,8.60,50.2

Attached you can find the php code:
<?

dl("../bin/php_mapscript_42.so");
$map = ms_newMapObj('/usr/local/apache/cgi-bin/wfstest.map') or  
die('Unable to open mapfile.');
$layer = $map->getLayerByName("plz");
$wfsurl = $layer -> executeWFSGetfeature();
print ($wfsurl);

?>

The DUMP Option is set to TRUE.
I am using mapserver 4.2, gdal 1.2.0 (with xerces 1.6) on a debian 3.0r2
box.

Any hints what i have to change to get the gml output with PHP-Mapscript
too?

Many thanks
Nicol




More information about the mapserver-users mailing list