-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mapstore client does not let download geopackage from geoserver #509
Comments
FYI @simboss |
@tdipisa who could invetigate this? |
@giohappy @simboss After an investigation this is what I found out: The LayerDownload makes a request to the WPS to understand if the {
"name": "LayerDownload",
"cfg": {
"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/x-gpkg", "label": "GeoPackage", "type": "vector", "validServices": ["wps"]}
]
}
}, I tried the above configuration and I'm getting this error after trying to download a geopackage with WPS
and I find this commit in the wps-download that include the geopackage format with tag 2.20 for the GeoServer. I think we need to:
possible improvements in MapStore/GeoServer:
I think that sometimes it was working because it was using WFS download instead where the formats are described by the capabilities (maybe the wps-download were not working) |
It's been backported, according to this commit
The right MIME should be application/geopackage+sqlite3 Please @allyoucanmap make a test using the Development demo. |
@giohappy I tried also using
anyway once we are sure about the mime type we need to update geonode-mapstore-client with the correct configuration: {
"name": "LayerDownload",
"cfg": {
"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"]}
]
}
}, |
@lpasquali @drumbsd do you confirm that the WPS Download with Geopacke support has been shipped with Geoserver 2.19.x for GeoNode? |
@giohappy I can't confirm and must deny because I followed documentation and it was not mentioned anywhere, it says only WPS is needed which is present: https://docs.geoserver.org/latest/en/user/community/geopkg/ |
from a chat with @lpasquali the support for GeoPackage should be already be inside GeoNode 2.19.x for GeoNode, since the commit is from August. @afabiani could you please make a quick invetigation? Quick recap:
|
@allyoucanmap GeoServer 2.19 for GeoNode has been fixed (also development demo). Can you please try again the GPKG WP download? |
@giohappy @simboss Added the format geopackage to the LayerDownload configuration and it's working but I noticed:
The configuration update has been merged on master and 3.3.x so we could try to update development instance to test it
and just opened an issue in mapstore to add GeoPackage as default format geosolutions-it/MapStore2#7350 |
@allyoucanmap AFAIK the respone can be controlled with the
Could you make a test changing the defaults sent by MapStore?
I haven't found something about this inside the WPS spec. @simboss who should we ask about this? |
GeoServer 2.19.x in current 3.3.x geonode and geonode-project branches is capable to export compatible layers in geopackage format (I used tiger_roads shapefile for test), once I upload layer through geonode, I can export it in geopackage format within geoserver Layer preview page.
On the contrary as in the video attached if I do this on development geonode updated to latest 3.3.x:
@tdipisa @giohappy
The text was updated successfully, but these errors were encountered: