feature-id in getfeatureinfo requests

Bart van den Eijnden (OSGIS) bartvde at OSGIS.NL
Mon Feb 5 07:03:12 PST 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??):
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <msGMLOutput
> 	 xmlns:gml="http://www.opengis.net/gml"
> 	 xmlns:xlink="http://www.w3.org/1999/xlink"
> 	 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> 	<testpoints_layer>
> 		<testpoints_feature>
> 			<gml:boundedBy>
> 				<gml:Box srsName="EPSG:28992">			 
> <gml:coordinates>67349.250981,549785.660401 
> 67349.250981,549785.660401</gml:coordinates>
> 				</gml:Box>
> 			</gml:boundedBy>
> 			<bla>zyz</bla>
> 			<foo></foo>
> 		</testpoints_feature>
> 	</testpoints_layer>
> </msGMLOutput>
> 
> 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