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
_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users