Making progress with this. Ive just downloaded the 8.6GB spot5 woody extent layer and am trying to integrate it in to my maps. Im having an error trying to create directories from the ruby scrip and I have no idea how to configure the permissions. I would also like to verify that the downloaded file is correct as I am not able to open it in any viewer (incl IrfanView).
Does anyone know how/where to set ruby create dir permissions in windows or what my problem might be?
- Code: Select all
bounds: bounds.gpx
margin: 15
scale: 25000
rotation: 0
include:
#- nsw/vegetation-2008-v2
- nsw/vegetation-spot5
- declination
- relief
- nsw/topographic
- grid
- nsw/reserves
- nsw/holdings
- nsw/survey
nsw.vegetation-spot5:
path: C:\Users\schulzc\Downloads\nswtopo-master\test\s5hgps_nsw_y20082012_bcvl0.tif
embed: false
#- plantation
#- nsw/reference-topo-current
#- nsw/aerial
#nsw.vegetation-2008-v2:
# path: C:\Users\schulzc\Downloads\vegetation\Data\nswintext08\hdr.adf
# colour:
# woody: light green # alternately specify a hex triplet, e.g. "#C2FFC2"
# non-woody: white
#utm: true
grid:
interval: 1000 # interval between grid lines (1000 metres by default)
width: 0.1 # width in millimetres of the marked lines on the map
#label-spacing: 5 # number of gridlines between successive labels
label-spacing: false
labels:
font-size: 2.75 # font size (in mm) of the grid labels
font-family: 'Arial Narrow' # font family for the labels
declination:
spacing: 1000 # perpendicular spacing of magnetic declination lines in metres
width: 0.2 # width of the marked lines on the map, in millimetres
stroke: red # colour of magnetic declination lines (as a hex triplet or web colour)
arrows: 50 # spacing in mm of directional arrows (set to 'false' for no arrows)
formats:
- png: 600
- map
#rasterise: C:\Users\schulzc\Downloads\nswtopo-master\test\phantomjs\bin\phantomjs.exe
#rasterise: C:\Users\schulzc\Downloads\batik-1.8
rasterise: C:\Program Files\Inkscape\inkscape.exe
and the error:
- Code: Select all
C:\Users\schulzc\Downloads\nswtopo-master\test>ruby nswtopo.rb
Calculating map bounds...
Map details:
name: map
size: 237mm x 162mm
scale: 1:25000
rotation: 0.0 degrees
extent: 5.9km x 4.1km
Creating: nsw.vegetation-spot5, 1187x815 (1.0Mpx) @ 5.0 m/px
convert.exe: unable to open image `C:/Users/schulzc/Downloads/nswtopo-master/tes
t/d20150813-7964-1af6rj6/nsw.vegetation-spot5-clut.png': No such file or directo
ry @ error/blob.c/OpenBlob/2692.
convert.exe: unable to open file `C:/Users/schulzc/Downloads/nswtopo-master/test
/d20150813-7964-1af6rj6/nsw.vegetation-spot5-clut.png' @ error/png.c/ReadPNGImag
e/3912.
convert.exe: no images defined `C:/Users/schulzc/Downloads/nswtopo-master/test/d
20150813-7964-1af6rj6/nsw.vegetation-spot5-mask.png' @ error/convert.c/ConvertIm
ageCommand/3212.
convert.exe: unable to open image `C:/Users/schulzc/Downloads/nswtopo-master/tes
t/d20150813-7964-1af6rj6/nsw.vegetation-spot5-mask.png': No such file or directo
ry @ error/blob.c/OpenBlob/2692.
convert.exe: unable to open file `C:/Users/schulzc/Downloads/nswtopo-master/test
/d20150813-7964-1af6rj6/nsw.vegetation-spot5-mask.png' @ error/png.c/ReadPNGImag
e/3912.
convert.exe: no images defined `C:/Users/schulzc/Downloads/nswtopo-master/test/d
20150813-7964-1af6rj6/nsw.vegetation-spot5.png' @ error/convert.c/ConvertImageCo
mmand/3212.
C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:1391:in `initialize': No such file or
directory @ rb_sysopen - C:/Users/schulzc/Downloads/nswtopo-master/test/d2015081
3-7964-1af6rj6/nsw.vegetation-spot5.png (Errno::ENOENT)
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:1391:in `open'
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:1391:in `copy_file'
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:485:in `copy_file'
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:402:in `block in cp'
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:1570:in `block in fu_each
_src_dest'
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:1586:in `fu_each_src_dest
0'
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:1568:in `fu_each_src_dest
'
from C:/Ruby22-x64/lib/ruby/2.2.0/fileutils.rb:401:in `cp'
from nswtopo.rb:1304:in `block in create'
from nswtopo.rb:67:in `block in mktmppath'
from C:/Ruby22-x64/lib/ruby/2.2.0/tmpdir.rb:88:in `mktmpdir'
from nswtopo.rb:66:in `mktmppath'
from nswtopo.rb:1303:in `create'
from nswtopo.rb:2975:in `block in run'
from nswtopo.rb:77:in `yield'
from nswtopo.rb:77:in `block (2 levels) in recover'
from nswtopo.rb:75:in `each'
from nswtopo.rb:75:in `block in recover'
from nswtopo.rb:2974:in `each'
from nswtopo.rb:2974:in `each'
from nswtopo.rb:2974:in `run'
from nswtopo.rb:3145:in `<main>'