Skip to main content
Solved

Paged WFS Responses - OS Features

  • February 27, 2023
  • 4 replies
  • 50 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.)

View original
Did this help you find an answer to your question?

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+54
  • 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
nielsgerrits wrote:

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+54

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>

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings