From f0607a3a0f472c50873ce30b2a3b8c8d15788474 Mon Sep 17 00:00:00 2001 From: stefano bovio Date: Thu, 23 Sep 2021 10:21:18 +0200 Subject: [PATCH] #512: Add GeoPackage format to layer wps downlaod configuration (#513) --- .../static/mapstore/configs/localConfig.json | 30 +++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json index 1e62f0e330..e2f445c596 100644 --- a/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json +++ b/geonode_mapstore_client/client/static/mapstore/configs/localConfig.json @@ -1062,7 +1062,20 @@ { "name": "LayerDownload", "cfg": { - "disablePluginIf": "{!state('selectedLayerPermissions').includes('download_resourcebase')}" + "disablePluginIf": "{!state('selectedLayerPermissions').includes('download_resourcebase')}", + "formats": [ + {"name": "application/json", "label": "GeoJSON", "type": "vector", "validServices": ["wps"]}, + {"name": "application/arcgrid", "label": "ArcGrid", "type": "raster", "validServices": ["wps"]}, + {"name": "image/tiff", "label": "TIFF", "type": "raster", "validServices": ["wps"]}, + {"name": "image/png", "label": "PNG", "type": "raster", "validServices": ["wps"]}, + {"name": "image/jpeg", "label": "JPEG", "type": "raster", "validServices": ["wps"]}, + {"name": "application/wfs-collection-1.0", "label": "wfs-collection-1.0", "type": "vector", "validServices": ["wps"]}, + {"name": "application/wfs-collection-1.1", "label": "wfs-collection-1.1", "type": "vector", "validServices": ["wps"]}, + {"name": "application/zip", "label": "Shapefile", "type": "vector", "validServices": ["wps"]}, + {"name": "text/csv", "label": "CSV", "type": "vector", "validServices": ["wps"]}, + {"name": "application/geopackage+sqlite3", "label": "GeoPackage", "type": "vector", "validServices": ["wps"]}, + {"name": "application/geopackage+sqlite3", "label": "GeoPackage", "type": "raster", "validServices": ["wps"]} + ] } }, { @@ -1639,7 +1652,20 @@ { "name": "LayerDownload", "cfg": { - "disablePluginIf": "{!state('selectedLayerPermissions').includes('download_resourcebase')}" + "disablePluginIf": "{!state('selectedLayerPermissions').includes('download_resourcebase')}", + "formats": [ + {"name": "application/json", "label": "GeoJSON", "type": "vector", "validServices": ["wps"]}, + {"name": "application/arcgrid", "label": "ArcGrid", "type": "raster", "validServices": ["wps"]}, + {"name": "image/tiff", "label": "TIFF", "type": "raster", "validServices": ["wps"]}, + {"name": "image/png", "label": "PNG", "type": "raster", "validServices": ["wps"]}, + {"name": "image/jpeg", "label": "JPEG", "type": "raster", "validServices": ["wps"]}, + {"name": "application/wfs-collection-1.0", "label": "wfs-collection-1.0", "type": "vector", "validServices": ["wps"]}, + {"name": "application/wfs-collection-1.1", "label": "wfs-collection-1.1", "type": "vector", "validServices": ["wps"]}, + {"name": "application/zip", "label": "Shapefile", "type": "vector", "validServices": ["wps"]}, + {"name": "text/csv", "label": "CSV", "type": "vector", "validServices": ["wps"]}, + {"name": "application/geopackage+sqlite3", "label": "GeoPackage", "type": "vector", "validServices": ["wps"]}, + {"name": "application/geopackage+sqlite3", "label": "GeoPackage", "type": "raster", "validServices": ["wps"]} + ] } }, {