wfs GetFeature request

N Zhou zhou_naijun at HOTMAIL.COM
Wed Dec 22 10:10:30 EST 2004


Hi Bart,

Thank you very much for your comment. Instead of using propertyname outside
Filter, I tried to get a property in Filter, but I still got the whole set
of properties.

http://myhost/cgi-bin/mapserv?map=/mymap.map&Service=WFS&version=1.0.0&Request=GetFeature&Typename=water&FILTER=<Filter><Within><PropertyName>water/PID</PropertyName><gml:Box><gml:coordinates>minx,miny
maxx,maxy</gml:coordinates></gml:Box></Within></Filter>

Is this a correct URL request to get a property of PID?

Thanks.

Naijun

>From: "Bart van den Eijnden" <bartvde at xs4all.nl>
>To: "N Zhou" <zhou_naijun at hotmail.com>, MAPSERVER-USERS at lists.umn.edu
>Subject: Re: [UMN_MAPSERVER-USERS] wfs GetFeature request
>Date: Tue, 21 Dec 2004 20:43:30 +0100
>
>Hi,
>
>AFAIK this is not implemented, see also:
>
>http://mapserver.gis.umn.edu/bugs/show_bug.cgi?id=675
>
>Although this specific bug is about a HTTP POST request, it references the
>same feature which is missing (filtering fields/properties).
>
>Best regards,
>Bart
>
>On Tue, 21 Dec 2004 13:41:11 -0600, N Zhou <zhou_naijun at HOTMAIL.COM> wrote:
>
>>Hi,
>>
>>I try to query and retrieve specific properties of a feature. My URL
>>request
>>is:
>>http://myhost/cgi-bin/mapserv?map=/mymap.map&Service=WFS&version=1.0.0&Request=GetFeature&PROPERTYNAME=water/PID&Typename=water
>>
>>But I got the full set of properties instead of PID, like the requrest
>>without PROPERTYNAME. Could any one tell me what is wrong with the
>>request,
>>or the .map file?
>>
>>Thank you very much!
>>
>>N. Zhou
>>
>>PS: the DescribeFeatureType returned:
>>
>><?xml version="1.0" encoding="ISO-8859-1" ?>
>><schema targetNamespace="http://www.ttt.org/myns"
>>xmlns:myns="http://www.ttt.org/myns"
>>xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>>xmlns="http://www.w3.org/2001/XMLSchema"
>>xmlns:gml="http://www.opengis.net/gml" elementFormDefault="qualified"
>>version="0.1">
>>   <import namespace="http://www.opengis.net/gml"
>>schemaLocation="http://www.opengis.net/gml/2.1/feature.xsd" />
>><element name="water" type="myns:water_Type"
>>substitutionGroup="gml:_Feature" />
>>    <complexType name="water_Type">
>>       <complexContent>
>>          <extension base="gml:AbstractFeatureType">
>>             <sequence>
>>                 <element name="MS_GEOMETRY" type="gml:PointPropertyType"
>>nillable="false" />
>>                 <element name="PID" type="string" />
>>                 ......
>>            </sequence>
>>          </extension>
>>       </complexContent>
>>   </complexType>
>>
>></schema>
>>
>
>
>
>--
>Using Opera's revolutionary e-mail client: http://www.opera.com/m2/



More information about the mapserver-users mailing list