lizmap-web-client icon indicating copy to clipboard operation
lizmap-web-client copied to clipboard

Add a tool to export rasters and the Lizmap canvas as raster/image

Open gioman opened this issue 11 years ago • 10 comments

Just an idea for a eventual future addition, as it is available on other webgis frameworks and it seems to be very popular: allow export the canvas as georeferenced image (for example as png + worldfile) as also raster layers in a similar way as is already possible for vectors.

Of course the latter would have to be a download of the original dataset, not the rendered version as WMS, so there could be some limitations (i.e. external WMS layers) but other than that the original raster layer (probably a file based one) should be "passed to" the final user, this way we could take advantage of LMWC functionalities such as global/layer/project permissions.

gioman avatar Apr 17 '14 09:04 gioman

May be easier with the latest version of OpenLayers. An example

igeofr avatar May 17 '19 08:05 igeofr

@Gustry I updated the title and description to included the possibility to allow download the original raster datasets/layers. See also https://lists.osgeo.org/pipermail/lizmap/2023-March/000603.html I would also be interested to see this functionality to see the light.

gioman avatar Mar 20 '23 18:03 gioman

Reiterating the importance of this functionality, as seen in many other WebGIS platforms (see below). Still waiting for a contact to try see how this could be materialized.

Screenshot 2023-06-02 140322

gioman avatar Jul 02 '23 16:07 gioman

@Gustry: on a other topic, you suggest to use the "media folder" as a workaround. It could be a kink of solution, the problem is to allowed the download only to "admin user" and not to "anonymous" or other "normal users"!

katagen avatar Sep 11 '24 14:09 katagen

@Gustry: on a other topic, you suggest to use the "media folder" as a workaround. It could be a kink of solution, the problem is to allowed the download only to "admin user" and not to "anonymous" or other "normal users"!

@katagen you can create a link pointing to anything in "media", if the project is accessible to anonymous, the file will be also be accessible... I guess.

gioman avatar Sep 11 '24 17:09 gioman

@gioman: I know, and it is the problem. For vector layers, when you set the rights, you can specify that only "admin" can download the layers. But if I use the media folder with a link, everyone can download the file... which I don't want!

katagen avatar Sep 11 '24 21:09 katagen

Yes, I totally agree, that's why I said it was a "quick workaround", if this solution was OK. Yes, ACL are not checked, so it can be solution.

I have rephrased the label in #4747, downloading raster layer have never been implemented in Lizmap. Feel free to contact us.

Gustry avatar Sep 13 '24 09:09 Gustry

But if I use the media folder with a link, everyone can download the file... which I don't want!

@katagen you can configure layer to be visible to specific LM groups, so you could have the same layer published twice, one visible only to anonymous(*) and one only to users belonging to a specific group, where only the latter would have the link for direct download.

(*) unfortunately I think this is not really doable because the lat time I tried/checked there was no way to use "anonymous" as group name in LM plugin to set some type of permission to users that are not logged. I'm sure I filed a ticket about this problem.

gioman avatar Sep 13 '24 12:09 gioman

Feel free to contact us

@Gustry not sure if it was clear but here https://github.com/3liz/lizmap-web-client/issues/46#issuecomment-1476697611 I had sent a signal in this sense...

gioman avatar Sep 13 '24 12:09 gioman

Indeed @gioman indeed... :/ There is like 260 tickets tagged 'enhancement', GitHub doesn't make this kind of tracking easy. Let us check this ticket.

Gustry avatar Sep 16 '24 15:09 Gustry