Module: GeographicArea::DwcSerialization

Extended by:
ActiveSupport::Concern
Included in:
GeographicArea
Defined in:
app/models/geographic_area/dwc_serialization.rb

Instance Method Summary collapse

Instance Method Details

#dwc_georeference_attributesHash

Returns The interface to DwcOccurence records with georeferencing based on a GeographicArea.

Returns:

  • (Hash)

    The interface to DwcOccurence records with georeferencing based on a GeographicArea



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'app/models/geographic_area/dwc_serialization.rb', line 10

def dwc_georeference_attributes
  # disabled wkt from GeographicArea
  # In the future we could return to centroids
  return {}

  #  o = default_geographic_area_geographic_item
  #  { geodeticDatum: nil,
  #    footprintWKT: o&.geographic_item&.to_wkt,
  #    footprintSRS: Gis::FACTORY.srid.to_s,
  #    # footprintSpatialFit

  #    georeferenceProtocol: 'Selected from a controlled Gazetteer.',

  #    georeferenceRemarks: 'Derived from a geographic area gazeteer.',
  #    georeferenceVerificationStatus: 'Maximum of second level geopolitical subdivision only.',
  #    georeferenceSources: o&.data_origin,
  #  }
end