Module: CoordinatesTransformations::LatLng
- Included in:
- GeoKit::LatLng
- Defined in:
- lib/coordinates_transformations/lat_lng.rb
Instance Method Summary collapse
-
#to_point ⇒ Object
Transforms self into a GeoRuby::SimpleFeatures::Point.
-
#to_utm ⇒ Object
Transforms self into a GeoUtm::UTM.
Instance Method Details
#to_point ⇒ Object
Transforms self into a GeoRuby::SimpleFeatures::Point
11 12 13 14 |
# File 'lib/coordinates_transformations/lat_lng.rb', line 11 def to_point utm_position = self.to_utm GeoRuby::SimpleFeatures::Point.from_x_y(utm_position.e, utm_position.n) end |
#to_utm ⇒ Object
Transforms self into a GeoUtm::UTM
6 7 8 |
# File 'lib/coordinates_transformations/lat_lng.rb', line 6 def to_utm GeoUtm::LatLon.new(self.lat, self.lng).to_utm end |