[gdal-dev] Geopackage raster and COPY_SRC_OVERVIEWS
Rahkonen Jukka (MML)
jukka.rahkonen at maanmittauslaitos.fi
Mon Aug 28 05:24:10 PDT 2017
Thank you for the advice. I thought a bit further and mixed-source overviews are also common in tile cache storages (MapCache, MapProxy) or when GeoPackage is used as an outputformat for WMS (GeoServer). There seems to be some need for having an easy general method for copying overviews. Let's see if someone appears with funding or just implements it.
Lähettäjä: Even Rouault [mailto:even.rouault at spatialys.com]
Lähetetty: 28. elokuuta 2017 15:03
Vastaanottaja: gdal-dev at lists.osgeo.org
Kopio: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Aihe: Re: [gdal-dev] Geopackage raster and COPY_SRC_OVERVIEWS
On lundi 28 août 2017 11:30:00 CEST Rahkonen Jukka (MML) wrote:
> I wonder if it could be feasible to support similar COPY_SRC_OVERVIEWS
> option than GeoTIFF driver does for existing overview levels which match
> with the power of two series. Some people have constructed GeoTIFFs or
> virtual VRT rasters which have overviews from different raster sources
> (raster maps with different rendering according to the scale) and gdaladdo
> can't generate such overviews from the best resolution level.
That's certainly doable (pending someone actually implementing it) and probably something that could be generalized at the gdal_translate level
In the meantime, you can achieve a similar result with for example gdalwarp (in update mode) and using the GPKG ZOOM_LEVEL open option.
- gdal_translate small_world.tif small_world.gpkg -of gpkg
(the full resolution data is at zoom level 1)
- gdal_translate small_world.tif ovr.tif -outsize 50% 50% -scale 0 255 127 255
(create a brighter overview)
- gdalwarp ovr.tif small_world.gpkg -doo ZOOM_LEVEL=0
(populate zoom_level=0, ie first overview level, with the content of this file)
The above can be generalized too as many overviews as needed. You may need to use the -ovr switch of gdalwarp to select the appropriate source overview.
Spatialys - Geospatial professional services
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the gdal-dev