rgeo-shapefile 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +6 -0
- data/lib/rgeo/shapefile/reader.rb +8 -3
- data/lib/rgeo/shapefile/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c4295f7f72cac7f64005b487f7afc5c9d09d3af8ce90a7a55d4f5455a97fa53
|
4
|
+
data.tar.gz: 588d82486bc992ab3f0b0cd497dd395de4d32e47ce05678451540674e8d908dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3ab411058b49876b8e85ef15731682d8f214059912135c0bca833c40fd3933cb856e6386dcaa90e6b1cabdea6ac3b100adfca7bd954a098b12391efea27fa6b
|
7
|
+
data.tar.gz: 4470d988aca01690d234b6a61f2afcd1c3e1ec1ace22779080e909c7f13eb944b8e96fafcc505ce29ccbe89850b2e551763c802b64ded22c36e9d6f7bd97e341
|
data/History.md
CHANGED
@@ -180,9 +180,14 @@ module RGeo
|
|
180
180
|
@opened = true
|
181
181
|
@main_file = ::File.open(path_ + ".shp", "rb:ascii-8bit")
|
182
182
|
@index_file = ::File.open(path_ + ".shx", "rb:ascii-8bit")
|
183
|
-
@attr_dbf =
|
184
|
-
|
185
|
-
|
183
|
+
@attr_dbf =
|
184
|
+
if ::File.file?(path_ + ".dbf") && ::File.readable?(path_ + ".dbf")
|
185
|
+
if ::File.file?(path_ + ".cpg") && ::File.readable?(path_ + ".cpg")
|
186
|
+
dbf_encoding_ = ::File.read(path_ + ".cpg")
|
187
|
+
end
|
188
|
+
|
189
|
+
::DBF::Table.new(path_ + ".dbf", nil, dbf_encoding_)
|
190
|
+
end
|
186
191
|
@main_length, @shape_type_code, @xmin, @ymin, @xmax, @ymax, @zmin, @zmax, @mmin, @mmax = @main_file.read(100).unpack("x24Nx4VE8")
|
187
192
|
@main_length *= 2
|
188
193
|
index_length_ = @index_file.read(100).unpack("x24Nx72").first
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rgeo-shapefile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Azuma
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-02-
|
12
|
+
date: 2019-02-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rgeo
|