[GRASS-dev] [GRASS GIS] #3485: Introduce a new 64-bit integer raster data type

GRASS GIS trac at osgeo.org
Sun Feb 11 14:08:58 PST 2018


#3485: Introduce a new 64-bit integer raster data type
--------------------------+---------------------------
  Reporter:  mlennert     |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  8.0.0
 Component:  LibRaster    |    Version:  svn-trunk
Resolution:               |   Keywords:  raster 64-bit
       CPU:  Unspecified  |   Platform:  Unspecified
--------------------------+---------------------------

Comment (by mmetz):

 Replying to [ticket:3485 mlennert]:
 > From #3084:
 >
 > "Most importantly, a GRASS raster format for 64-bit signed integer. Note
 that GDAL does not support 64-bit signed or unsigned integers. The reason
 is probably that a portable implementation of 64-bit integers is not so
 easy. Regarding GRASS raster processing, the need for 64-bit integers
 usually arises only for raster maps with more than 2,147,483,647 cells
 which in turn usually requires Large File Support (LFS). Therefore the
 check for the availability of a 64-bit integer could be coupled to LFS. If
 support for 64-bit signed integer raster maps (say, LCELL) could be added
 to GRASS, users would need to stick to GRASS since GDAL raster export of
 64-bit integers is not available. Interesting idea."

 A 64 bit signed integer type has been added to trunk with r72230. Various
 other projects, e.g. GDAL, SQLite, HDF5, Python also have some 64 bit
 signed integer type. In order to avoid namespace collision, the new type
 has been defined as grass_int64 and LCELL. GRASS libraries and modules do
 not yet make use of this type. Defining a 64 bit signed integer type has
 been tested on Linux + gcc, FreeBSD + clang, and MS Windows + gcc (mingw).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3485#comment:1>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list