[GRASS-dev] [GRASS GIS] #1653: Trunkated cellsize when exporting rasters to arc ascii grid (r.out.arc)

#1653: Trunkated cellsize when exporting rasters to arc ascii grid (r.out.arc)
--------------------------------------+-------------------------------------
Reporter: reymondin | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: Raster | Version: svn-trunk
Keywords: arc ascii grid r.out.arc | Platform: Unspecified
      Cpu: Unspecified |
--------------------------------------+-------------------------------------
When exporting rasters to arc ascii grid (r.out.arc) , the cellsize and
the corners coordinates in the header are truncated after only 6 decimals.
This should not happen as it moves the region.

This could be because when the header is written the following line is
used to print the cell size (from source
http://trac.osgeo.org/grass/browser/grass/trunk/raster/r.out.arc/main.c,
line 159)

fprintf(fp, "cellsize %f\n", cellsize);

On some systems the %f flag will set the number of decimals to 6.

Best,
Louis

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1653&gt;
GRASS GIS <http://grass.osgeo.org>

#1653: Trunkated cellsize when exporting rasters to arc ascii grid (r.out.arc)
--------------------------------------+-------------------------------------
Reporter: reymondin | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: Raster | Version: svn-trunk
Keywords: arc ascii grid r.out.arc | Platform: Unspecified
      Cpu: Unspecified |
--------------------------------------+-------------------------------------

Comment(by mmetz):

Fixed in trunk r51615. The module uses now the same method like g.region
-g, i.e. full precision for latlon.

Markus M

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1653#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1653: Trunkated cellsize when exporting rasters to arc ascii grid (r.out.arc)
--------------------------+-------------------------------------------------
  Reporter: reymondin | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.3
Component: Raster | Version: svn-trunk
Resolution: fixed | Keywords: arc ascii grid r.out.arc
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by neteler):

  * status: new => closed
  * resolution: => fixed

Comment:

The fix was backported to 6.5 in r51846 and 6.4 in r51848.
Closing.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1653#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>