decode LERC tiles from Esri ImageServer to draw in Leaflet
See original GitHub issueinvestigate how much work would be necessary to refactor/extend imageMapLayer
to take advantage of tile caches when they are present.
http://elevation3d.arcgis.com/arcgis/rest/services/WorldElevation3D/Terrain3D/ImageServer
in the case of Esri’s recent work to open source LERC, it would be really cool if we could download/decode and draw them in Leaflet.
cc/ @tomwayson
Issue Analytics
- State:
- Created 8 years ago
- Comments:14 (8 by maintainers)
Top Results From Across the Web
Tiled Elevation Service - ArcGIS Developers
Each elevation tile is compressed using LERC, a highly effective raster data compression technology invented by Esri. It encodes data at user-specified ...
Read more >Esri 2020 Land Cover / Aaron Kyle Dennis - Observable
Global land use/land cover (LULC) map for the year 2020 at 10 meter resolution by the Esri Landscape Team. The map is derived...
Read more >Adding a tiled map service from ArcGIS Online to Leaflet
In any case, what is a simple way to make a quick leaflet example that will show my tiled service as the "basemap"?...
Read more >Community Esri Com T5 Esri Leaflet | Amarta Karya
decode LERC tiles from Esri ImageServer to draw in Leaflet #726 - GitHub. 13/01/2016 The approach is as expected: use a Leaflet map...
Read more >raster data: Topics by Science.gov
Similar to the image counterpart, a web tile raster data format needs to have ... Last year Esri contributed LERC, a very fast...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here’s a working sample and brief write-up: https://github.com/jwasilgeo/leaflet-experiments#lerc-imagery-land-cover-layer
Happy to discuss the code a bit more. It is based on the LeafletJS
GridLayer
approach pioneered by @jgravois but customized for this particular land cover ImageServer: https://github.com/jwasilgeo/leaflet-experiments/blob/master/lerc-landcover/script.js#L4Between this and @jgravois’s https://github.com/jgravois/lerc-leaflet/, we might have some good ideas coalescing to see if/how to bring this into the esri-leaflet ecosystem. I’ll write up some more thoughts later.
@aaronkyle here is a screenshot to provide hope. 😃 The approach is as expected: use a Leaflet map in WGS84, and for the layer itself manually decode pixels from each tile and write them into a 2d image canvas with appropriate RGB values. This was inspired by @jgravois’s https://github.com/jgravois/lerc-leaflet but customized for this particular landcover service.
I’d like to first clean up the code before sharing, but I hope to have something to show soon in the coming days.