question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE]: Enable COG creation

See original GitHub issue

Currently COGs can’t be created from within solaris. I did try to implement it, but ran into an error when I tried to do so:

RasterioIOError: Read or write failed. Writing through VRTSourcedRasterBand is not supported.

This was a GDAL CPLE_-originating error. Googling around, this seems like it’s not restricted to rio_cogeo, but the way writing is implemented in rio_cogeo could be the source of it. Alternatively, it could be an issue with the fact that I have both GDAL python bindings and rasterio installed in the environment. I got the same error when I just tried to run rio_cogeo.cogeo.cog_translate() directly in a Jupyter notebook on a GeoTIFF (not within the solaris functionality).

Two things I need to do to test this:

  1. create a new conda environment with no GDAL installed outside of rasterio and rio_cogeo, and see if I still have the same issue. If not, then this is likely a consequence of installing both GDAL and rasterio and we’ll need to figure out how to resolve that.
  2. If the above doesn’t fix the problem, submit an issue to the rio_cogeo repository.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
vincentsaragocommented, Jun 28, 2019

@nrweir I’ll have a look, please feel free to tag me on any rio-tiler/rio-cogeo/rasterio issues

0reactions
vincentsaragocommented, Jul 9, 2019

@nrweir excellent, yes please feel free to share any tips or open a PR 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

GeoExamples - Cloud Optimized GeoTIFF tutorial
The easiest way to create a COG is using the GDAL command line interface. If the GeoTIFF data is created from a script...
Read more >
COG – Cloud Optimized GeoTIFF generator - GDAL
This driver supports the creation of Cloud Optimized GeoTIFF (COG). It essentially relies upon the GTiff – GeoTIFF File Format driver with the ......
Read more >
COGs in production. Leveraging Cloud Optimised GeoTIFFs…
1. Generating VRTs from separate rasters. GDAL enables raster datasets to be created virtually from other raster datasets without copying all of ...
Read more >
COG — Blog - open.gis.lab
The version of GDAL is important to know as version 3.1 has a built in COG driver that support COG creation. Step 2:...
Read more >
Cloud GeoTiff Backed Earth Engine Assets - Google Developers
When a COG-backed asset is created, Earth Engine reads the metadata of the TIFF in Cloud Storage and creates asset store entry. The...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found