demsphere icon indicating copy to clipboard operation
demsphere copied to clipboard

Dependencies?

Open nakulbende opened this issue 4 years ago • 3 comments

Hello Michael,

Back with some basic questions again (never used go before) - I am getting the following message when trying to use the script:

image

Does this mean I do not have the dependencies? I did install kingpin.v2 by running o get gopkg.in/alecthomas/kingpin.v2 , but I do not know if I have to clone your other repo? Is there particular location that needs to be in?

Also - is the command to run this simply go run main.go <input image location> ?

As always - huge thanks!

nakulbende avatar Mar 13 '21 16:03 nakulbende

BTW - i did run go get -u github.com/fogleman/fauxgl as mentioned in that repo - and it is installed as

image

PS: I tried renaming the folder to remove the alphanumerics, it still throws the error

nakulbende avatar Mar 13 '21 16:03 nakulbende

This is an issue with the latest Go version.

https://blog.golang.org/go116-module-changes

You can run this as a workaround:

go env -w GO111MODULE=auto

fogleman avatar Mar 15 '21 14:03 fogleman

@fogleman as always, thanks for solving the issue.

It is working! I am amazed by this code. I am taking DEMs from USGS website - The code only takes JPG or PNGs, right? Can tiffs be imported directly, since that is the format they give the DEMS in? I can probably convert them - I believe they have a utility. In any case - thanks!

nakulbende avatar Mar 20 '21 14:03 nakulbende