Opened 13 years ago

Closed 13 years ago

#4250 closed defect (fixed)

fid attribute is not unique

Reported by: hdam99 Owned by: warmerdam
Priority: normal Milestone: 1.9.0
Component: OGR_SF Version: 1.8.1
Severity: normal Keywords: gml
Cc:

Description

The fid attribute of a feature type always starts with F0, then increase by 1 for new feature instance. If there are multiple layers contained in a file, this cannot be published to a WFS server.

Maybe it should use feature_type name to differentiate, e.g. ogr:featureABC_0, ogr:featureABC:1, ..., ogr:featureDEF_0, etc.

Change History (1)

comment:1 by Even Rouault, 13 years ago

Component: defaultOGR_SF
Resolution: fixed
Status: newclosed

r23118 /trunk/gdal/ogr/ogrsf_frmts/gml/ (ogr_gml.h ogrgmllayer.cpp): GML: change format of (GML 2.1.1) FID generated from Fxxx to layer_name.xxx (where xxx is the OGR FID) to ensure uniqueness (consistently with the format use for gml:id when outputing for GML 3), as requested by GML standard. Note: a GML_USE_OLD_FID_FORMAT configuration option has been created, just in provision if some people realyed strongly on the old format (#4250)

Note: See TracTickets for help on using tickets.