Skip to main content
Solved

How to use a WMTS to extract heights from a DTM service?


stephstedman
Contributor
Forum|alt.badge.img+5

I’m hoping to use a DTM service provided by the Environment Agency to extract the height for locations I have (points or polygons I haven’t decided yet).  They provide WMS, WCS, WMTS, OGI API: LIDAR Composite Digital Terrain Model (DTM) - 1m

I believe it’s the WMTS I want, it has the elevation data layer within it. https://environment.data.gov.uk/spatialdata/lidar-composite-digital-terrain-model-dtm-1m/wmts?request=GetCapabilities&service=WMTS&version=2.0.1

My plan was to use a WMTS reader, and the PointOnRasterValueExtractor to get the heights for the points I supply.

I can’t even seem to read in the WMTS data,  because I’m not putting in the correct parameters?

  • I’m not sure what format I need, or if it even matters for what I’m doing – vnd.jpeg-png8 seems to be the most versatile so that’s what I’ve been trying?
  • Not sure what the Tile Matrix means? The different zoom levels, but I don’t know how I’d know what I need?
  • I obviously don’t want to read in the entire WMTS service, so I’ve been trying with a bounding box in British National Grid min 467000,145000, 567000,217000, around London. This seems to be a supported CRS in the WMTS.

I’m getting the following error message, so maybe am I supposed to edit the URL I give for the WMTS? Perhaps I need to build the URL I am hitting to include a bit more, but I’m not sure how I dig through anything online to make sense of the service?

2025-06-03 11:56:53|   0.7|  0.0|ERROR |<WMTS> An error occurred while generating the GetTile URL, please check the dataset URL and selected parameters

Or am I going about this the wrong way and it’s a HTTPCALLER job rather than WMTS reader?

I am running FME Form 2023.2.4

 

 

Best answer by ebygomm

This works for me 

Returns 12 tiles if resolution set to BNG:5

(BNG:0 is the lowest resolution and will return a single tile covering the whole of England)

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

3 replies

stephstedman
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • June 3, 2025
my reader paramter settings

 


ebygomm
Influencer
Forum|alt.badge.img+39
  • Influencer
  • Best Answer
  • June 3, 2025

This works for me 

Returns 12 tiles if resolution set to BNG:5

(BNG:0 is the lowest resolution and will return a single tile covering the whole of England)


stephstedman
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • June 3, 2025

thanks for the quick reply ​@ebygomm seems like changing the encoding to KVPs did the trick and I am now getting data through too!
Is this common when using WMTS that KVPs is the preferred encoding method?

Now that I’m looking at the data I’m not sure the WMTS has the information what I’m after.
The band 0 attributes just have the RGB colours, and another for the groupings of symbology - e.g. 12 below.

So I need to have a look at the other datasets they have available and see which one has actual height values I can extract! Unless I’m missing something from the DTM WMTS elevation service? I think I may have to resort to downloading tiles of manual survey data - rather not!
 

 


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