Class: RGeo::CoordSys::CS::VerticalCoordinateSystem

Inherits:
CoordinateSystem show all
Defined in:
lib/rgeo/coord_sys/cs/entities.rb

Overview

OGC spec description

A one-dimensional coordinate system suitable for vertical measurements.

Instance Attribute Summary collapse

Attributes inherited from CoordinateSystem

#dimension

Attributes inherited from Info

#abbreviation, #alias, #authority, #authority_code, #name, #remarks

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Info

#extension

Methods inherited from Base

#encode_with, #eql?, #hash, #init_with, #inspect, #marshal_dump, #marshal_load, #to_s, #to_wkt

Constructor Details

#initialize(name, vertical_datum, vertical_unit, axis, *optional) ⇒ VerticalCoordinateSystem

:nodoc:


1140
1141
1142
1143
1144
1145
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1140

def initialize(name, vertical_datum, vertical_unit, axis, *optional) # :nodoc:
  super(name, 1, *optional)
  @vertical_datum = vertical_datum
  @vertical_unit = vertical_unit
  @axis = axis
end

Instance Attribute Details

#vertical_datumObject (readonly)

Gets the vertical datum, which indicates the measurement method.


1148
1149
1150
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1148

def vertical_datum
  @vertical_datum
end

#vertical_unitObject (readonly)

Gets the units used along the vertical axis. The vertical units must be the same as the CS_CoordinateSystem units.


1152
1153
1154
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1152

def vertical_unit
  @vertical_unit
end

Class Method Details

.create(name, vertical_datum, vertical_unit, axis, *optional) ⇒ Object

Create a VerticalCoordinateSystem given a name, a VerticalDatum, a LinearUnit, and an AxisInfo. The AxisInfo is optional and may be nil. You may also provide the optional parameters specified by the Info interface.


1176
1177
1178
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1176

def create(name, vertical_datum, vertical_unit, axis, *optional)
  new(name, vertical_datum, vertical_unit, axis, *optional)
end

Instance Method Details

#get_axis(index) ⇒ Object

Implements CoordinateSystem#get_axis


1162
1163
1164
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1162

def get_axis(index)
  @axis
end

#get_units(index) ⇒ Object

Implements CoordinateSystem#get_units


1156
1157
1158
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1156

def get_units(index)
  @vertical_unit
end

#wkt_typenameObject


1166
1167
1168
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1166

def wkt_typename
  "VERT_CS"
end