TouchTerrain_jupyter_docker
TouchTerrain_jupyter_docker copied to clipboard
KML polygons do not work.
I'm using the touchterrain docker container to run touchterrain standalone: https://github.com/ChHarding/TouchTerrain_for_CAGEO https://github.com/ChHarding/TouchTerrain_jupyter_docker
I have uploaded a geotiff file into the container I have also uploaded a kml file to crop the geotiff to the shape of a polygon. However, when I run: python TouchTerrain_standalone.py stuff/my_config.json I get the following and it does not crop my geotiff file: started: 07:42:36.474191 INFO:root:started: 07:42:36.474191 ERROR 4: output.tif: No such file or directory clipping output.tif with /TouchTerrain/standalone/stuff/tsapoly.kml failed, using unclipped geotiff. object of wrong GDALDatasetShadow INFO:root:clipping output.tif with /TouchTerrain/standalone/stuff/tsapoly.kml failed, using unclipped geotiff. object of wrong GDALDatasetShadow source raster upper left corner (x/y): -12008942.399 4572595.701 INFO:root:source raster upper left corner (x/y): -12008942.399 4572595.701
The error saying it can't find output.tif is strange because it does end up chugging along to make an STL of the entire DEM instead of the polygon.
I have tried to extract my coordinates and dump them in the example polygon file and that doesn't seem to work either.
Jake,
Sorry but I’m pretty sure that clipping of geotiffs with a polygon is not yet implemented. I can have another look but I’m super busy at the moment. Can you ping me again in a couple of weeks?
Cheers
Chris
On Jul 22, 2024, at 08:46, Jake Burns @.***> wrote:
I'm using the touchterrain docker container to run touchterrain standalone: https://github.com/ChHarding/TouchTerrain_for_CAGEO https://github.com/ChHarding/TouchTerrain_jupyter_docker
I have uploaded a geotiff file into the container I have also uploaded a kml file to crop the geotiff to the shape of a polygon. However, when I run: python TouchTerrain_standalone.py stuff/my_config.json I get the following and it does not crop my geotiff file: started: 07:42:36.474191 INFO:root:started: 07:42:36.474191 ERROR 4: output.tif: No such file or directory clipping output.tif with /TouchTerrain/standalone/stuff/tsapoly.kml failed, using unclipped geotiff. object of wrong GDALDatasetShadow INFO:root:clipping output.tif with /TouchTerrain/standalone/stuff/tsapoly.kml failed, using unclipped geotiff. object of wrong GDALDatasetShadow source raster upper left corner (x/y): -12008942.399 4572595.701 INFO:root:source raster upper left corner (x/y): -12008942.399 4572595.701
The error saying it can't find output.tif is strange because it does end up chugging along to make an STL of the entire DEM instead of the polygon.
I have to extract my coordinates and dump them in the example polygon file and that doesn't seem to work either.
— Reply to this email directly, view it on GitHubhttps://github.com/ChHarding/TouchTerrain_jupyter_docker/issues/13, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEYDF5L36U4JY623HKPZX6LZNUELRAVCNFSM6AAAAABLILTEOWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQZDEOJSGYYTOMA. You are receiving this because you are subscribed to this thread.Message ID: @.***>
Sure, I can reach back out in a bit.
I also tried to clip using a KML file that's not working either. The file not found and gdalshadow messages are throwing me for a loop.