class RGeo::CoordSys::CS::CompoundCoordinateSystem

OGC spec description

An aggregate of two coordinate systems (CRS). One of these is usually a CRS based on a two dimensional coordinate system such as a geographic or a projected coordinate system with a horizontal datum. The other is a vertical CRS which is a one-dimensional coordinate system with a vertical datum.

Attributes

head[R]

Gets first sub-coordinate system.

tail[R]

Gets second sub-coordinate system.

Public Class Methods

create(name_, head_, tail_, *optional_) click to toggle source

Create a CompoundCoordinateSystem given two sub-coordinate systems. You may also provide the optional parameters specified by the Info interface.

# File lib/rgeo/coord_sys/cs/entities.rb, line 1161
def create(name_, head_, tail_, *optional_)
  new(name_, head_, tail_, *optional_)
end

Public Instance Methods

get_axis(index_) click to toggle source

Implements RGeo::CoordSys::CS::CoordinateSystem#get_axis

# File lib/rgeo/coord_sys/cs/entities.rb, line 1131
def get_axis(index_)
  hd_ = @head.dimension
  index_ < hd_ ? @head.get_axis(index_) : @tail.get_axis(index_ - hd_)
end
get_units(index_) click to toggle source

Implements RGeo::CoordSys::CS::CoordinateSystem#get_units

# File lib/rgeo/coord_sys/cs/entities.rb, line 1139
def get_units(index_)
  hd_ = @head.dimension
  index_ < hd_ ? @head.get_units(index_) : @tail.get_units(index_ - hd_)
end