class RGeo::CoordSys::CS::ProjectedCoordinateSystem

OGC spec description

A 2D cartographic coordinate system.

Attributes

geographic_coordinate_system[R]
linear_unit[R]

Returns the LinearUnits. The linear unit must be the same as the CS_CoordinateSystem units.

projection[R]

Gets the projection.

Public Class Methods

create(name_, geographic_coordinate_system_, projection_, linear_unit_, axis0_, axis1_, *optional_) click to toggle source

Create a ProjectedCoordinateSystem given a name, a GeographicCoordinateSystem, and Projection, a LinearUnit, and two AxisInfo objects. The AxisInfo objects are optional and may be set to nil. You may also provide the optional parameters specified by the Info interface.

# File lib/rgeo/coord_sys/cs/entities.rb, line 1575
def create(name_, geographic_coordinate_system_, projection_, linear_unit_, axis0_, axis1_, *optional_)
  new(name_, geographic_coordinate_system_, projection_, linear_unit_, axis0_, axis1_, *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 1547
def get_axis(index_)
  index_ == 1 ? @axis1 : @axis0
end
get_units(index_) click to toggle source

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

# File lib/rgeo/coord_sys/cs/entities.rb, line 1540
def get_units(index_)
  @linear_unit
end