[mapserver-dev] OGR Output and GeoJson

Frank Warmerdam warmerdam at pobox.com
Thu Mar 24 08:37:02 EDT 2011


On 11-03-24 08:10 AM, Thomas Gratier wrote:
> Hello list,
>
> I've seen that I can already produce GeoJson from Mapserver using templates
> e.g. http://mapserver.org/development/rfc/ms-rfc-36.html?highlight=geojson
> It doesn't seem the simplest way for this.  Because of this, I want to know if
> with Mapserver 6.0., we can now produce directly Geojson from OGR output.
> I've haven't seen nothing about this in the RFC
> http://mapserver.org/en/trunk/de/output/ogr_output.html

Thomas,

GeoJSON is an OGR supported format so you should be able to setup an
OUTPUTFORMAT declaration something like:

OUTPUTFORMAT
   NAME "OGRGeoJSON"
   DRIVER "OGR/GeoJSON"
END

Otherwise things should work as in the RFC.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent



More information about the mapserver-dev mailing list