Module: CoordinatesTransformations::LatLng

Included in:
GeoKit::LatLng
Defined in:
lib/coordinates_transformations/lat_lng.rb

Instance Method Summary collapse

Instance Method Details

#to_pointObject

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_utmObject

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