WG: [UMN_MAPSERVER-USERS] WG: WFS-GetFeature-Response without primary key column

Arnd Wippermann arndw at WTAL.DE
Sat Oct 20 18:45:59 EDT 2007


Hello,

I have forgotten to use ogrinfo and to look in the internet.

The problem is not mapserver, but the ogr-driver:

With ogrinfo I get no column OGC_FID.

Looking in the internet I found this:

// The OGC_FID is for internal use, not a real user visible column.
   if( EQUAL(oField.GetNameRef(),"OGC_FID") )
   continue;
 
What I not understand, in which way I can manipulate the db, when I can't
see the key column.

I'm able to display the features as WFS-layer and manipulate the geometry.
But I have to use an own added column for updating the record. This means
two columns as PRIMARY KEY in one table.


Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/ginfo/





-----Ursprüngliche Nachricht-----
Von: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] Im
Auftrag von Arnd Wippermann
Gesendet: Samstag, 20. Oktober 2007 15:12
An: MAPSERVER-USERS at LISTS.UMN.EDU
Betreff: [UMN_MAPSERVER-USERS] WG: WFS-GetFeature-Response without primary
key column

Hello,

i'm using a SQLite db to store my geometry as WKT. To display the features
as WMS and WFS works well.

But I have one problem. I have included in the LAYER METADATA:

'wfs_featureid'      'OGC_FID'
'gml_include_items'  'all'

The WFS-GetFeature-Response shows this warning:

<!-- WARNING: FeatureId item 'OGC_FID' not found in typename 'POLYGONS'. -->

The column is in the db. It is the key for the records (INTEGER PRIMARY
KEY).

Why will this column not be in the WFS-GetFeature-Response?

I need the value, because I want with an OpenLayers application update the
records in the db. Currently I use a work around.

Example:http://gis.ibbeck.de/ginfo/apps/OLExamples/SphericalMercator/OL_9009
13_frames.html

(Mapserver 4.10, gdal14)

Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/ginfo/



More information about the mapserver-users mailing list