[mapserver-dev] RFC 118 - Vendor-specific WMS FILTER parameter
Michael Smith
michael.smith.erdc at gmail.com
Thu Feb 9 09:04:23 PST 2017
Jukka,
We tested MapServer WFS geometry filters and the geometry name used
doesn't matter, any name can be used. MapServer automatically uses the
spatial field identified for the layer. So this would apply to WMS as
well.
Mike
----
Michael Smith
US Army Corps
Remote Sensing GIS/Center
michael.smith at usace.army.mil
-----Original Message-----
From: mapserver-dev <mapserver-dev-bounces at lists.osgeo.org> on behalf of
"Rahkonen Jukka (MML)" <jukka.rahkonen at maanmittauslaitos.fi>
Date: Thursday, February 9, 2017 at 3:48 AM
To: Daniel Morissette <dmorissette at mapgears.com>, 'MapServer Dev List'
<mapserver-dev at lists.osgeo.org>
Subject: Re: [mapserver-dev] RFC 118 - Vendor-specific WMS FILTER parameter
>Hi,
>
>I doubt anybody is using the FILTER vendor option with Geoserver because
>it supports CQL_FILTER which is much less painless to use
>http://docs.geoserver.org/latest/en/user/filter/ecql_reference.html#filter
>-ecql-reference
>http://docs.geoserver.org/latest/en/user/tutorials/cql/cql_tutorial.html#c
>ql-tutorial
>
>I guess that OGC XML filter is easier to implement for us. It seems by
>the RFC that these filters could be simplified when it comes to
>namespaces which makes them shorter and easier to write even the same
>filter would not work with schema validating servers:
>
>Mapserver filter:
><Filter><DWithin><PropertyName>Geometry</PropertyName><gml:Point><gml:coor
>dinates>-60.18,46.10</gml:coordinates></gml:Point><Distance
>units='dd'>0.05</Distance></DWithin></Filter>
>
>Geoserver filter:
>filter=%3CFilter%20xmlns:gml=%22http://www.opengis.net/gml%22%3E%3CInterse
>cts%3E%3CPropertyName%3Ethe_geom%3C/PropertyName%3E%3Cgml:Point%20srsName=
>%224326%22%3E%3Cgml:coordinates%3E-74.817265,40.5296504%3C/gml:coordinates
>%3E%3C/gml:Point%3E%3C/Intersects%3E%3C/Filter%3E
>
>This reminds me about one practical problem with using OGC filters for
>spatial queries: User should know the name of the geometry field. If WFS
>is not active then Mapserver users do not have any way to know what name
>to use because we do not support DescribeLayer, or do we?
>However, Mapserver does internally know what geometry to use and also WFS
>BBOX query works as KVP without giving the name of the geometry column.
>
>Suggestion: do not require PropertyName in spatial filters, or accept
>anything
><PropertyName>Foo</PropertyName>
>
>The example is GML2, would filter be limited to that or should it support
>also GML3? That would bring troubles, not least with srsName and axis
>order. How about srsName and default projection? If srsName is not given
>with the geometry in filter, is it interpreted to be the same as the
>SRS/CRS of GetMap?
>
>-Jukka Rahkonen-
>
>
>
>
>________________________________________
>Daniel Morissette wrote:
>[mapserver-dev] RFC 118 - Vendor-specific WMS FILTER parameter
>
>Hi Devs,
>
>FYI I just added RFC 118 about the addition of a vendor-specific FILTER
>parameter in the WMS interface to allow easier filtering of GetMap and
>GetFeatureInfo requests by client-side JS applications:
>
>http://mapserver.org/development/rfc/ms-rfc-118.html
>
>I will leave the RFC open for discussions for the next few days and will
>be working on this during the code sprint this week.
>
>Daniel
>--
>Daniel Morissette
>http://www.mapgears.com/
>T: +1 418-696-5056 #201
>
>http://evouala.com/ - Location Intelligence Made Easy
>_______________________________________________
>mapserver-dev mailing list
>mapserver-dev at lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/mapserver-dev
>_______________________________________________
>mapserver-dev mailing list
>mapserver-dev at lists.osgeo.org
>https://lists.osgeo.org/mailman/listinfo/mapserver-dev
More information about the mapserver-dev
mailing list