0

I want to create a heatmap, I have a shapefile of us and geocoded 2000 addresses on it. Now I want to measure density of points and cluster by heatmap. I assume I need a longitude and latitude, but my addresses are based on street, city, state and country. How can I convert to x and y. Do I need to do that?

  • 1
    You need to Geocode your data. (there are multiple services for this depends on your area of interest) en.wikipedia.org/wiki/Geocoding#Example – Mapperz Apr 7 '17 at 20:07
  • I did the geocoding and now I have 2000 points. My problem is now I'm not able to create a heat map in raster like in this link qgistutorials.com/en/docs/creating_heatmaps.html – paniz charkhchi Apr 7 '17 at 20:12
  • 1
    Can you describe your issue in more detail please. What is the problem when you try and create your heatmap? I found this tutorial more helpful if you want to take a look at this: <youtube.com/watch?v=h-zX67ewqC4> – The G of GIS Apr 7 '17 at 20:25
  • thanks. well I geocoded about 2000 addresses using mmqgis ( using csv files which contain address of facilities). It generate the points for me. now I want to measure the density of points and hot spot ( clustering). I used this link qgistutorials.com/en/docs/creating_heatmaps.html which exactly what I want. I'm able to do exactly the same up to number 10 when it wanna generate heat map in raster. – paniz charkhchi Apr 7 '17 at 20:35
  • i'm not sure what would be correct row, column and radius for me – paniz charkhchi Apr 7 '17 at 20:36
1

If you want to have longitude and latitude values in respective columns, you can create new columns and use the inbuilt functions. $x for longitude and $y for latitude. So to do this open the field calculator

  1. create a new column and fill the name for it
  2. choose the output field type and width (decimal or otherwise as you want)
  3. double click the function you want ie $x for longitude or/and $y for latitude
  4. once you have chosen the function, it will appear on the left column and ok button should be highlighted for you to click. Click ok and the column should be created and the values populated.

enter image description here

  • thanks for your response. well actually it does not allow me to click ok and run it when I chose either x or y. – paniz charkhchi Apr 9 '17 at 0:51
  • i have edited the initial post. check that the layer is in EDIT mode so you can work on it and also you have to double click the function to choose it or type it into the Expression column. – mapperx Apr 9 '17 at 4:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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