Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Geoserver is drawing from a PostGIS database to generate a heatmap using this SLD extension. Leaflet then overlays the heatmap over the base layer.

Question: How can you determine the value at a particular spot on the heatmap? This value to display will be color ramp value X * constant C. In other words, how can we determine the color ramp value at that particular spot on the heatmap?

There's probably other methods of finding this value without using the heatmap's color ramp mapping.

enter image description here

share|improve this question

1 Answer 1

You could always 'cheat' and pull the layer from the pixel point on the rendered image that's returned (if you're using an html5 browser and tags). Then pull out the R, G,and B pixel values to reverse-determine the number...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.