Contours
Contour lines connect points of equal elevation relative to mean sea level and play a crucial role in understanding and interacting with the Earth's surface in a wide range of applications. For example, contour lines enable visualizing the shape and steepness of the terrain. By examining the spacing and set up of contour lines, you can identify valleys, ridges, slopes, and other landforms.
You can request the contour layer by adding the following parameter to your query: content=default,contours. For more information, see Optional content.
Note
The order of attributes in the
contentparameter is important. Specifically, ensure that you position thedefaultattribute as the first one.
Hint
Contours are often used in conjunction with
hillshadeto provide a comprehensive depiction of terrain, combining elevation data with realistic shading to create informative and appealing representations of the landscape.To display both layers in your map, include
hillshadeas an additional value of thecontentparameter, as shown in the following example:
content=default,contours,hillshade
The following figure shows a comparison of hillshaded vector maps without and with the contour layer:
The layer content has the following definition:
- Layer name:
contours - Geometry types:
line
Contour properties
The following properties are used to define the contour features.
kind- Currently,contouris the only available value.height- The elevation, measured in meters, indicates the height relative to the mean sea level. Elevations below sea level are denoted by negative values.index- The unit digit of the contour's sequential number, which ranges from0to9. For example, the initial contour at a height of0corresponds to an index of0, while the subsequent contour at a height of10corresponds to an index of1. This sequential pattern continues until a height of90is reached, with an index of9. Subsequently, at a height of100, the index resets to0. The distance between each contour line, known as the step size, depends on the storage level. If the storage level is14or higher, the step size is10meters.
The contours are stored on levels from 9 to 14. The storage levels 15 and higher return subset of contours from level 14.
The height difference between the two neighboring contours or step depends on the storage level, as demonstrated in the following table:
| Level | Step | Sequence using all indices | Sequence using only every 5th index (index 0 and 5) |
|---|---|---|---|
| <= 8 | n/a | n/a | n/a |
| 9 | 500m | 0m, 500m, 1000m... | 0m, 2500m, 5000m... |
| 10 | 200m | 0m, 200m, 400m... | 0m, 1000m, 2000m... |
| 11 | 100m | 0m, 100m 200m... | 0m, 500m, 1000m... |
| 12 | 50m | 0m, 50m, 100m... | 0m, 250m, 500m... |
| 13 | 20m | 0m, 20m, 40m... | 0m, 100m, 200m... |
| >= 14 | 10m | 0m, 10m, 20m... | 0m, 50m, 100m... |
Next steps
- For more information about other layer feature types available in the HERE Vector Tile API, see Tile Layers.
Updated last month