spatial_features 3.6.0 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c477982103b4f48e410ff562a0bf0e16ec24e4cd3b42584aa5015cde9d380264
4
- data.tar.gz: 9982438597418015427e05f060ac060f2a3ab803930c06d8a5e9a7578153129f
3
+ metadata.gz: 3ebf096f67bbcf896b1ab6530ae6165e9fbc1339b1e1860021c0788432167d55
4
+ data.tar.gz: bb86a50a88c2350b9ec66b78d808e40a78aab49acd64984ddd9ab78e19138146
5
5
  SHA512:
6
- metadata.gz: 4aa2e8cdb7a59b4bf113489055c0d3018b3fb01ce5e18d6a03ec77d865e177b84231715abab3c410d5aba837db2fc0f0ebf2dd6ab70d5892567aaeda7b6e4e0a
7
- data.tar.gz: 9a823d0703242fff4b790428b531a52d6017aa28e5922d87052066ff72e8056fa841825566e4feb0d48f10b238ca0be5570393ffe126108cf8c057efac3dbfba
6
+ metadata.gz: 9faadb3fdb9fa0f0227b171bf5719e17d199b6fb99a0216be4dac0e4c02880dc87882d5cc8834f4edb606db64ddc2a387130ae3bae789bfb9fda439c02c97ac0
7
+ data.tar.gz: 6c88b8d2bf6c824772364ef987c1d995591bc7b793f61fca6919977c6a9dad054d0a6e5269628e82c4112a5318eaa0253e4182b753b37fe0d861664b1e946f49
@@ -12,16 +12,6 @@ module SpatialFeatures
12
12
  rescue OpenURI::HTTPError
13
13
  raise ImportError, "ArcGIS Map Service not found. Ensure ArcGIS Server is running and accessible at #{path_or_url}."
14
14
  end
15
-
16
- private
17
-
18
- # ArcGIS includes metadata as an html table in the description
19
- def each_record(&block)
20
- super do |record|
21
- record.metadata = Hash[Nokogiri::XML(record.metadata[:description]).css('td').collect(&:text).each_slice(2).to_a]
22
- yield record
23
- end
24
- end
25
15
  end
26
16
  end
27
17
  end
@@ -66,7 +66,7 @@ module SpatialFeatures
66
66
  validate_shapefile!(file.path)
67
67
  proj4 = proj4_projection(file.path)
68
68
 
69
- RGeo::Shapefile::Reader.open(file.path) do |records| # Fall back to unprojected geometry if projection fails
69
+ RGeo::Shapefile::Reader.open(file.path, :allow_unsafe => true) do |records| # Fall back to unprojected geometry if projection fails
70
70
  block.call records, proj4
71
71
  end
72
72
  ensure
@@ -1,3 +1,3 @@
1
1
  module SpatialFeatures
2
- VERSION = "3.6.0"
2
+ VERSION = "3.6.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spatial_features
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Wallace
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-02-06 00:00:00.000000000 Z
12
+ date: 2024-03-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails