feature-id in getfeatureinfo requests

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Mon Feb 5 10:03:12 EST 2007


Hi Richard,

you need to add 

GML_INCLUDE_ITEMS "all"

to your LAYER's METADATA section.

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: Richard Duivenvoorde <rdmailings at DUIF.NET>
Naar: MAPSERVER-USERS at LISTS.UMN.EDU <MAPSERVER-USERS at LISTS.UMN.EDU>
Onderwerp: [UMN_MAPSERVER-USERS] feature-id in getfeatureinfo requests
Datum: 05/02/07 13:01

> Hi All,
> 
> busy using getfeatureinfo from a postgresql/postgis layer.
> 
> Mapserver version 4.8.3 (...)
> Postgresql-table is a point table and has a oid column (create script 
> with 'WITH OIDS').
> 
> I managed to get the getfeatureinfo up and running, but stumble upon the 
> missing (feature)-id in the gml output:
> 
> When I do an info format of 'text/plain' I'll receive something like:
> 
> GetFeatureInfo results:
> Layer 'testpoints'
>    Feature 17246:
>      bla = 'zyz'
>      foo= ''
> 
> but when i ask for 'application/vnd.ogc.gml' as info format I receive 
> gml without the feature-id (not even as a normal 'oid' property??):
> 
> &lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;
> &lt;msGMLOutput
> 	 xmlns:gml=&quot;http://www.opengis.net/gml&quot;
> 	 xmlns:xlink=&quot;http://www.w3.org/1999/xlink&quot;
> 	 xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
> 	&lt;testpoints_layer&gt;
> 		&lt;testpoints_feature&gt;
> 			&lt;gml:boundedBy&gt;
> 				&lt;gml:Box srsName=&quot;EPSG:28992&quot;&gt;			 
> &lt;gml:coordinates&gt;67349.250981,549785.660401 
> 67349.250981,549785.660401&lt;/gml:coordinates&gt;
> 				&lt;/gml:Box&gt;
> 			&lt;/gml:boundedBy&gt;
> 			&lt;bla&gt;zyz&lt;/bla&gt;
> 			&lt;foo&gt;&lt;/foo&gt;
> 		&lt;/testpoints_feature&gt;
> 	&lt;/testpoints_layer&gt;
> &lt;/msGMLOutput&gt;
> 
> Am I missing some metadata property in my mapfile? I would expect either 
> a feature-id attribute in the testpoints_feature element, OR oid-element 
>   as child of the testpoints_feature element.
> 
> TIA,
> 
> Richard
> 
> 



More information about the mapserver-users mailing list