class Placemaker::Document

Public Instance Methods

administrative_scope() click to toggle source

Returns a Placemaker::Location object that is a container for the smallest administrative place that best describes the document

   # File lib/placemaker/document.rb
20 def administrative_scope
21   as = @nodeset.search('.//xmlns:administrativeScope').first
22   Placemaker::Location.new(as) unless as.nil?
23 end
extents() click to toggle source

Returns a Placemaker::Extents object that is a container for the the map extents covering the places mentioned in the document

   # File lib/placemaker/document.rb
32 def extents
33   extents = @nodeset.search('.//xmlns:extents').first
34   Placemaker::Extents.new(extents) unless extents.nil?
35 end
geographic_scope() click to toggle source

Returns a Placemaker::Location object that is a container for the smallest place that best describes the document

   # File lib/placemaker/document.rb
26 def geographic_scope
27   gs = @nodeset.search('.//xmlns:geographicScope').first
28   Placemaker::Location.new(gs) unless gs.nil?
29 end
place_details() click to toggle source

Returns a Placemaker::Location object that is a container for one named place mentioned in the document

   # File lib/placemaker/document.rb
13 def place_details
14   @nodeset.search('.//xmlns:placeDetails').map do |p|
15     Placemaker::PlaceDetails.new(p)
16   end
17 end
reference_list() click to toggle source
   # File lib/placemaker/document.rb
37 def reference_list
38   @nodeset.search('.//xmlns:referenceList[1]/xmlns:reference').map do |reference|
39     Placemaker::Reference.new(reference)
40   end
41 end