Class: Placemaker::Extents
- Inherits:
-
Object
- Object
- Placemaker::Extents
- Includes:
- XmlHelper
- Defined in:
- lib/placemaker/extents.rb
Overview
container for the the map extents covering the places mentioned in the document
Instance Method Summary collapse
-
#center ⇒ Object
coordinates of center (WGS84).
-
#north_east ⇒ Object
coordinates of northeast corner of bounding box (WGS84).
-
#south_west ⇒ Object
coordinates of southwest corner of bounding box (WGS84).
Methods included from XmlHelper
Instance Method Details
#center ⇒ Object
coordinates of center (WGS84)
10 11 12 |
# File 'lib/placemaker/extents.rb', line 10 def center Placemaker::Coordinates.new(@nodeset.search('.//xmlns:center')) end |
#north_east ⇒ Object
coordinates of northeast corner of bounding box (WGS84)
20 21 22 |
# File 'lib/placemaker/extents.rb', line 20 def north_east Placemaker::Coordinates.new(@nodeset.search('.//xmlns:northEast')) end |
#south_west ⇒ Object
coordinates of southwest corner of bounding box (WGS84)
15 16 17 |
# File 'lib/placemaker/extents.rb', line 15 def south_west Placemaker::Coordinates.new(@nodeset.search('.//xmlns:southWest')) end |