Skip to main content
Solved

wfs limit attributes returned

  • September 2, 2019
  • 3 replies
  • 69 views

oliver.morris
Contributor
Forum|alt.badge.img+14

Hi, does anyone know a way to limit attributes returned from WFS. I just want to return back the unique id so I can cross check against a clone out the data.

This structure works in postman but I dont see a way for it to work in the fme reader. Does something need to be added to the xml filter?

 

http://example.com/geoserver/wfs?  service=wfs&  version=2.0.0&  request=GetFeature&  typeNames=namespace:featuretype&  featureID=feature&  propertyName=attribute1,attribute2

 

Many Thanks

 

Oliver

Best answer by itay

Hi @olivermorris,

You can just add the extra request parameters into the WFS reader.

Like so:

https://geodata.nationaalgeoregister.nl/bag/wfs?request=GetCapabilities&service=wfs&typeNames=bag:woonplaats&propertyName=identificatie

Hope this helps,

Itay

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • Best Answer
  • September 2, 2019

Hi @olivermorris,

You can just add the extra request parameters into the WFS reader.

Like so:

https://geodata.nationaalgeoregister.nl/bag/wfs?request=GetCapabilities&service=wfs&typeNames=bag:woonplaats&propertyName=identificatie

Hope this helps,

Itay


oliver.morris
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • September 2, 2019

thanks @itay I will try with the reader, i was using the feature_reader and I dont think you have the same ability - it seems to override the URL.


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • September 2, 2019

thanks @itay I will try with the reader, i was using the feature_reader and I dont think you have the same ability - it seems to override the URL.

Works just fine with the FeatureReader: