geo.map.transform
3 functions / 6 types
Index
| Function | Description |
|---|---|
| Get | |
| Remove | Make an ENU node a plain node again, standing where it stands now relative to its map. |
| Set | Make a node an ENU node of a map: the node hangs from the map and stands at a place on it with its local x axis east, y north and z up there, and its children are placed in those axes. |
| Type | Description |
|---|---|
| EnuScale | How an ENU node’s axes scale with the ground under it. |
| GeographicTransform | |
| GetTransform | |
| GetTransformResponse | |
| RemoveTransform | Make an ENU node a plain node again, standing where it stands now relative to its map. |
| SetTransform | Make a node an ENU node of a map: the node hangs from the map and stands at a place on it with its local x axis east, y north and z up there, and its children are placed in those axes. |
Get
RPC
Get(request: geo.map.transform.GetTransform) -> geo.map.transform.GetTransformResponseService method: spatialengine.v1.geo.map.transform.GeoMapTransform.Get.
Returns geo.map.transform.GetTransformResponse.
node : scene.Node
Remove
RPC
Remove(request: geo.map.transform.RemoveTransform) -> google.protobuf.EmptyMake an ENU node a plain node again, standing where it stands now relative to its map.
Fails with WrongNodeKind when node is not an ENU node.
Service method: spatialengine.v1.geo.map.transform.GeoMapTransform.Remove.
Returns google.protobuf.Empty.
node : scene.Node
The ENU node.
Set
RPC
Set(request: geo.map.transform.SetTransform) -> google.protobuf.EmptyMake a node an ENU node of a map: the node hangs from the map and stands at a place on it with its local x axis east, y north and z up there, and its children are placed in those axes.
The node follows the map through its motion and through the change between the globe and the flat map. With no height it stands on the drawn ground, relief exaggeration included, at sea level until the map holds elevation for the place, and it moves when finer ground arrives. A child ten units up stands ten meters over the place. The axes keep no shear: where the flat map draws east and north at an angle other than square, the children see that angle squared.
The node’s ordinary transform applies inside its ENU frame. Its translation is an ENU offset, followed by its rotation and scale. Removing geographic placement preserves the current pose as an ordinary transform under the map. Despawning the map despawns the node.
Fails with WrongNodeKind when node is not a node or map is not a map, and with
InvalidArgument when node is a project node, a viewport camera, a map, or holds map
among its children, or when position cannot be converted to the map’s height reference.
Service method: spatialengine.v1.geo.map.transform.GeoMapTransform.Set.
Returns google.protobuf.Empty.
node : scene.Node
The node, such as a shape.
map : scene.Node
The node geo.map.spawn_map answered for the map the node stands on.
position : geo.GeoPosition
scale optional : geo.map.transform.EnuScale
Absent, the axes follow the ground.
EnuScale
Enum
How an ENU node’s axes scale with the ground under it.
ENU_SCALE_FOLLOW_GROUND = 0
East and north each stretch as the drawn ground stretches along them, and up keeps its length. A child offset east or north lands on the ground that far away, on any map.
ENU_SCALE_UNIFORM_GROUND_SCALE = 1
The same uniform scale on all axes, preserving shape under map distortion.
ENU_SCALE_FIXED_SIZE = 2
No scale: a child is drawn at its own size wherever the node stands.
GeographicTransform
Message
GetTransform
Message
node : scene.Node
GetTransformResponse
Message
value optional : geo.map.transform.GeographicTransform
RemoveTransform
Message
Make an ENU node a plain node again, standing where it stands now relative to its map.
Fails with WrongNodeKind when node is not an ENU node.
node : scene.Node
The ENU node.
SetTransform
Message
Make a node an ENU node of a map: the node hangs from the map and stands at a place on it with its local x axis east, y north and z up there, and its children are placed in those axes.
The node follows the map through its motion and through the change between the globe and the flat map. With no height it stands on the drawn ground, relief exaggeration included, at sea level until the map holds elevation for the place, and it moves when finer ground arrives. A child ten units up stands ten meters over the place. The axes keep no shear: where the flat map draws east and north at an angle other than square, the children see that angle squared.
The node’s ordinary transform applies inside its ENU frame. Its translation is an ENU offset, followed by its rotation and scale. Removing geographic placement preserves the current pose as an ordinary transform under the map. Despawning the map despawns the node.
Fails with WrongNodeKind when node is not a node or map is not a map, and with
InvalidArgument when node is a project node, a viewport camera, a map, or holds map
among its children, or when position cannot be converted to the map’s height reference.
node : scene.Node
The node, such as a shape.
map : scene.Node
The node geo.map.spawn_map answered for the map the node stands on.
position : geo.GeoPosition
scale optional : geo.map.transform.EnuScale
Absent, the axes follow the ground.