mojodna / marblecutter-virtual

Virtual catalogs for marblecutter
Other
48 stars 30 forks source link

Only render tiled GeoTIFFs #7

Open mojodna opened 5 years ago

mojodna commented 5 years ago

Check src.driver == "GTiff", src.profile["tiled"] == True, src.profile["blockxsize"] == src.profile["blockysize"].

This will prevent an excessive number of reads due to pixels laid out in strips vs. blocks or non-GeoTIFF formats (that may require full reads). It will accept non-COGs, as long as the layouts are conducive to partial reads.