Add an elevation layer: uri of a source kind (LAYER_; default
LAYER_TMS), heights in meters or encoding (ELEVATION_; default
ELEVATION_HEIGHTS).
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(TerrainBody), | intent(inout) | :: | self | |||
| character(len=*), | intent(in) | :: | uri |
a URL, URL template or file |
||
| integer, | intent(in), | optional | :: | source |
a LAYER_* constant (default LAYER_TMS) |
|
| integer, | intent(in), | optional | :: | encoding |
an ELEVATION_* constant (default ELEVATION_HEIGHTS) |
subroutine add_elevation_layer(self, uri, source, encoding) class(TerrainBody), intent(inout) :: self character(len=*), intent(in) :: uri !! a URL, URL template or file integer, intent(in), optional :: source !! a LAYER_* constant (default LAYER_TMS) integer, intent(in), optional :: encoding !! an ELEVATION_* constant (default ELEVATION_HEIGHTS) type(MapLayer) :: layer layer%elevation = .true. layer%uri = uri if (present(source)) layer%source = source if (present(encoding)) layer%encoding = encoding call add_layer(self, layer) end subroutine add_elevation_layer