ChHarding / TouchTerrain_for_CAGEO

Touch Terrain: A python app to create 3D printable terrain models (STL/OBJ) from only elevation data (via Google Earth Engine) or from a local geotiff. Has been used for CNC terrain models. Runs as a web app (http://touchterrain.org), as .py file (standalone.py) or as jupyter notebook. Docker image: https://github.com/ChHarding/TouchTerrain_jupyter_docker
http://touchterrain.geol.iastate.edu
181 stars 44 forks source link

SYNTAX FOR USING "importedGPX" : #90

Open mandeep255 opened 3 months ago

mandeep255 commented 3 months ago

I am unable to pass a path for a valid file, I am using syntax "importedGPX" : "C:\v.gpx"

I get an error message

importedGPX = C:\v.gpx

Error: [Errno 2] No such file or directory: 'C'

can you help pl, thanks

ChHarding commented 3 months ago

You backslash is interpreted as an escape character (like with \n for newline or \t for tab). You need to either use “C:\v.gpx” or r"C:\v.gpx” r = raw stain where \ is not taken as a escape character.

On Mar 22, 2024, at 13:19, mandeep255 @.**@.>> wrote:

I am unable to pass a path for a valid file, I am using syntax "importedGPX" : "C:\v.gpx"

I get an error message

importedGPX = C:\v.gpx

Error: [Errno 2] No such file or directory: 'C'

can you help pl, thanks

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_for_CAGEO/issues/90, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5JJLFTCLB23Y6DW5HLYZRY35AVCNFSM6AAAAABFDZDKBOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGIYDGMBWGE2DANY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

mandeep255 commented 3 months ago

I tried with the following parameters separately "importedGPX": “C:\v.gpx” "importedGPX": r“C:\v.gpx”

I am getting the following messages in each case

Warning: JSON decode Error for manual: "importedGPX": “C:\v.gpx” Expecting value: line 1 column 18 (char 17) (ignored) Warning: JSON decode Error for manual: "importedGPX": r“C:\v.gpx” Expecting value: line 1 column 18 (char 17) (ignored)

I must be doing something wrong! regards

ChHarding commented 3 months ago

It’ll take some time before I can dig into the code. For now, how about this:

On Mar 24, 2024, at 01:52, mandeep255 @.**@.>> wrote:

I tried with the following parameters separately "importedGPX": “C:\v.gpx” "importedGPX": r“C:\v.gpx”

I am getting the following messages in each case

Warning: JSON decode Error for manual: "importedGPX": “C:\v.gpx” Expecting value: line 1 column 18 (char 17) (ignored) Warning: JSON decode Error for manual: "importedGPX": r“C:\v.gpx” Expecting value: line 1 column 18 (char 17) (ignored)

I must be doing something wrong! regards

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_for_CAGEO/issues/90#issuecomment-2016714126, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5MQ46IAFQB66DPDOSLYZZZ27AVCNFSM6AAAAABFDZDKBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJWG4YTIMJSGY. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu

mandeep255 commented 3 months ago

I am using the web version!

ChHarding commented 3 months ago

OK :). Well, sorry, that won’t work b/c I’ve not put any any hooks in for an upload to the browser for gpx files (like I did for uploading kms files). You could try the Colab version of the jupyter notebook:

In a browser where you are logged in with you Google account go to this: http://colab.research.google.com/github/ChHarding/TouchTerrain_for_CAGEO/blob/master/TouchTerrain_jupyter_starters_colab.ipynb There’s an example of how to work with a gpx file (using a file in the stuff folder) so you could upload your file there and just change the name in the notebook cell accordingly.

On Mar 25, 2024, at 12:46, mandeep255 @.**@.>> wrote:

I am using the web version!

— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_for_CAGEO/issues/90#issuecomment-2018561750, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5INEBGP3HTZYS4ZHX3Y2BPHLAVCNFSM6AAAAABFDZDKBOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJYGU3DCNZVGA. You are receiving this because you commented.Message ID: @.***>

Chris Harding Associate Professor Department of Geological & Atmospheric Sciences Touchterrain.geol.iastate.eduhttp://Touchterrain.geol.iastate.edu