Wednesday, 7 August 2019

coordinate system - How to display distance in meters (km) and not in Decimal Degrees in QGIS 2.4?



I am a GIS beginner, and I have a question about how to get the distance between two points in meters instead of decimal degree.


In QGIS 2.4 I have a project with two point layers (in WGS84). From both layers I used I wanted to have the distance in meters between the two closest point between the layers. So what I did: Vector -> analyse tools -> distance Matrix, ticked the box "only nearest (k) target points: 1". This created a CSV file with all the distances, but in the wrong units.


So I looked it up on the internet and I found out two things:



  • I have to set my CRV in a projected coordinate system (like a UTM zone).

  • And I have to tick or untick the box with "on the fly" --> which I cannot find in QGIS2.4 Project --> project setting --> CRS.


I tried the first option. I tried to set the layers in UTM 29 ZONE IRENET95, EPSG: 2158 by "save as" --> add new vector layer. It still gives the distance in the wrong units. My project only contains point in southwest Ireland, so that is why I picked this projection. Or should I project it in a different projection?


I also tried to find a converter to convert the decimal degree outcome to meters, but I did not find any. I guess there is none. Am I right?


For me it seems like there must me an easy solution, but I did not manage to find one. I think I am doing something wrong with setting the layers in a different projection.





No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...