Skip to main content
Solved

Paged WFS Responses - OS Features

  • February 27, 2023
  • 4 replies
  • 69 views

adrian_farrell
Contributor
Forum|alt.badge.img+6

Hi

 

I have a requirement to connect to the new Ordnance Survey (GB) WFS service in FME, their system responds with 100 records at one time, there doesn't appear to be an option in the reader to facilitate this paging implementation as in other products

 

Any help to be able to access this API would be greatly appreciated

Best answer by nielsgerrits

Just tested on "Zoomstack_Contours" and works for me. I used a FeatureReader, choose WFS version 2.0.0 and set Start Index to 0.

 

Attached the workspace, don't forget to replace the dummy key with your own and you're good to go.

 

(Output Ports are now set to Single Output Port, but you can change this when you have updated the Dataset url with a valid key.)

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.

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+62
  • Best Answer
  • February 27, 2023

Just tested on "Zoomstack_Contours" and works for me. I used a FeatureReader, choose WFS version 2.0.0 and set Start Index to 0.

 

Attached the workspace, don't forget to replace the dummy key with your own and you're good to go.

 

(Output Ports are now set to Single Output Port, but you can change this when you have updated the Dataset url with a valid key.)


adrian_farrell
Contributor
Forum|alt.badge.img+6
  • Author
  • Contributor
  • February 27, 2023

Just tested on "Zoomstack_Contours" and works for me. I used a FeatureReader, choose WFS version 2.0.0 and set Start Index to 0.

 

Attached the workspace, don't forget to replace the dummy key with your own and you're good to go.

 

(Output Ports are now set to Single Output Port, but you can change this when you have updated the Dataset url with a valid key.)

Thanks, it worked perfectly.

I hadn't chosen WFS v2.0.0


od10
Contributor
Forum|alt.badge.img+4
  • Contributor
  • November 22, 2024

Hi ​@nielsgerrits 

Is there a way to use the spatial filter on the bounding box reader? I can’t get this to work for me?

 

Thanks,

 


nielsgerrits
VIP
Forum|alt.badge.img+62

Generally speaking it is preferred to create a new topic for a new question.

When using a FeatureReader to read the WFS you are able to use the geometry of the initiating feature as spatial filter. Sample attached.

But if you want to use a XML Filter Expression, please visit https://olivers-expression-lab.gitbook.io/filter-expressions-in-fme which explains in detail how this works. Thanks again ​@oliver !

This works as XML filter:

<Filter>

    <BBOX>

        <PropertyName>Name>NAME</PropertyName>

        <Box%20srsName='EPSG:28992'>

            <coordinates>131088,523596 131588,524096</coordinates>

        </Box>

    </BBOX>

</Filter>