class RGeo::CoordSys::CS::Projection

OGC spec description

A projection from geographic coordinates to projected coordinates.

Attributes

class_name[R]

Gets the projection classification name (e.g. “Transverse_Mercator”).

Public Class Methods

create(name_, class_name_, parameters_, *optional_) click to toggle source

Create a Projection given a name, a projection class, and an array of ProjectionParameter. You may also provide the optional parameters specified by the Info interface.

# File lib/rgeo/coord_sys/cs/entities.rb, line 1035
def create(name_, class_name_, parameters_, *optional_)
  new(name_, class_name_, parameters_, *optional_)
end

Public Instance Methods

each_parameter(&block_) click to toggle source

Iterates over the parameters of the projection.

# File lib/rgeo/coord_sys/cs/entities.rb, line 1014
def each_parameter(&block_)
  @parameters.each(&block_)
end
get_parameter(index_) click to toggle source

Gets an inexed parameter of the projection.

# File lib/rgeo/coord_sys/cs/entities.rb, line 1007
def get_parameter(index_)
  @parameters[index_]
end
num_parameters() click to toggle source

Gets number of parameters of the projection.

# File lib/rgeo/coord_sys/cs/entities.rb, line 1000
def num_parameters
  @parameters.size
end