rhino3dm.EarthAnchorPoint

class rhino3dm.EarthAnchorPoint

Contains information about the model’s position in latitude, longitude, and elevation for GIS mapping applications.

EarthLocationIsSet() → bool

Checks if the earth location is set or not.

Returns:

Boolean value, true if set else false

GetEarthAnchorPlane() → tuple[Plane, Vector3d]

Returns the earth anchor plane

Returns:

A plane value.

GetModelCompass() → Plane

Returns a plane in model coordinates whose X axis points East, Y axis points North and Z axis points Up. The origin is set to ModelBasepoint.

Returns:

A plane value. This might be invalid on error.

GetModelToEarthTransform(modelUnitSystem: UnitSystem) → Transform

Gets a transformation from model coordinates to earth coordinates. This transformation assumes the model is small enough that the curvature of the earth can be ignored.

If M is a point in model coordinates and E = model_to_earth*M, then E.x = latitude in decimal degrees E.y = longitude in decimal degrees E.z = elevation in meters above mean sea level Because the earth is not flat, there is a small amount of error when using a linear transformation to calculate oblate spherical coordinates. This error is small. If the distance from P to M is d meters, then the approximation error is latitude error <= longitude error <= elevation error <= 6379000*((1 + (d/6356000)^2)-1) meters

In particular, if every point in the model is within 1000 meters of the m_model_basepoint, then the maximum approximation errors are latitude error <= longitude error <= elevation error <= 8 centimeters.

Parameters:

modelUnitSystem – The model unit system.

Returns:

Transform on success. Invalid Transform on error.

Deprecated since 9.0.

ModelLocationIsSet() → bool

Checks if the model location is set or not.

Returns:

Boolean value, true if set else false

property Description: str

Gets or sets the long form of the identifying information about this location.

property EarthBasepointElevation: float

Gets or sets the point elevation on earth, in meters.

property EarthBasepointElevationCoordinateSystem: EarthCoordinateSystem

Gets or sets a value indicating the zero level convention relating to a location on Earth.

property EarthBasepointElevationZero: BasepointZero

Gets or sets a value indicating the zero level convention relating to a location on Earth.

property EarthBasepointLatitude: float

Gets or sets a point latitude on earth, in degrees. +90 = north pole, 0 = equator, -90 = south pole.

property EarthBasepointLongitude: float

Gets or sets the point longitude on earth, in degrees.

property KMLOrientationHeadingAngleDegrees: float

Gets Keyhole Markup Language (KML) orientation heading angle in degrees.

property KMLOrientationHeadingAngleRadians: float

Gets Keyhole Markup Language (KML) orientation heading angle in radians.

property KMLOrientationRollAngleDegrees: float

Gets Keyhole Markup Language (KML) orientation roll angle in degrees.

property KMLOrientationRollAngleRadians: float

Gets Keyhole Markup Language (KML) orientation roll angle in degrees.

property KMLOrientationTiltAngleDegrees: float

Gets Keyhole Markup Language (KML) orientation tilt angle in degrees.

property KMLOrientationTiltAngleRadians: float

Gets Keyhole Markup Language (KML) orientation tilt angle in degrees.

property ModelBasePoint: Point3d

Corresponding model point in model coordinates.

property ModelEast: Vector3d

Earth directions in model coordinates.

property ModelNorth: Vector3d

Earth directions in model coordinates.

property Name: str

Gets or sets the short form of the identifying information about this location.