[mapserver-users] OGR/GeoJSON WRITE_BBOX

Tom tom at nthsense.net
Mon Jun 30 08:02:57 PDT 2014


Hi folks,

 

I'm trying to use OGR to output GeoJSON from my WFS service.  I'd like to
include the BBOX (equivalent of gml:boundedBy) at the FeatureCollection
level.  From the documentation, it looks like I should be able to set it up
this way:

 

OUTPUTFORMAT

                  NAME "GEOJSON"

                  DRIVER "OGR/GeoJSON"

                  MIMETYPE "application/json; subtype=geojson"

                  FORMATOPTION "STORAGE=memory"

                  FORMATOPTION "FORM=SIMPLE"

                FORMATOPTION "LCO:WRITE_BBOX=YES"

END

 

According to http://www.gdal.org/drv_geojson.html, WRITE_BBOX is exactly
what I need.  According to the docs, it should create a bbox at the
FeatureCollection and the Feature level.  For me, it generates a bbox for
every feature, but not one for the top-level FeatureCollection, which OGR
claims to support.

 

Does anyone have experience with this?  Any idea how I could determine if
this would be a Mapserver issue, or an OGR issue?

 

Thanks,

 

Tom

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140630/841fd56c/attachment.htm>


More information about the MapServer-users mailing list