span8
span4
span8
span4
Hello
我使用WFS读者提取数据,is there any way we could query the WFS to retrieve only specific features
Thanks
Hi@boubcher,
The XML Filter example from@nielsgerritslooks great.You happened to mention to me that this was an Esri WFS service so I was able to get this to work further by adding the OGC namespace to the request.See:
https://gis.stackexchange.com/questions/111356/cant-figure-out-wfs-url-filter-what-ami-doing-wrong
E.g.
Yes,you can useXML Filter Expressionto get specific features.By defaultFilter Encodingshould work.
Filter Encoding example:此获取请求will return only the features with the field "identificatie" = "420100000006908".
The decomposed request is:
http://geodata.nationaalgeoregister.nl/bag/wfs?&service=wfs&version=1.0.0&request=getfeature&typename=bag:pand&Filter=identificatie 420100000006908
Be aware:
- You have to enter Pretty-Print XML in the field XML Filter Expression to make it work.
identificatie 420100000006908
- Filter operations are case sensitive.
- If you query WFS version 2.0.0 you have to use namespace,asdocumented.
You might be able to useFilter Functionsif the server allows this.Check the获取能力,在“过滤功能”下搜索“功能名称”。
Many WFS servers also support stored queries as a way of making it easier to execute complex queries especially across multiple feature types.see:https://knowledge.亚搏在线safe.com/idea/72814/add-support-for-ogc-wfs-stored-queries.html?
Thanks,Danilo
we don't have a problem with the feature type,but we looking to retrieve only certain features within this feature type (ex: date = d/m/y )
© 2019 亚搏在线Safe Software Inc |Legal