A 3D coordinate system, with its origin at the centre of the Earth. The X axis points towards the prime meridian. The Y axis points East or West. The Z axis points North or South. By default the Z axis will point North, and the Y axis will point East (e.g. a right handed system), but you should check the axes for non-default values.
Returns the HorizontalDatum. The horizontal datum is used to determine where the centre of the Earth is considered to be. All coordinate points will be measured from the centre of the Earth, and not the surface.
Gets the units used along all the axes.
Returns the PrimeMeridian.
Create a GeocentricCoordinateSystem given a name, a HorizontalDatum, a PrimeMeridian, a LinearUnit, and three AxisInfo objects. The AxisInfo are optional and may be nil. You may also provide the optional parameters specified by the Info interface.
# File lib/rgeo/coord_sys/cs/entities.rb, line 1317 def create(name_, horizontal_datum_, prime_meridian_, linear_unit_, axis0_, axis1_, axis2_, *optional_) new(name_, horizontal_datum_, prime_meridian_, linear_unit_, axis0_, axis1_, axis2_, *optional_) end
Implements RGeo::CoordSys::CS::CoordinateSystem#get_axis
# File lib/rgeo/coord_sys/cs/entities.rb, line 1290 def get_axis(index_) [@axis0, @axis1, @axis2][index_] end
Implements RGeo::CoordSys::CS::CoordinateSystem#get_units
# File lib/rgeo/coord_sys/cs/entities.rb, line 1283 def get_units(index_) @linear_unit end