Querying and labeling a WFS layer in Mapserver WFS client

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Thu Dec 8 09:50:37 EST 2005


I haven't tried this myself but maybe you need to include the namespace in front of the column name, so myns:XXX_ID.

What does ogrinfo report on your gml file? What are the names of the attributes when you check the summary with ogrinfo?

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> frequens <frequens at GMAIL.COM> 12/8/2005 3:47:22 PM >>>
The documentation on Mapserver WFS capatibilities being rather short,
(the new website comments section is extremely valuable addition, in case of
WFS the only comment explains how to handle layer's attribute when Mapserver
serving WFS),


I have stumbled into a problem when trying  to query and/or label the WFS
provided layer.

The .gml file (Mapserver WFS server) contains geometries and the id of the
features:
(e.g        <myns:XXX_ID>3</myns:XXX_ID>). The query does not return
anything (no hilighted features nor attributes) while at labeling the
Mapserver dies with:

Error in msOGRLayerInitItemInfo(): Invalid Field name: XXX_ID

Any hint how to setup Mapserver WFS Client layer to be queryable and/or
labeled would be appreciated.

BR

frequens



More information about the mapserver-users mailing list