Class: SpatialFeatures::Importers::Shapefile
- Defined in:
- lib/spatial_features/importers/shapefile.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #cache_key ⇒ Object
-
#initialize(data, *args, proj4: nil, **options) ⇒ Shapefile
constructor
A new instance of Shapefile.
Methods inherited from Base
Constructor Details
#initialize(data, *args, proj4: nil, **options) ⇒ Shapefile
7 8 9 10 |
# File 'lib/spatial_features/importers/shapefile.rb', line 7 def initialize(data, *args, proj4: nil, **) super(data, *args, **) @proj4 = proj4 end |
Instance Method Details
#cache_key ⇒ Object
12 13 14 |
# File 'lib/spatial_features/importers/shapefile.rb', line 12 def cache_key @cache_key ||= Digest::MD5.hexdigest(features.to_json) end |