[mapserver-users] Include data extents in WFS layer

Martin Kofahl martin.kofahl at gmail.com
Mon Jun 30 00:46:50 PDT 2014


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 <tom at nthsense.net>:

> Thanks, Martin – that sounds like exactly what I need.  Any idea how to
> get this into a GeoJSON response?
>
>
>
> *From:* mapserver-users-bounces at lists.osgeo.org [mailto:
> mapserver-users-bounces at lists.osgeo.org] *On Behalf Of *Martin Kofahl
> *Sent:* Friday, June 27, 2014 4:46 PM
> *To:* mapserver-users at 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 <tom at 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 at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20140630/3f38b98f/attachment.html>


More information about the mapserver-users mailing list