Comments (11)
the origin bug
should be fixed in 3.5.1 (which should be on pypi in couple minutes). I'll open another PR later to add a new option for user to pass a temporary directory
from rio-cogeo.
@thaarhoff is your source_file
a local file?
maybe you can try to change CPL_TMPDIR
environment variable to point to a specific directory
is. target_file
in /tmp/....
by default we will create a temporary file in the same directory as the target destination https://github.com/cogeotiff/rio-cogeo/blob/main/rio_cogeo/cogeo.py#L28-L40
from rio-cogeo.
Thanks for the quick response.
rio is executed in /opt/images
. The source file is also in that folder. The target file would be in a (already existing) subfolder.
/opt/images
< execution
/opt/images/source_file
/opt/images/result/target_file
I'll set the environment variable and come back.
from rio-cogeo.
Before rio execution
/# du --max-depth=1
68028460 ./opt
8 ./tmp
echo $CPL_TMPDIR
> /opt/geoimages/result
Starting rio
Reading input: /opt/geoimages/input.tif
and tmp starts rising again.
/# du --max-depth=1
68028460 ./opt
918124 ./tmp
from rio-cogeo.
And what's in tmp ?
from rio-cogeo.
Before, tmp is empty.
There is a tmp-tif file being generated
And that is not the filename of the target_file
from rio-cogeo.
Interesting So the file is created in tmp
Can you make sure that --allow-intermediate-compression is used
from rio-cogeo.
I added the option. I mean - it raises slower. Still the file is created in tmp.
3.4GB at the moment.
And evicted at 12GB, since /vda1 is full. While the PVC with 400GB is untouched :D
from rio-cogeo.
🤦 I see!
I guess in https://github.com/cogeotiff/rio-cogeo/blob/main/rio_cogeo/cogeo.py#L33, is_file()
will only return True
when we pass a valid (existing) file.
I'll fix this and release a new version 🙏
from rio-cogeo.
Thank you for investigating!
I'll look forward to it.
from rio-cogeo.
Works. Thank you for the quick fix <3
from rio-cogeo.
Related Issues (20)
- Displaying continuous data with multiple transparency values?
- add `ZOOM_LEVEL` creation option for web optimized COG
- installation give error
- Creating a COG in place rather than generating a new file? HOT 1
- add option to forward namespaced metadata
- add python 3.10 support
- All Console output is standard error HOT 6
- COG convesion succeeds with GDAL but not with rio-cogeo HOT 4
- NetCDF to CoG workflow
- GeoTIFF with invalidated optimizations shows up as valid HOT 1
- installation issues - coggeo command HOT 3
- limit pydantic to `1.0` HOT 3
- Shift/zoom after updating to >=4 HOT 2
- Pydantic 2.0 incompatible with morecantile HOT 1
- Unexpected GET Requests Count with web-optimized COG
- Clarify arguments used only when producing "web-optimized" COGs HOT 4
- set blocksize from the TileMatrixSet
- COG validation fails for files that are SPARSE and have sparse edge tiles in the overviews. HOT 4
- Colormap extended to 255 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rio-cogeo.