Class: Georeference::GoogleMap

Inherits:
Georeference
  • Object
show all
Defined in:
app/models/georeference/google_map.rb

Overview

A Georeference derived from a Google map.

Instance Method Summary collapse

Instance Method Details

#dwc_georeference_attributesObject



12
13
14
15
16
17
18
19
20
# File 'app/models/georeference/google_map.rb', line 12

def dwc_georeference_attributes
  h = {}
  super(h)
  h.merge!(
    georeferenceSources: 'Google Maps',
    georeferenceRemarks: 'Created from a TaxonWorks interface that integrates Google Maps.')
  h[:georeferenceProtocol] = 'Shape "drawn" on a Google Map.' if h[:georeferenceProtocol].blank? 
  h
end

#make_geographic_item(geo_type, shape) ⇒ Object

coordinates is an Array of Stings of [longitude, latitude]

Parameters:

  • geo_type (Ignored)
  • shape (Ignored)


8
9
10
# File 'app/models/georeference/google_map.rb', line 8

def make_geographic_item(geo_type, shape)
  # self.geographic_item = GeographicItem.new(point: Gis::FACTORY.point(coordinates[0], coordinates[1]))
end