Class: RGeo::CoordSys::CS::VerticalCoordinateSystem
- Inherits:
-
CoordinateSystem
- Object
- Base
- Info
- CoordinateSystem
- RGeo::CoordSys::CS::VerticalCoordinateSystem
- 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
-
#vertical_datum ⇒ Object
readonly
Gets the vertical datum, which indicates the measurement method.
-
#vertical_unit ⇒ Object
readonly
Gets the units used along the vertical axis.
Attributes inherited from CoordinateSystem
Attributes inherited from Info
#abbreviation, #alias, #authority, #authority_code, #name, #remarks
Class Method Summary collapse
-
.create(name, vertical_datum, vertical_unit, axis, *optional) ⇒ Object
Create a VerticalCoordinateSystem given a name, a VerticalDatum, a LinearUnit, and an AxisInfo.
Instance Method Summary collapse
-
#get_axis(_index) ⇒ Object
Implements CoordinateSystem#get_axis.
-
#get_units(_index) ⇒ Object
Implements CoordinateSystem#get_units.
-
#initialize(name, vertical_datum, vertical_unit, axis, *optional) ⇒ VerticalCoordinateSystem
constructor
:nodoc:.
- #wkt_typename ⇒ Object
Methods inherited from CoordinateSystem
create_from_wkt, #geographic?, #projected?, #transform_coords
Methods inherited from Info
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:
1184 1185 1186 1187 1188 1189 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1184 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_datum ⇒ Object (readonly)
Gets the vertical datum, which indicates the measurement method.
1192 1193 1194 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1192 def vertical_datum @vertical_datum end |
#vertical_unit ⇒ Object (readonly)
Gets the units used along the vertical axis. The vertical units must be the same as the CS_CoordinateSystem units.
1196 1197 1198 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1196 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.
1220 1221 1222 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1220 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
1206 1207 1208 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1206 def get_axis(_index) @axis end |
#get_units(_index) ⇒ Object
Implements CoordinateSystem#get_units
1200 1201 1202 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1200 def get_units(_index) @vertical_unit end |
#wkt_typename ⇒ Object
1210 1211 1212 |
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1210 def wkt_typename "VERT_CS" end |