[gdal-dev] Appending to an existing GeoPackage raster table

Even Rouault even.rouault at spatialys.com
Sat Oct 7 03:40:35 PDT 2017


Hi,

> I'm trying to find a way to append data to an existing geopackage raster
> layer using GDAL.
> 
> The specific case is to use different sources (or different configurations
> of a source like WMS) at different zoom levels, but extending an existing
> table at the same zoom might also be useful.
> 
> As an example, consider a rendered map (like a OSM bright or humanitarian
> style), where the level of detail you want at level 12 is different to level
> 8 or 15.
> I can easily create a table at level 12, and add overviews, but the
> overviews are just the same data made smaller. Instead, I want to render it
> differently at each zoom level.

you can do that with "gdalwarp yoursource existing.gpkg -doo ZOOM_LEVEL=xxx"
This will insert the data at the requested zoom level.

> 
> I tried using APPEND_DATASET, which does work for a new table, but not for
> adding data to an existing table:

Yes, APPEND_SUBDATASET is to add new raster tables.

Even

-- 
Spatialys - Geospatial professional services
http://www.spatialys.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20171007/419f038f/attachment.html>


More information about the gdal-dev mailing list