nswtopo 3.1.2 → 3.1.3
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/bin/nswtopo +1 -1
- data/lib/nswtopo/formats.rb +11 -1
- data/lib/nswtopo/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: 95688c5f09f158d8a3f31f800d05dbf68eb11b01f387c66d22a51d4cfdfd43df
|
|
4
|
+
data.tar.gz: e545a460b94c4836da02ebcec3af19f97bb2f8e3f9eae0ec811458716ec16249
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b59a5be38b039fd42f105fb4d855805f070629ad665238db73f294cbfdb9c0cc19df5ae87bf3275f733db3974009598e9af1945eb0be8e92b54ad8c87cc7cf5e
|
|
7
|
+
data.tar.gz: f32a3ed4e30ee4e488a8953300dc84ab6bae3be7ab2d07b45625fe969b65ad12c87f9f96f277e627470424989d710f7fa0d6a1b793186494df1323a7ed3c9578
|
data/bin/nswtopo
CHANGED
|
@@ -436,7 +436,7 @@ begin
|
|
|
436
436
|
when "inspect"
|
|
437
437
|
parser.banner = <<~EOF
|
|
438
438
|
*nswtopo* *inspect* - inspect data from an ArcGIS REST endpoint or local data source
|
|
439
|
-
usage: _nswtopo_
|
|
439
|
+
usage: _nswtopo_ _inspect_ [~options~] <url-or-path>
|
|
440
440
|
EOF
|
|
441
441
|
parser.on "-l", "--layer <layer>", String, "name of layer"
|
|
442
442
|
parser.on "-i", "--id <id>", Integer, "id number of layer"
|
data/lib/nswtopo/formats.rb
CHANGED
|
@@ -98,12 +98,22 @@ module NSWTopo
|
|
|
98
98
|
vrt.elements.each("VRTDataset/VRTRasterBand/SimpleSource/DstRect") do |dst_rect|
|
|
99
99
|
dst_rect.add_attributes "xOff" => raster_offset[0], "yOff" => raster_offset[1]
|
|
100
100
|
end
|
|
101
|
+
vrt.elements["VRTDataset/VRTRasterBand[@band='1']"].deep_clone.then do |band|
|
|
102
|
+
vrt.elements["VRTDataset"].add_element(band)
|
|
103
|
+
band.add_attribute("band", 4)
|
|
104
|
+
band.elements["ColorInterp"].text = "Alpha"
|
|
105
|
+
band.elements["SimpleSource"]
|
|
106
|
+
end.then do |source|
|
|
107
|
+
source.name = "ComplexSource"
|
|
108
|
+
source.add_element("ScaleRatio").add_text("0")
|
|
109
|
+
source.add_element("ScaleOffset").add_text("255")
|
|
110
|
+
end unless vrt.elements["VRTDataset/VRTRasterBand[@band='4']"]
|
|
101
111
|
end
|
|
102
112
|
end.inject do |vrt, tile_vrt|
|
|
103
113
|
vrt.elements["VRTDataset/VRTRasterBand[@band='1']"].add_element tile_vrt.elements["VRTDataset/VRTRasterBand[@band='1']/SimpleSource"]
|
|
104
114
|
vrt.elements["VRTDataset/VRTRasterBand[@band='2']"].add_element tile_vrt.elements["VRTDataset/VRTRasterBand[@band='2']/SimpleSource"]
|
|
105
115
|
vrt.elements["VRTDataset/VRTRasterBand[@band='3']"].add_element tile_vrt.elements["VRTDataset/VRTRasterBand[@band='3']/SimpleSource"]
|
|
106
|
-
vrt.elements["VRTDataset/VRTRasterBand[@band='4']"].add_element tile_vrt.elements["VRTDataset/VRTRasterBand[@band='4']
|
|
116
|
+
vrt.elements["VRTDataset/VRTRasterBand[@band='4']"].add_element tile_vrt.elements["VRTDataset/VRTRasterBand[@band='4']/*[self::SimpleSource|self::ComplexSource]"]
|
|
107
117
|
vrt
|
|
108
118
|
end.tap do |vrt|
|
|
109
119
|
vrt.elements.each("VRTDataset/VRTRasterBand/@blockYSize", &:remove)
|
data/lib/nswtopo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nswtopo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matthew Hollingworth
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-10-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|