User Tools

Site Tools


nswtopo

Differences

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

Link to this comparison view

Next revision
Previous revision
nswtopo [2023/11/03 09:57] – created 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), nswtopo-layers assumes it needs nswtopo2.0.0 and installs it as a dependency. So you'll probably need to uninstall the 2.0.0 version.+After all this, there are still a few little hurdles to jump! You can install **nswtopo** and **nswtopo-layers** using gem.
  
 ''gem install nswtopo'' ''gem install nswtopo''
Line 105: Line 105:
 ''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 119: 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.1/bin/nswtopo config --layer-dir /home/tomb/.gem/gems/nswtopo-layers-1.0.1/layers''
  
-''/home/tomb/.gem/gems/nswtopo-3.1/bin/nswtopo config --layer-dir /home/tomb/.gem/gems/nswtopo-layers-1.0.0/layers''+You'll need to do something similar if you've manually downloaded nswtopo-layers.
  
 === Test installation === === Test installation ===
Line 127: 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.1698965854.txt.gz · Last modified: 2023/11/03 09:57 by bushwalking

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki