Skip to content
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

atomfeedclient multiselect - wfs download #12

Open
karlbrink opened this issue Jun 11, 2021 · 1 comment
Open

atomfeedclient multiselect - wfs download #12

karlbrink opened this issue Jun 11, 2021 · 1 comment

Comments

@karlbrink
Copy link
Member

if multiselect feature is active, the selection of tiles works fine, but the download link is still pointing to a download of the last selected tile.

there should be an asychronous download link

@holsandre
Copy link
Contributor

This affects only certain wfs.
See the following example:

This one works fine:
https://www.geoportal.hessen.de/mapbender/plugins/mb_downloadFeedClient.php?url=https%3A%2F%2Fwww.geoportal.hessen.de%2Fmapbender%2Fphp%2Fmod_inspireDownloadFeed.php%3Fid%3D03d99fcb-b11e-5bc8-1981-afe12abe87fb%26type%3DSERVICE%26generateFrom%3Dwfs%26wfsid%3D262

This one doesnt:
https://www.geoportal.hessen.de/mapbender/plugins/mb_downloadFeedClient.php?url=https%3A%2F%2Fwww.geoportal.hessen.de%2Fmapbender%2Fphp%2Fmod_inspireDownloadFeed.php%3Fid%3D185e8bc0-9982-b2bb-4ab5-cbac21dad690%26type%3DSERVICE%26generateFrom%3Dwfs%26wfsid%3D272

The problem is located here:
https://github.com/mrmap-community/GeoPortal.rlp/blob/master/resources/scripts/mb_downloadFeedClient/javascripts/mb_downloadFeedClient.php#L589

The script checks if the selected_format is included in the url.
It seems like mapservers are doing it this way, but arcgis server dont.
You could allow a multidownload for arcgis server by altering the if condition to match some string in the url, for example like this:

if(encodeURIComponent(url).includes(selected_format) || encodeURIComponent(url).includes("xmlns%3Agml")){
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants