[mapserver-users] MapServer 6.4.1 OGR output error
Eichner, Andreas - SID
Andreas.Eichner at sid.sachsen.de
Mon Feb 23 06:52:27 PST 2015
Maybe you tried to use the result directly?
The owsDispatch() method creates content _plus_ headers. To get the plain content you need to write the output into a buffer, strip off the headers and fetch the contents of the buffer:
ms_ioinstallstdouttobuffer();
$map->owsDispatch($req);
ms_iostripstdoutbuffercontentheaders();
$result = ms_iogetstdoutbufferstring();
print_r($result);
To correct my self: the Wfs_getfeature_formatlist is a comma separated list.
> -----Ursprüngliche Nachricht-----
> Von: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-
> bounces at lists.osgeo.org] Im Auftrag von Bruno D
> Gesendet: Montag, 23. Februar 2015 15:11
> An: mapserver-users at lists.osgeo.org
> Betreff: Re: [mapserver-users] MapServer 6.4.1 OGR output error
>
> Thank you so much Andreas, your solution works perfectly ! I would never
> have
> thought of it by myself.
>
> Now all I have to do is understand why the generated zip files seem
> invalid
> (I can see their content with 7zip, but I can't extract them)...
>
> Thanks everyone for your help !
>
>
>
>
> --
> View this message in context: http://osgeo-
> org.1560.x6.nabble.com/MapServer-6-4-1-OGR-output-error-
> tp5172655p5189444.html
> Sent from the Mapserver - User mailing list archive at Nabble.com.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list