[mapserver-users] How to filter ArcGIS WFS service?

Fawcett, David (MPCA) David.Fawcett at state.mn.us
Mon Apr 5 07:32:04 PDT 2010


If the bug was on ESRI's side, I am sure the bug would have been fixed just as quickly....

; /

-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org [mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Miloslav Kmet
Sent: Saturday, April 03, 2010 8:57 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] How to filter ArcGIS WFS service?

Hi. What a quick response. Thank you very much for that. 


On štvrtok 01 Apríl 2010 21:18:01 you wrote:
> Hi There,
> 
>  It should be now fixed. Bug related to it is
> http://trac.osgeo.org/mapserver/ticket/3414.
> 
> regards,
> 
> Miloslav Kmeť wrote:
> > Hello.
> > 
> > I need to find a solution how to filter ArcGIS wfs service in mapserver
> > WFS client. I read this document:
> > http://mapserver.org/ogc/filter_encoding.html and there is no topic
> > about xml ns prefixes in filter.
> > 
> > It seems, that esri's wfs services need xml namespace ogc: in every
> > filter element.
> > 
> > I tried id with get from browser and this works as expected:
> > <ogc:Filter><ogc:PropertyIsEqualTo><ogc:PropertyName>eia_eia:IDAKCIA</ogc
> > :PropertyName><ogc:Literal>1833</ogc:Literal></ogc:PropertyIsEqualTo></og
> > c:Filter>
> > ?service=wfs&version=1.1.0&request=getFeature&typename=eia_eia:EIA_Local
> > ity&filter=%3Cogc:Filter%3E%3Cogc:PropertyIsEqualTo%3E%3Cogc:PropertyName
> > %3Eeia_eia:IDAKCIA%3C/ogc:PropertyName%3E%3Cogc:Literal%3E1833%3C/ogc:Lit
> > eral%3E%3C/ogc:PropertyIsEqualTo%3E%3C/ogc:Filter%3E (tinyurlized:
> > http://tinyurl.com/yanqfry)
> > 
> > But this won't filter anything and gives me all features:
> > <Filter><PropertyIsEqualTo><PropertyName>eia_eia:IDAKCIA</PropertyName><L
> > iteral>1833</Literal></PropertyIsEqualTo></Filter>
> > ?service=wfs&version=1.1.0&request=getFeature&typename=eia_eia:EIA_Local
> > ity&filter=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Eeia_eia:I
> > DAKCIA%3C/PropertyName%3E%3CLiteral%3E1833%3C/Literal%3E%3C/PropertyIsEqu
> > alTo%3E%3C/Filter%3E (tinyurlized: http://tinyurl.com/y9t3rld)
> > 
> > I doubt, that I can get some response from Esri on this topic, because of
> > this thread: http://forums.esri.com/Thread.asp?c=158&f=2276&t=273488
> > where folks
> > 
> > So the question is - how to add the ogc: namespace prefix into
> > wfs_filter?
> > 
> > This is how I have configured the WFS in my mapfile:
> >     CONNECTIONTYPE WFS
> >     CONNECTION
> > 
> > "http://globus.sazp.sk/arcgis/services/eia/eia/mapserver/wfsserver"
> > 
> >     METADATA
> >     
> >       "wfs_version" "1.0.0"
> >       "wfs_service" "WFS"
> >       "wfs_request_method" "GET"
> >       "wfs_srs" "EPSG:4326"
> >       "wfs_typename" "eia_eia:EIA_locality"
> >       "wfs_filter"
> > 
> > "<PropertyIsEqualTo><PropertyName>eia_eia:IDAKCIA</PropertyName><Literal>
> > 1833</Literal></PropertyIsEqualTo>"
> > 
> >       "wfs_maxfeatures" "1000"
> >     
> >     END
> > 
> > Thank you.

-- 
Miloslav Kmeť
Banská Bystrica
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the MapServer-users mailing list