feature-id in getfeatureinfo requests

Richard Duivenvoorde rdmailings at DUIF.NET
Mon Feb 5 06:58:44 PST 2007


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