mapknitter-exporter 1.0.0 → 1.0.1
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 +4 -4
- data/lib/mapknitterExporter.rb +4 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45cf78f1ae7bb90281e11c9a66befc267775458d
|
|
4
|
+
data.tar.gz: 9f0ecc13c10ec6c264dac086e5a6ab3a4bb8294b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 668dcc1082529c2c319b5ad43b2f108312f79b05db3bae5c7b4809c3b0655001860222afe3ae85a9da5b5dbf6312184f72969ca7c59493a066a8d63e58923271
|
|
7
|
+
data.tar.gz: 1710da2b8451ceb496202a0f1ec63729a296aa30714aa29d94a638cc5043a5ef2d2810ce7ac51f213fce91e8709c5b7b812e44388ce2ceb3b9e246bedc98063e
|
data/lib/mapknitterExporter.rb
CHANGED
|
@@ -219,7 +219,7 @@ class MapKnitterExporter
|
|
|
219
219
|
lowest_y = 0
|
|
220
220
|
all_coords = []
|
|
221
221
|
current = 0
|
|
222
|
-
images.
|
|
222
|
+
images.each_with_index do |image, index|
|
|
223
223
|
current += 1
|
|
224
224
|
|
|
225
225
|
## TODO: refactor to generate static status file:
|
|
@@ -227,10 +227,11 @@ class MapKnitterExporter
|
|
|
227
227
|
puts 'warping '+current.to_s+' of '+images.length.to_s
|
|
228
228
|
export.save
|
|
229
229
|
##
|
|
230
|
+
image['id'] = image['id'] || index
|
|
230
231
|
|
|
231
232
|
img_coords = generate_perspectival_distort(
|
|
232
233
|
scale,
|
|
233
|
-
id,
|
|
234
|
+
image['id'],
|
|
234
235
|
image['nodes'],
|
|
235
236
|
image['image_file_name'],
|
|
236
237
|
image['src'],
|
|
@@ -405,7 +406,7 @@ class MapKnitterExporter
|
|
|
405
406
|
end
|
|
406
407
|
# end fork
|
|
407
408
|
|
|
408
|
-
export
|
|
409
|
+
export
|
|
409
410
|
end
|
|
410
411
|
|
|
411
412
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mapknitter-exporter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeffrey Warren
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-04-
|
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: The GDAL/ImageMagick-based exporter system from MapKnitter
|
|
14
14
|
email: jeff@unterbahn.com
|