User Tools

Site Tools


nswtopo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nswtopo [2023/11/20 12:12] – nswtopo-layers issues bushwalkingnswtopo [2023/11/22 15:42] (current) bushwalking
Line 99: Line 99:
 ==== Install NSWTopo ==== ==== Install NSWTopo ====
  
-After all this, there are still a few little hurdles to jump! You can install **nswtopo** and **nswtopo-layers** using gem. Unfortunately at the time of writing (Nov 2023):  +After all this, there are still a few little hurdles to jump! You can install **nswtopo** and **nswtopo-layers** using gem.
-  * **nswtopo-layers** assumes it needs nswtopo2.0.0 (rather than 3.1.0) and installs it as a dependency. So you'll probably need to then uninstall the 2.0.0 version. +
-  * the version of **nswtopo-layers** on the GEM site hasn't been updated for a while, so many of the servers are out of date - though most still work. You are probably better off downloading the zip file directly from GitHub. See below for how to configure the layers manually.+
  
 ''gem install nswtopo'' ''gem install nswtopo''
- 
-You may be better off without the next two steps, but just in case... 
  
 ''gem install nswtopo-layers'' ''gem install nswtopo-layers''
  
-''gem uninstall nswtopo'' - and select the 2.0.0 version. +If you have previously installed nswtopo on your Windows machine, there will likely be copies of it somewhere in your path - which is also used as the starting point for the Ubuntu path. I wasted a lot of time - unsuccessfully - trying to resolve this. In the end, I just ran the Ubuntu version of nswtopo using the full path (in my case ''/home/tomb/.gem/gems/nswtopo-3.1.1/bin/nswtopo'' rather than ''nswtopo''). A bit painful. There may be easier ways around this.
- +
-If you have previously installed nswtopo on your Windows machine, there will likely be copies of it somewhere in your path - which is also used as the starting point for the Ubuntu path. I wasted a lot of time - unsuccessfully - trying to resolve this. In the end, I just ran the Ubuntu version of nswtopo using the full path (in my case ''/home/tomb/.gem/gems/nswtopo-3.1/bin/nswtopo'' rather than ''nswtopo''). A bit painful. There may be easier ways around this.+
  
 === Confirm NSWTopo version === === Confirm NSWTopo version ===
  
-Run ''nswtopo -v'' (or ''nswtopo --version'') to see whether you have version 3.1 set. If not, you will probably need the full path.+Run ''nswtopo -v'' (or ''nswtopo --version'') to see whether you have version 3.1.1 set. If not, or you get an error, you will probably need the full path.
  
 === Check layers === === Check layers ===
Line 123: Line 117:
 ''nswtopo layers'' (you may need the full path to nswtopo) ''nswtopo layers'' (you may need the full path to nswtopo)
  
-My layers weren't, probably due to the dependency issues mentioned above. I manually enabled the layers via the config:+My layers originally weren't, due to some dependency issues - but later fixed. I manually enabled the layers via the config:
  
-''/home/tomb/.gem/gems/nswtopo-3.1/bin/nswtopo config --layer-dir /home/tomb/.gem/gems/nswtopo-layers-1.0.0/layers''+''/home/tomb/.gem/gems/nswtopo-3.1.1/bin/nswtopo config --layer-dir /home/tomb/.gem/gems/nswtopo-layers-1.0.1/layers''
  
 You'll need to do something similar if you've manually downloaded nswtopo-layers. You'll need to do something similar if you've manually downloaded nswtopo-layers.
Line 133: Line 127:
 Finally we are ready to rock!! Select a smallish bounding area (or a non-urban area) - you can use https://maps.ozultimate.com/, selecting a rectangle, and using the KML download. Create a directory, drop the renamed bounds.kml into it, and navigate there: Finally we are ready to rock!! Select a smallish bounding area (or a non-urban area) - you can use https://maps.ozultimate.com/, selecting a rectangle, and using the KML download. Create a directory, drop the renamed bounds.kml into it, and navigate there:
  
-''/home/tomb/.gem/gems/nswtopo-3.1/bin/nswtopo init --bounds bounds.kml map.tgz''+''/home/tomb/.gem/gems/nswtopo-3.1.1/bin/nswtopo init --bounds bounds.kml map.tgz''
  
-''/home/tomb/.gem/gems/nswtopo-3.1/bin/nswtopo add map.tgz nsw/topographic''+''/home/tomb/.gem/gems/nswtopo-3.1.1/bin/nswtopo add map.tgz nsw/topographic''
  
-''/home/tomb/.gem/gems/nswtopo-3.1/bin/nswtopo render map.tgz map.svg map.tif''+''/home/tomb/.gem/gems/nswtopo-3.1.1/bin/nswtopo render map.tgz map.svg map.tif''
nswtopo.1700442772.txt.gz · Last modified: 2023/11/20 12:12 by bushwalking

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki