Ah right, and how about:
gml_featureid "oid"
?
If this does not work, can you post your DATA statement?
Best regards,
Bart
--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl
--------- Oorspronkelijk bericht --------
Van: Richard Duivenvoorde <[EMAIL PROTECTED]>
Naar: Bart van den Eijnden OSGIS <[EMAIL PROTECTED]>,
[email protected] <[email protected]>
Onderwerp: Re: [UMN_MAPSERVER-USERS] feature-id in getfeatureinfo
requests
Datum: 05/02/07 13:25
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 <[EMAIL PROTECTED]>
> Naar: [email protected]
<[email protected]>
> 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
>>
>>
> >