Jeremy Palmer <JPalmer <at> linz.govt.nz> writes: > > How do you hide the gml_id field from a WFS service? I think I'm setting the correct configuration options, > but it doesn't seem to work: ... > > Interestingly if I use the new GDAL 2.0 open options (ie. ogrinfo -oo GML_EXPOSE_GML_ID=NO -oo > GML_EXPOSE_FID=NO). I get: > > Warning 6: driver WFS does not support open option GML_EXPOSE_GML_ID > Warning 6: driver WFS does not support open option GML_EXPOSE_FID > > I'm using GDAL 2.0 beta 2. > > Thanks > Jeremy
Hi, Documentation of the WFS driver and config options http://www.gdal.org/drv_wfs.html https://trac.osgeo.org/gdal/wiki/ConfigOptions do not mention that GML_EXPOSE_GML_ID and GML_EXPOSE_FID are supported. Compare with another configuration option: GML_INVERT_AXIS_ORDER_IF_LAT_LONG GML driver specific. Added in GDAL/OGR 1.8.0. See GML driver documentation. Also impacts WFS driver behaviour. I think that you are trying to use a non-existing feature. I don't know why it could not be supported, though. Wait for a confirmation from some developer and consider making a feature request. For me ogrinfo from the data I captured from WFS and saved into GML with default parameters looks indeed confusing: OGRFeature(lv_editable_points):12 fid (String) = lv_editable_points.12 gml_id (String) = editable_points.13 string (String) = kkk .... -Jukka Rahkonen- _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
