Class: Geom::UTM
| Relationships | |
| Inherits: | Object |
Overview
Valid ranges for #zone_number and #zone_letter are 1-60 and C-X (omitting I and O). Valid ranges for #x and #y are 100000-899999.
The UTM class lets you work with UTM map coordinates.
Class Method Summary
-
.new(zone_number, zone_letter, x, y) ⇒ Geom::UTM
constructor
The
#initializemethod is used to create a newUTMcoordinate.
Instance Method Summary
-
#to_a ⇒ Array(Integer, String, Float, Float)
The #to_a method returns a
UTMcoordinate as a 4 element array. -
#to_latlong ⇒ Geom::LatLong
The #to_latlong method is used to convert
UTMcoordinates to latitude and longitude. -
#to_s ⇒ String
The #to_s method is used to retrieve a string representation of a
UTM. -
#x ⇒ Float
The #x method returns the
UTMx coordinate. -
#y ⇒ Float
The #y method returns the
UTMy coordinate. -
#zone_letter ⇒ String
The #zone_letter method returns the
UTMzone letter. -
#zone_number ⇒ Integer
The #zone_number method returns the
UTMzone number.
Constructor Details
.new(zone_number, zone_letter, x, y) ⇒ UTM
.new(utm) ⇒ UTM
.new(array) ⇒ UTM
UTM
.new(utm) ⇒ UTM
.new(array) ⇒ UTM
The #initialize method is used to create a new UTM coordinate. You will often create UTM objects by calling the method Sketchup::Model#point_to_utm instead of calling this method.
Instance Method Details
#to_a ⇒ Array(Integer, String, Float, Float)
The #to_a method returns a UTM coordinate as a 4 element array. The Array elements are the zone number, the zone letter, the x coordinate and the y coordinate.
#to_latlong ⇒ Geom::LatLong
The #to_latlong method is used to convert UTM coordinates to latitude and longitude. See the LatLong class for more information.
#to_s ⇒ String
The #to_s method is used to retrieve a string representation of a UTM.
#x ⇒ Float
The #x method returns the UTM x coordinate.
#y ⇒ Float
The #y method returns the UTM y coordinate.
#zone_letter ⇒ String
The #zone_letter method returns the UTM zone letter.
#zone_number ⇒ Integer
The #zone_number method returns the UTM zone number.