Comments (4)
Hey @j08lue thanks for this issue.
What do you think? Would this make sense to add to this package?
In short term I think this could make thing a bit complex and definitely be a breacking change.
Or will this package anyways be superseded by the new COG driver in GDAL?
This is still to be defined, To be honest I guess most of the feature of rio-cogeo will be replaced by the new GDAL COG driver, but I think there is still one-two feature that won't, but I need to better study the subject.
Back to array to cog, we could maybe to a simple change to allow memory file as input (instead of path). in
Line 109 in d08e985
we could maybe to a simple check to see if we have an already open file (memory file) or if we need to open it (like in https://github.com/cogeotiff/rio-tiler/blob/master/rio_tiler/utils.py#L403-L407), thus you could do something like
with MemoryFile() as memfile:
with memfile.open(** src_profile) as mem:
mem.write(data)
cog_translate(mem, *args, **kwargs)
from rio-cogeo.
we could maybe to a simple check to see if we have an already open file (memory file) or if we need to open it
That solution would serve me very well! Should I submit a PR or can you implement this quickly?
Btw, I actually have a working implementation of this API already, but the COGs are not fully valid and I would like to merge into using rio-cogeo
instead.
from rio-cogeo.
That solution would serve me very well! Should I submit a PR or can you implement this quickly?
Yes, I will be happy to review it.
Btw, I actually have a working implementation of this API already, but the COGs are not fully valid and I would like to merge into using rio-cogeo instead.
Not sure to understand here
from rio-cogeo.
Not sure to understand here
😄 haha, nevermind. I'll submit a PR shortly.
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
- Change folder of "execution" HOT 11
- 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.