Skip to main content
Question

Reading and extracting features from wms


gisgeek
Contributor
Forum|alt.badge.img+9

I am trying to create a workbench to extract wms features into vector https://data.gns.cri.nz/tsunami/wms.html. I am wanting to extract out points and associated attribute data that is relating to each tsunami event

6 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • August 2, 2022

I would recommend scrapping the Table option of the site via HTTPCaller. It gives a total number of pages in the response so you can go through all events.

Then investigate what double-clicking triggers and extract data for every event.

From what I can tell, there is a lot of formatting work to be done.


geomancer
Evangelist
Forum|alt.badge.img+50
  • Evangelist
  • August 2, 2022

The map queries the layer 'gns:tsunami_age' from WMS https://data.gns.cri.nz/webmaps/gns/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

They also provide a WFS with a layer called 'tsunami_age': https://data.gns.cri.nz/webmaps/gns/wfs?SERVICE=WFS&VERSION=1.1.1&REQUEST=Getcapabilities

In the WFS each feature has an id, use this id in https://data.gns.cri.nz/tsunami/dataDetails.html?id=1 to retrieve all data.

The result is plain HTML, from which you can distill all information.

Good luck!


gisgeek
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • August 2, 2022
geomancer wrote:

The map queries the layer 'gns:tsunami_age' from WMS https://data.gns.cri.nz/webmaps/gns/wms?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities

They also provide a WFS with a layer called 'tsunami_age': https://data.gns.cri.nz/webmaps/gns/wfs?SERVICE=WFS&VERSION=1.1.1&REQUEST=Getcapabilities

In the WFS each feature has an id, use this id in https://data.gns.cri.nz/tsunami/dataDetails.html?id=1 to retrieve all data.

The result is plain HTML, from which you can distill all information.

Good luck!

Perfect thank you


gisgeek
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • August 2, 2022
caracadrian wrote:

I would recommend scrapping the Table option of the site via HTTPCaller. It gives a total number of pages in the response so you can go through all events.

Then investigate what double-clicking triggers and extract data for every event.

From what I can tell, there is a lot of formatting work to be done.

thank you


fpaquet
Participant
Forum|alt.badge.img
  • Participant
  • May 9, 2023
caracadrian wrote:

I would recommend scrapping the Table option of the site via HTTPCaller. It gives a total number of pages in the response so you can go through all events.

Then investigate what double-clicking triggers and extract data for every event.

From what I can tell, there is a lot of formatting work to be done.

Could it be possible to explain more what does the HTTPCaller and how to set it?

There's a WMS link wich is public and contains a layer (point) with values:

image I wish it could be possible to get entities from the WMS link (wich is regulary updated) and move the features to a geodatabase.

Please help me :) .


kailinatsafe
Safer
Forum|alt.badge.img+21
fpaquet wrote:

Could it be possible to explain more what does the HTTPCaller and how to set it?

There's a WMS link wich is public and contains a layer (point) with values:

image I wish it could be possible to get entities from the WMS link (wich is regulary updated) and move the features to a geodatabase.

Please help me :) .

Hello @fpaquet​, thanks for posting! the HTTPCaller allows FME users to access a URL via HTTP or HTTPS, using a variety of HTTP methods. If you're interested, here is the documentation.

 

This should be possible with FME Form! If you're goal is to read a WMS, you should look speicifcally at the WMS Reader. Once your data is inside FME Form, use either a Esri Geodatabase (File Geodb) vs Esri Geodatabase (File Geodatabase Open API). To learn how these writers differ, please see the 'Considerations' section of Getting Started with Geodatabase. If you have any further questions, it may be best to create a new post. Feel free to link post directly. Best, Kailin.


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