Class: SpatialFeatures::Importers::Shapefile

Inherits:
Base
  • Object
show all
Defined in:
lib/spatial_features/importers/shapefile.rb

Instance Attribute Summary

Attributes inherited from Base

#errors

Instance Method Summary collapse

Methods inherited from Base

#features

Constructor Details

#initialize(data, *args, proj4: nil, **options) ⇒ Shapefile

Returns a new instance of Shapefile.



9
10
11
12
# File 'lib/spatial_features/importers/shapefile.rb', line 9

def initialize(data, *args, proj4: nil, **options)
  super(data, *args, **options)
  @proj4 = proj4
end

Instance Method Details

#cache_keyObject



14
15
16
# File 'lib/spatial_features/importers/shapefile.rb', line 14

def cache_key
  @cache_key ||= Digest::MD5.hexdigest(features.to_json)
end