Skip to content

geo.map.terrain

6 functions / 19 types

Index

FunctionDescription
DisplayCastRayFind the first point of a map’s drawn ground that a ray in world space meets.
DisplayCastSegmentIntersect the displayed ground between two positions. Both endpoints count unless endpoint_exclusion excludes a distance in meters from each end.
DisplayPickFind the ground of any map under a point of a viewport, the nearest where several maps lie under it.
GetDisplayHeightRead the displayed ground height in meters in the map’s common elevation reference. Provenance retains the source reference, units, and conversion or assumption applied.
GetDisplayHeightsRead the heights of the drawn ground at many places, such as along an elevation profile, in the order given, each as geo.map.terrain.get_display_height reads it. Their heights are ignored.
GetFullResolutionHeightFetch the finest advertised elevation at a position without changing camera tile selection. Returns unexaggerated meters and source provenance. Missing leaf data never uses a parent tile.
TypeDescription
DisplayCastRayFind the first point of a map’s drawn ground that a ray in world space meets.
DisplayCastRayResponse
DisplayCastSegmentIntersect the displayed ground between two positions. Both endpoints count unless endpoint_exclusion excludes a distance in meters from each end.
DisplayCastSegmentResponse
DisplayPickFind the ground of any map under a point of a viewport, the nearest where several maps lie under it.
DisplayPickResponse
ElevationConversion
FullResolutionHeight
FullResolutionProvenance
FullResolutionSample
GetDisplayHeightRead the displayed ground height in meters in the map’s common elevation reference. Provenance retains the source reference, units, and conversion or assumption applied.
GetDisplayHeightsRead the heights of the drawn ground at many places, such as along an elevation profile, in the order given, each as geo.map.terrain.get_display_height reads it. Their heights are ignored.
GetDisplayHeightsResponse
GetFullResolutionHeightFetch the finest advertised elevation at a position without changing camera tile selection. Returns unexaggerated meters and source provenance. Missing leaf data never uses a parent tile.
HeightProvenanceThe source interpretation before conversion to the map’s common height reference.
HeightSampleThe displayed terrain height at one place, using the resident level of detail.
HorizontalSampleSpacing
MapHitWhere a ray met the ground.
NoData

DisplayCastRay

RPC

DisplayCastRay(request: geo.map.terrain.DisplayCastRay) -> geo.map.terrain.DisplayCastRayResponse

Find the first point of a map’s drawn ground that a ray in world space meets.

Returns nothing before the map’s first presentation or when the ray meets no ground within max_distance. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when direction is zero or not finite or origin is not finite.

Service method: spatialengine.v1.geo.map.terrain.GeoMapTerrain.DisplayCastRay.

Returns geo.map.terrain.DisplayCastRayResponse.

map : scene.Node

The node geo.map.spawn_map answered for the map whose ground the ray meets.

origin : math.Vec3

Where the ray starts.

direction : math.Vec3

Which way it goes. Any length but zero.

max_distance optional : double

The farthest a hit counts, in meters. Absent, any distance.

DisplayCastSegment

RPC

DisplayCastSegment(request: geo.map.terrain.DisplayCastSegment) -> geo.map.terrain.DisplayCastSegmentResponse

Intersect the displayed ground between two positions. Both endpoints count unless endpoint_exclusion excludes a distance in meters from each end.

Positions use their explicit elevation references. Returns nothing when the segment misses the presented mesh or either position cannot be placed. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when either end is not a place.

Service method: spatialengine.v1.geo.map.terrain.GeoMapTerrain.DisplayCastSegment.

Returns geo.map.terrain.DisplayCastSegmentResponse.

map : scene.Node

The node geo.map.spawn_map answered for the map both places are on.

endpoint_exclusion optional : double

Ignore this many meters at each endpoint. Absent, endpoints count.

DisplayPick

RPC

DisplayPick(request: geo.map.terrain.DisplayPick) -> geo.map.terrain.DisplayPickResponse

Find the ground of any map under a point of a viewport, the nearest where several maps lie under it.

Returns nothing over sky or before the map’s first presentation. Fails with InvalidArgument unless exactly one viewport matches viewport.

Service method: spatialengine.v1.geo.map.terrain.GeoMapTerrain.DisplayPick.

Returns geo.map.terrain.DisplayPickResponse.

viewport optional : string

Label of the viewport to pick in. Absent, the only viewport.

x : double

Logical pixels from the viewport’s left edge.

y : double

Logical pixels from the viewport’s top edge.

GetDisplayHeight

RPC

GetDisplayHeight(request: geo.map.terrain.GetDisplayHeight) -> geo.map.terrain.HeightSample

Read the displayed ground height in meters in the map’s common elevation reference. Provenance retains the source reference, units, and conversion or assumption applied.

The result includes terrain height scale and follows the triangles currently drawn, including LOD blending and morph. The height is absent where no presented triangle is hit. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when the latitude is outside -90 to 90 or a coordinate is not finite.

Service method: spatialengine.v1.geo.map.terrain.GeoMapTerrain.GetDisplayHeight.

Returns geo.map.terrain.HeightSample.

map : scene.Node

The node geo.map.spawn_map answered for the map.

position : geo.GeoPosition

output_reference optional : geo.ElevationReference

Absent, use the map’s elevation reference. Conversion preserves display height scale.

GetDisplayHeights

RPC

GetDisplayHeights(request: geo.map.terrain.GetDisplayHeights) -> geo.map.terrain.GetDisplayHeightsResponse

Read the heights of the drawn ground at many places, such as along an elevation profile, in the order given, each as geo.map.terrain.get_display_height reads it. Their heights are ignored.

Fails with WrongNodeKind when map is not a map, and with InvalidArgument when any point is not a place.

Service method: spatialengine.v1.geo.map.terrain.GeoMapTerrain.GetDisplayHeights.

Returns geo.map.terrain.GetDisplayHeightsResponse.

map : scene.Node

The node geo.map.spawn_map answered for the map.

points optional : list[geo.GeoPosition]

The places to sample.

output_reference optional : geo.ElevationReference

GetFullResolutionHeight

RPC

GetFullResolutionHeight(request: geo.map.terrain.GetFullResolutionHeight) -> geo.map.terrain.FullResolutionHeight

Fetch the finest advertised elevation at a position without changing camera tile selection. Returns unexaggerated meters and source provenance. Missing leaf data never uses a parent tile.

Service method: spatialengine.v1.geo.map.terrain.GeoMapTerrain.GetFullResolutionHeight.

Returns geo.map.terrain.FullResolutionHeight.

position : geo.GeoPosition

output_reference optional : geo.ElevationReference

Absent, return the map’s elevation reference. This never applies display height scale.

DisplayCastRay

Message

Find the first point of a map’s drawn ground that a ray in world space meets.

Returns nothing before the map’s first presentation or when the ray meets no ground within max_distance. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when direction is zero or not finite or origin is not finite.

map : scene.Node

The node geo.map.spawn_map answered for the map whose ground the ray meets.

origin : math.Vec3

Where the ray starts.

direction : math.Vec3

Which way it goes. Any length but zero.

max_distance optional : double

The farthest a hit counts, in meters. Absent, any distance.

DisplayCastRayResponse

Message

value optional : geo.map.terrain.MapHit

DisplayCastSegment

Message

Intersect the displayed ground between two positions. Both endpoints count unless endpoint_exclusion excludes a distance in meters from each end.

Positions use their explicit elevation references. Returns nothing when the segment misses the presented mesh or either position cannot be placed. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when either end is not a place.

map : scene.Node

The node geo.map.spawn_map answered for the map both places are on.

endpoint_exclusion optional : double

Ignore this many meters at each endpoint. Absent, endpoints count.

DisplayCastSegmentResponse

Message

value optional : geo.map.terrain.MapHit

DisplayPick

Message

Find the ground of any map under a point of a viewport, the nearest where several maps lie under it.

Returns nothing over sky or before the map’s first presentation. Fails with InvalidArgument unless exactly one viewport matches viewport.

viewport optional : string

Label of the viewport to pick in. Absent, the only viewport.

x : double

Logical pixels from the viewport’s left edge.

y : double

Logical pixels from the viewport’s top edge.

DisplayPickResponse

Message

value optional : geo.map.terrain.MapHit

ElevationConversion

Enum

ELEVATION_CONVERSION_UNCHANGED = 0

ELEVATION_CONVERSION_GEOID = 1

FullResolutionHeight

Message

Choose one of: sample, no_data.

FullResolutionProvenance

Message

provider_identifier : string

source_reference : geo.ElevationReference

source_height_meters : double

source_unit_scale : double

source_vertical_offset : double

decoded_source_value optional : double

source_geoid_model optional : geo.GeoidModelId

target_geoid_model optional : geo.GeoidModelId

geoid_correction_meters : double

selected_time optional : string

tile_matrix_id : geo.TileMatrixId

tile_column : uint32

tile_row : uint32

sample_spacing optional : geo.map.terrain.HorizontalSampleSpacing

accuracy_meters optional : double

Absent when the source publishes no numeric accuracy estimate.

FullResolutionSample

Message

height_meters : double

GetDisplayHeight

Message

Read the displayed ground height in meters in the map’s common elevation reference. Provenance retains the source reference, units, and conversion or assumption applied.

The result includes terrain height scale and follows the triangles currently drawn, including LOD blending and morph. The height is absent where no presented triangle is hit. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when the latitude is outside -90 to 90 or a coordinate is not finite.

map : scene.Node

The node geo.map.spawn_map answered for the map.

position : geo.GeoPosition

output_reference optional : geo.ElevationReference

Absent, use the map’s elevation reference. Conversion preserves display height scale.

GetDisplayHeights

Message

Read the heights of the drawn ground at many places, such as along an elevation profile, in the order given, each as geo.map.terrain.get_display_height reads it. Their heights are ignored.

Fails with WrongNodeKind when map is not a map, and with InvalidArgument when any point is not a place.

map : scene.Node

The node geo.map.spawn_map answered for the map.

points optional : list[geo.GeoPosition]

The places to sample.

output_reference optional : geo.ElevationReference

GetDisplayHeightsResponse

Message

value optional : list[geo.map.terrain.HeightSample]

GetFullResolutionHeight

Message

Fetch the finest advertised elevation at a position without changing camera tile selection. Returns unexaggerated meters and source provenance. Missing leaf data never uses a parent tile.

position : geo.GeoPosition

output_reference optional : geo.ElevationReference

Absent, return the map’s elevation reference. This never applies display height scale.

HeightProvenance

Message

The source interpretation before conversion to the map’s common height reference.

layer_id optional : geo.map.layer.LayerId

The layer handle, when the source still belongs to the map.

identifier : string

reference optional : geo.ElevationReference

unit_scale optional : double

Meters per original source unit.

vertical_offset optional : double

Meters added after scaling the original source value.

HeightSample

Message

The displayed terrain height at one place, using the resident level of detail.

height optional : double

Meters in the returned reference, including terrain height scale. Absent where no presented terrain triangle is hit.

terrain_height_scale : double

level optional : uint32

The drawn tile level, absent where no drawn tile covers the point.

reference optional : geo.ElevationReference

provenance optional : geo.map.terrain.HeightProvenance

The resident elevation source at this location. Absent when no source sample is resident. This does not enumerate the vertex or LOD-blend contributors to the displayed triangle.

HorizontalSampleSpacing

Message

east_meters : double

north_meters : double

MapHit

Message

Where a ray met the ground.

map : scene.Node

The map hit.

position : math.Vec3

The hit in world space.

point : geo.GeoPosition

The hit as a place on the body.

distance : double

Meters from where the ray started.

level : uint32

The level of the tile the ray met, 0 being the coarsest.

NoData

Message

layers_considered optional : list[geo.map.layer.LayerId]