Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have GIS data in a PostGIS data base and would like to generate a density map and display them on a Leaflet/Google Maps.

Question: What is the recommended/typical method for doing so, without transferring ALL (millions) the data points within the map's viewpoint to the Leaflet/Gmaps map? No user intervention (ie. Import data into ArcGIS to generate the map) should be required unless automation is possible via CLI etc.

Currently using Postgresql/PostGIS as the spatial database and Leaflet on the browser.

enter image description here

share|improve this question
Check out this thread:…. They suggested to use R (with python or perl bindings) and provided some code examples. – SS_Rebelious Mar 29 '13 at 18:20
up vote 8 down vote accepted

You can try using middleware such as Geoserver which can generate heatmaps for you:

share|improve this answer
Geoserver looks awesome! Any idea how we can get the value at a specific point on the heatmap? (eg: in the screenshot in original post) – Nyxynyx Mar 30 '13 at 4:00

Your Answer


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.