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.
['https://gis.stackexchange.com/questions/114561', 'https://gis.stackexchange.com', 'https://gis.stackexchange.com/users/37252/']
gdal\_Calc.py can do that, a reclass

Something like..

gdal\_calc.py -A filename.tiff --outfile=filename.tiff
--calc="A\*(A>3)" --NoDataValue=0 --calc="1\*(A<3)

See this one

[gdal\_calc.py raster reclass equivalent of ArcGIS reclass or r.reclass in grass](https://gis.stackexchange.com/questions/100348/gdal-calc-py-raster-reclass-equivalent-of-arcgis-reclass-or-r-reclass-in-grass)
If the min value is consistent - like a no data value, you might be able to use the snodata option and specify the value you want ignore. As listed in the doc for [gdal\_contour](http://www.gdal.org/gdal_contour.html)