[mapserver-dev] [WFS] define the geometry column in WFS as datasource

Yves Jacolin yves.jacolin at camptocamp.com
Thu Sep 20 08:42:43 PDT 2012


Hello,

This week I find a limitation in MapServer configuration when using a 
WFS servcie as a datasource (aka MS as a WFS client).

As you can see here [1] the geometry column is hardcoded in code but 
some WFS services are not using Geometry as a column name (ArcGIS WFS 
sercices are using Shape instead, GeoServer is depending configuration 
of the layer).

I prepared a PR this week and tested it with a GeoServer instance. this 
PR add a new metadata for WFS client nammed geometryName (it could be a 
better name of course) to setup the name of the geometry column in the 
filter send by MS.

I have also some modifications related to namespace issue which should 
be added in tags, two examples:

<ogc:Filter xmlns:ogc='http://www.opengis.net/ogc'>
<gml:Box xmlns:gml="http://www.opengis.net/gml">

I would like to know what is the best process: do I need to create two 
tickets and propose my PR in some way?

Does MapServer developers are interesting about this two modifications?

Does this contribution could be added in the next release of MS (aka 
6.2), is it too late? Are you interesting to get a PR in 6.0.x branche?

The last information is that I am **not** a developper at all but it was 
not so hard to do it finally :)

Thanks,

Y.
[1] https://github.com/mapserver/mapserver/blob/master/mapwfslayer.c#L242
-- 
Responsable Formation et Support
Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex
Tel (France) : +33 4 79 26 57 98
Mob. : +33 6 18 75 42 21
Fax : 04 79 70 15 81
Mail : yves.jacolin at camptocamp.com
http://www.camptocamp.com


More information about the mapserver-dev mailing list