Skip to content

geo.map.coordinates

2 functions / 4 types

Index

FunctionDescription
GeoToWorldRead where a place on a map stands in world space, at the map’s morph and transform now. Positions move as the map morphs between the globe and the flat map, and as the map or anything it hangs from moves.
WorldToGeoConvert scene XYZ through the map’s current placement and display morph. This does not sample terrain or remove terrain height scale. Returned elevations use the map’s elevation reference. Absolute inputs include the floating-origin offset.
TypeDescription
GeoToWorldRead where a place on a map stands in world space, at the map’s morph and transform now. Positions move as the map morphs between the globe and the flat map, and as the map or anything it hangs from moves.
GeoToWorldResponse
WorldToGeoConvert scene XYZ through the map’s current placement and display morph. This does not sample terrain or remove terrain height scale. Returned elevations use the map’s elevation reference. Absolute inputs include the floating-origin offset.
WorldToGeoResponse

GeoToWorld

RPC

GeoToWorld(request: geo.map.coordinates.GeoToWorld) -> geo.map.coordinates.GeoToWorldResponse

Read where a place on a map stands in world space, at the map’s morph and transform now. Positions move as the map morphs between the globe and the flat map, and as the map or anything it hangs from moves.

Returns nothing before the map’s first frame. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when point is not a place.

Service method: spatialengine.v1.geo.map.coordinates.GeoMapCoordinates.GeoToWorld.

Returns geo.map.coordinates.GeoToWorldResponse.

map : scene.Node

The node geo.map.spawn_map answered for the map the place is on.

position : geo.GeoPosition

Omitted elevation uses the displayed ground, or zero before ground is available.

WorldToGeo

RPC

WorldToGeo(request: geo.map.coordinates.WorldToGeo) -> geo.map.coordinates.WorldToGeoResponse

Convert scene XYZ through the map’s current placement and display morph. This does not sample terrain or remove terrain height scale. Returned elevations use the map’s elevation reference. Absolute inputs include the floating-origin offset.

Returns nothing before the map’s first frame. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when position is not finite.

Service method: spatialengine.v1.geo.map.coordinates.GeoMapCoordinates.WorldToGeo.

Returns geo.map.coordinates.WorldToGeoResponse.

map : scene.Node

The node geo.map.spawn_map answered for the map to read the place on.

position : math.Vec3

relative_to optional : scene.Node

Absent, the position is absolute scene XYZ. Present, XYZ is local to this scene node.

output_crs optional : geo.CrsId

Absent, return the map’s declared coordinate CRS, regardless of its display mode.

GeoToWorld

Message

Read where a place on a map stands in world space, at the map’s morph and transform now. Positions move as the map morphs between the globe and the flat map, and as the map or anything it hangs from moves.

Returns nothing before the map’s first frame. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when point is not a place.

map : scene.Node

The node geo.map.spawn_map answered for the map the place is on.

position : geo.GeoPosition

Omitted elevation uses the displayed ground, or zero before ground is available.

GeoToWorldResponse

Message

value optional : math.Vec3

WorldToGeo

Message

Convert scene XYZ through the map’s current placement and display morph. This does not sample terrain or remove terrain height scale. Returned elevations use the map’s elevation reference. Absolute inputs include the floating-origin offset.

Returns nothing before the map’s first frame. Fails with WrongNodeKind when map is not a map, and with InvalidArgument when position is not finite.

map : scene.Node

The node geo.map.spawn_map answered for the map to read the place on.

position : math.Vec3

relative_to optional : scene.Node

Absent, the position is absolute scene XYZ. Present, XYZ is local to this scene node.

output_crs optional : geo.CrsId

Absent, return the map’s declared coordinate CRS, regardless of its display mode.

WorldToGeoResponse

Message

value optional : geo.GeoPosition