[Bug] r.grow: failure in long-lat projects with small radius due to scientific notation #5521
Labels
backport to 8.4
PR needs to be backported to release branch 8.4
bug
Something isn't working
good first issue
Good for newcomers
Milestone
Describe the bug
When using
r.grow
in a long-lat project (EPSG:4326) with a small radius it fails due to an internal switch to scientific notation.To reproduce
Store the following script as
r_grow_bug.sh
:g.region res=1 n=90 s=-90 w=180 e=-180 -p r.mapcalc expression="one = 1" r.grow input=one output=one_buf radius=0.000002
Then run it:
Expected behavior
A code modification is needed to avoid this bug
System description
The text was updated successfully, but these errors were encountered: