Class: RGeo::CoordSys::CS::HorizontalCoordinateSystem

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

Overview

OGC spec description

A 2D coordinate system suitable for positions on the Earth’s surface.

Notes

This is a non-instantiable abstract class. You must instantiate one of the subclasses GeographicCoordinateSystem or ProjectedCoordinateSystem.

Instance Attribute Summary collapse

Attributes inherited from CoordinateSystem

#dimension

Attributes inherited from Info

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

Instance Method Summary collapse

Methods inherited from CoordinateSystem

#get_axis, #get_units

Methods inherited from Base

#_to_wkt, #eql?, #inspect, #to_s, #to_wkt

Constructor Details

#initialize(name_, horizontal_datum_, *optional_) ⇒ HorizontalCoordinateSystem

:nodoc:



1340
1341
1342
1343
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1340

def initialize(name_, horizontal_datum_, *optional_)  # :nodoc:
  super(name_, 2, *optional_)
  @horizontal_datum = horizontal_datum_
end

Instance Attribute Details

#horizontal_datumObject (readonly)

Returns the HorizontalDatum.



1347
1348
1349
# File 'lib/rgeo/coord_sys/cs/entities.rb', line 1347

def horizontal_datum
  @horizontal_datum
end