You can't use OGR output formats that way. Calling msPrepareImage() on them triggers a NULL pointer dereference (fixed in https://github.com/mapserver/mapserver/pull/5069).
So using $image = $map->draw() $image_url = $image->saveWebImage() is definitely the wrong way. The MapServer code hints to use msGMLWriteQuery() for that which seems to be exported as $map->savequeryasgml(string filename, string namespace) Documentation is rare on that... > Am I the only one having problems outputting OGR files ? Does anybody know > what I could be doing wrong ? _______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users