feature-id in getfeatureinfo requests

Richard Duivenvoorde rdmailings at DUIF.NET
Mon Feb 5 07:25:27 PST 2007


Hi Bart,

Thanks for the quick response :-)

I tried that already, but in the text output, I see ALL columns of the 
table (though not the 'oid' as a normal 'attribute') in the output. But 
there is this line:
'Feature 17246'
Which IS the oid/feature_id....

In the gml I also receive ALL columns in the output, but NO reference to 
this 17246 oid/feature_id/id...

I tried all these:
       "ows_include_items" "all"
       "gml_include_items" "all"
       "wms_include_items" "all"
...

is the oid-column not an official attribute column or something like that?


Richard


Bart van den Eijnden (OSGIS) wrote:
> 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