Comments (3)
It appears that it's feasible to use rasterio.Band
objects with in-memory files, but I don't think this prevents loading the data. Sure the bands are read one by one, but what about the destination raster?
with rasterio.Env(**rasterio_ops):
with rasterio.open('/home/juanlu/Development/rasterio/tests/data/RGB.byte.tif') as src:
transform, width, height = calculate_default_transform(
src.crs, dst_crs, src.width, src.height, *src.bounds)
kwargs = src.meta.copy()
kwargs.update({
'crs': dst_crs,
'transform': transform,
'width': width,
'height': height
})
with rasterio.MemoryFile() as memfile:
with memfile.open(**kwargs) as dst:
for i in range(1, src.count + 1):
reproject(
source=rasterio.band(src, i),
destination=rasterio.band(dst, i),
src_transform=src.transform,
src_crs=src.crs,
dst_transform=transform,
dst_crs=dst_crs,
resampling=Resampling.nearest)
from telluric.
We need to provide a single interface for rasters that are fully loaded to memory and rasters that are too big to be loaded to memory,
If what I mentioned in my comments will not help us, them so be it, I didn't check it.
@drnextgis will need to figure it out
from telluric.
Fixed in #87.
from telluric.
Related Issues (20)
- supply telluric-core package with less dependencies HOT 3
- test_geographic_crop_with_resize failing locally HOT 2
- memory leak in raster_opener? HOT 2
- Switch to new pyproj.crs.CRS? HOT 4
- Shapely 1.7 breaks `test_polygonize_line_square_cap_style` HOT 1
- Deprecation warnings
- Migrate off Travis CI
- Cannot import GeoVector if vis dependencies not present
- Cannot import georaster.py classes if vis depedencies ar not present HOT 1
- Expose warp_mem_limit and num_threads parameters of rasterio reproject method
- CI broken on master HOT 5
- Modifying image attribute's dtype in a MutableGeoRaster doesn't update object dtype attribute HOT 3
- Rework Matrix <-> Slack bridge
- Minimum handling of rasters without CRS and avoid meaningless RecursionError
- resize and similar methods should conserve raster mutability
- problem with nodata semantics
- Add support for RPCs HOT 6
- Don't import rasterio.path
- Problem with raster resizing HOT 2
- IReadBlock failed
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 telluric.