Module: CoordinatesTransformations::Bounds
- Included in:
- GeoKit::Bounds
- Defined in:
- lib/coordinates_transformations/bounds.rb
Instance Method Summary collapse
-
#to_multipoint ⇒ Object
Converts self into a GeoRuby::SimpleFeatures::MultiPoint.
-
#to_utm ⇒ Object
Converts self into an array of southwest and northeast GeoUtm::UTM.
Instance Method Details
#to_multipoint ⇒ Object
Converts self into a GeoRuby::SimpleFeatures::MultiPoint
11 12 13 14 |
# File 'lib/coordinates_transformations/bounds.rb', line 11 def to_multipoint point1, point2 = self.to_utm GeoRuby::SimpleFeatures::MultiPoint.from_coordinates([ [ point1.e, point1.n ], [ point2.e, point2.n ] ]) end |
#to_utm ⇒ Object
Converts self into an array of southwest and northeast GeoUtm::UTM
6 7 8 |
# File 'lib/coordinates_transformations/bounds.rb', line 6 def to_utm [self.sw.to_utm, self.ne.to_utm] end |