qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.42k stars 2.98k forks source link

ArcGIS REST Service: LERC2D format? #49963

Open rduivenvoorde opened 2 years ago

rduivenvoorde commented 2 years ago

Feature description

Somebody on the Telegram channel asked if QGIS could load the "ESRI World cover data 2020 as wms layer"..

I googled:

https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/Esri_2020_Land_Cover_V2/ImageServer

Used it as source url in QGIS Esri REST provider, but failed to get maps.

Replaying the URL's fired I found out some kind of binary (non known image) format is returned..

Then I saw in the capabilties, it's format is 'LERC2D' an (esri specific?) image/binary format.

Cannot find much info about it, not sure if it is easy to implement (or even allowed to)...

But thought to create a Feature Request for it, just in case :-)

This is an example tile: https://tiledimageservices.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/Esri_2020_Land_Cover_V2/ImageServer/tile/8/0/0

roya0045 commented 2 years ago

They seem specific to their tiles https://developers.arcgis.com/rest/services-reference/enterprise/image-tile.htm

But they say the LERC format is open source though https://esri.github.io/lerc/

ar-siddiqui commented 2 years ago

Feature description

Somebody on the Telegram channel asked if QGIS could load the "ESRI World cover data 2020 as wms layer"..

Not that it is relevant to the feature request, but here is an article that I wrote that describes one way of loading the source rasters of ESRI world cover data. https://ar-siddiqui.medium.com/visualize-download-and-use-esri-10m-global-land-use-dataset-in-qgis-using-qgis-actions-and-cogs-71667c623311

Stormwind99 commented 1 week ago

Here is another ArcGIS REST server serving LERC2D tiles with the MIME content-type application/octet-stream that doesn't work in QGIS: https://tiledimageservices.arcgis.com/EVsTT4nNRCwmHNyb/arcgis/rest/services/NVC_Groupv092/ImageServer

It seems OSGeo considers ArcGIS's LERC format as open source: https://www.osgeo.org/projects/lerc-limited-error-raster-compression/

ESRI's LERC Github page claims GDAL has some support for LERC:

LERC can also be used as a compression mode for the GDAL image formats GeoTIFF (since GDAL 2.4) and MRF (since GDAL 2.1) via GDAL.

I see LERC listed in as an ImageServer supported format in src/providers/arcgisrest/qgsarcgisrestdataitems.cpp: https://github.com/qgis/QGIS/blob/a315f910d33b9199d1073c70a223ab93043c6d6e/src/providers/arcgisrest/qgsarcgisrestdataitems.cpp#L555