[mapserver-users] how remove the geometry from wfs response

Andrea Peri aperi2007 at gmail.com
Fri Jun 16 03:34:30 PDT 2017


hi even, thx for hint.

Could this trick work with wfs 2.0?
it is the only mapserver wfs version with some optimization for spatialite.

Il 16 Giu 2017 12:25, "Even Rouault" <even.rouault at spatialys.com> ha
scritto:

> On jeudi 15 juin 2017 20:22:04 CEST Andrea Peri wrote:
>
> > Hi,
>
> > I need to force the remove from the wfs response of the geometry . I need
>
> > to avoid that the users could take the geometry and allow only the
>
> > alphanumeric attributes.
>
> > Is this allowed from mapserver ?
>
>
>
> Andrea,
>
>
>
> Digging into the code, I found that setting in the LAYER.METADATA
>
>
>
> "gml_geometries" "none"
>
>
>
> will do the job.
>
>
>
> This trick is used internally in particular to implement GetPropertyValue.
> But digging into history, I actually see it was done on purpose for
> GetFeature as well per
>
> https://github.com/mapserver/mapserver/issues/1718
>
>
>
> It is just that the documentation for it in is missing in
>
> http://mapserver.org/ogc/wfs_server.html . Doesn't seem to be tested in
> the regression suite as far as I can see, so lucky it still works.
>
>
>
> Note: this trick will only work for MapServer integrated GML output. OGR
> outputformat doesn't honour this setting.
>
>
>
>
>
> Even
>
>
>
> --
>
> Spatialys - Geospatial professional services
>
> http://www.spatialys.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20170616/9f3261ba/attachment-0001.html>


More information about the mapserver-users mailing list