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?
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
- create a new column and fill the name for it
- choose the output field type and width (decimal or otherwise as you want)
- double click the function you want ie $x for longitude or/and $y for latitude
- 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.