Hi Tom, are you using your own geojson template as described in Template-Driven Output doc [1]? You mal try then the [minx], [miny] or [rawminx], [rawminy] etc. tags described in the templating doc [2]. Didn't try that myself, actually.
Kind regards Martin [1] http://mapserver.org/output/template_output.html#examples [2] http://mapserver.org/mapfile/template.html#format 2014-06-27 23:32 GMT+02:00 Tom <t...@nthsense.net>: > Thanks, Martin – that sounds like exactly what I need. Any idea how to > get this into a GeoJSON response? > > > > *From:* mapserver-users-boun...@lists.osgeo.org [mailto: > mapserver-users-boun...@lists.osgeo.org] *On Behalf Of *Martin Kofahl > *Sent:* Friday, June 27, 2014 4:46 PM > *To:* mapserver-users@lists.osgeo.org > *Subject:* Re: [mapserver-users] Include data extents in WFS layer > > > > Hi Tom, > > you should have an gml:boundedBy xml element in the wfs GetFeature > response which represents the extent of the returned features. > > > > Kind regards, > > Martin > > 2014-06-27 16:16 GMT+02:00 Tom <t...@nthsense.net>: > > Hi folks, > > > > Do you know if it is possible to include the extents of the data in a WFS > response? If the BBOX I request only contains a few features , I would > like to zoom my map to their bounds. I can calculate this on the client > side, but I would prefer to have Mapserver feed me that info. > > > > Thanks!! > > > > Tom > > > > > > > _______________________________________________ > mapserver-users mailing list > mapserver-users@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/mapserver-users > > >
_______________________________________________ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users