Class: Georeference::Inaturalist

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

Overview

A Georeference derived from metadata on an iNaturalist result as interpreted by lib/vendor/inaturalist.rb

point only

Instance Method Summary collapse

Instance Method Details

#dwc_georeference_attributesObject



8
9
10
11
12
13
14
15
16
17
# File 'app/models/georeference/inaturalist.rb', line 8

def dwc_georeference_attributes
  h = {}
  super(h)
  h.merge!(
    georeferenceSources: 'iNaturalist',
    georeferenceRemarks: 'Created from a TaxonWorks interface that imports from iNaturalist.'
  )
  h[:georeferenceProtocol] = 'Extracted from iNaturalist API based on an iNaturalist observationID' if h[:georeferenceProtocol].blank?
  h
end