question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

decode LERC tiles from Esri ImageServer to draw in Leaflet

See original GitHub issue

investigate 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:open
  • Created 8 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

6reactions
jwasilgeocommented, Jul 21, 2021

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#L4

Between 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.

2reactions
jwasilgeocommented, Jul 20, 2021

@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.

image

I’d like to first clean up the code before sharing, but I hope to have something to show soon in the coming days.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found