<div dir="ltr"><div>Hello</div><div dir="ltr">In order to fix it I had to enable the GRASS plugin (is already installed) then import the raster , and run the plugin's r.grow.distance with geodesic and it worked.<div><br></div><div>I just tried this and it worked Thanks for your help!!!</div><div><br></div><div><font color="#a64d79">As a local workaround, you can simply search for r.grow.distance.txt<br>on your computer and add the missing "geodesic" there.<br>(and open an issue with the QGIS project or open a pull request with<br>the change there, or someone else does that).</font><br></div><div><font color="#a64d79"><br></font></div><div><font color="#a64d79"><br></font></div><div>Kind regards</div><div>Dimitris</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Στις Παρ, 2 Αυγ 2019 στις 12:53 μ.μ., ο/η Markus Neteler <<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>> έγραψε:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Dimitris,<br>
<br>
On Fri, Aug 2, 2019 at 8:58 AM Dimitris sal <<a href="mailto:jimmaras123@gmail.com" target="_blank">jimmaras123@gmail.com</a>> wrote:<br>
><br>
> Hello everyone<br>
><br>
> My first post in this list,<br>
><br>
> So i am trying to create a raster with r.grow.distance.<br>
<br>
As you are working via QGIS, in which projection do you work?<br>
<br>
> If i use the normal options everything works like the proximity analysis of QGIS, but when I try to add the advanced parameter Output distances in meters instead of map units i get the error "ERROR: Output distance in meters for lat/lon is only possible with 'metric=geodesic'"<br>
><br>
> How do i add in the metrics the geodesic? I only have 4 euclidean,manhattan,squared,maximum.<br>
<br>
Yes, this is a limitation in QGIS processing (for whatever reason).<br>
The parameters made available to the QGIS users are often a subset of<br>
those provided by GRASS GIS.<br>
<br>
# QGIS processing<br>
grep Metric /usr/share/qgis/python/plugins/processing/algs/grass7/description/r.grow.distance.txt<br>
QgsProcessingParameterEnum|metric|Metric|euclidean;squared;maximum;manhattan|False|0|True<br>
<br>
# GRASS GIS<br>
r.grow.distance --help<br>
...<br>
   metric   Metric<br>
             options: euclidean,squared,maximum,manhattan,geodesic<br>
             default: euclidean<br>
<br>
The change would be needed here:<br>
<a href="https://github.com/qgis/QGIS/blob/release-3_8/python/plugins/processing/algs/grass7/description/r.grow.distance.txt" rel="noreferrer" target="_blank">https://github.com/qgis/QGIS/blob/release-3_8/python/plugins/processing/algs/grass7/description/r.grow.distance.txt</a><br>
<br>
> Is there any alternative to create the raster in meters instead of map units?<br>
<br>
As a local workaround, you can simply search for r.grow.distance.txt<br>
on your computer and add the missing "geodesic" there.<br>
(and open an issue with the QGIS project or open a pull request with<br>
the change there, or someone else does that).<br>
<br>
Best,<br>
Markus<br>
<br>
-- <br>
Markus Neteler, PhD<br>
<a href="https://www.mundialis.de" rel="noreferrer" target="_blank">https://www.mundialis.de</a> - free data with free software<br>
<a href="https://grass.osgeo.org" rel="noreferrer" target="_blank">https://grass.osgeo.org</a><br>
<a href="https://courses.neteler.org/blog" rel="noreferrer" target="_blank">https://courses.neteler.org/blog</a><br>
</blockquote></div></div>