06-20-2017 12:00 AM
Hi,
We are trying to generate a json configuration file with multiple geopackage database in the same legend entry.
Our finally objective is to have only 2 layers in the legend. 1 layer with osm and 1 layer with all gpkg.
Steps: Example with 2 gpkg
"services": [{ "id": "osmServiceId", "name": "Open Street Map", "type": "osmService", "url": "http://{a,b,c}.tile.openstreetmap.org" }, { "id": "GIOSDbServiceId", "name": "HCWA", "type": "db", "dbType": "gpkg", "connectionString": "barcelona.gpkg", "serviceMetadata": "GIOSDbServiceMetadataId" }, { "id": "GIOSDbServiceId1", "name": "HCWA1", "type": "db", "dbType": "gpkg", "connectionString": "barcelona_lukasz.gpkg", "serviceMetadata": "GIOSDbServiceMetadataId" }
"featureSourceDescriptions": [{ "id": "osmFsdId", "type": "slippyMapLayer", "service": "osmServiceId" }, { "id": "giosDbFsdId", "type": "dbTileLayer", "layerName": "Districtes", "service": "GIOSDbServiceId" }, { "id": "giosDbFsdId1", "type": "dbTileLayer", "layerName": "Districtes", "service": "GIOSDbServiceId1" }
"datasets": [{ "id": "osmDatasetId", "sources": [ "osmFsdId" ] }, { "id": "giosDataseId", "sources": [ "giosDbFsdId","giosDbFsdId1" ] }],
"legends": [{ "id": "legendId", "name": "GIOS Data", "entries": [{ "id": "osmDatasetId", "dataset": "osmDatasetId", "visible": true }, { "id": "giosDataseId", "dataset": "giosDataseId", "visible": true }] }],
It's possible to have multiple gpkg in the same legend entry?
Can you send an example?
I send you our current json file.
06-20-2017 12:26 AM
Hi,
let me ask the question first: why do you want to have multiple geopackage databases in the same legend entry?
06-20-2017 12:37 AM
Maybe not is necesary and there are another solution.
I try to explain our scenario with an example
Our first idea was create a multiple tables but in the community documentation saw that the gdaladdo tool not works with multiple tables.
Any idea are welcome.
06-20-2017 01:32 AM
We documented GDAL addo as the only one that was working out of the box.
Having said that we've been discussing the solution with separate request for each zoom level. If you have a WMS with all the layers and zoom levels (scale denominators) properly configured, the solution would enable you to generate one GeoPackage with one table. Having one GeoPackage with one table, you can display it under one legend entry.
The simplest way to achieve it would be to generate each pyramid zoom level seprately and merge it in script or program.
If we are to do it you should talk about it with Vince or Dominik.