0

I would like to retrieve DEM data along a polyline with a WCS request from Geoserver. The server publish DEM data as a mosaic layer. Is that posisble?

So far I could only retrieve single height values for a lat,lon location, and a matrix between a bottom left and top right geo locations.

1 Answer 1

1

Most WCS servers can deliver only regular grids and in case of DEM data it means two dimensional grid (X and Y) where the height is an attribute of the grid points or cells. WCS server can support coverage data with more or less dimensions, for example dim=1 for a straight line, but WCS does not support trajectories.

The best you can do may be to make small rectangular requests which follow the route of your polyline and collect all the points/pixels that you need for the height profile. You need to fetch much more pixels from WCS that you really need, but still less than making one request with a huge rectangle, and with much less requests than by making a new GetCoverage for each point separately.

The new Environmental Data Retrieval (EDR) standard supports trajectories and corridors https://docs.ogc.org/is/19-086r5/19-086r5.html but there are very few servers and clients for EDR yet.

1
  • 1
    Alternatively, you could write a WPS process that takes a raster and a line and returns a LINESTRINGZ
    – Ian Turton
    Feb 15, 2023 at 15:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.