[GRASS GIS] #3917: r.info|v.info|r3.info|t.info: output map size used on disk

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[GRASS GIS] #3917: r.info|v.info|r3.info|t.info: output map size used on disk

GRASS GIS
#3917: r.info|v.info|r3.info|t.info: output map size used on disk
---------------------------------------------+-------------------------
 Reporter:  neteler                          |      Owner:  grass-dev@…
     Type:  enhancement                      |     Status:  new
 Priority:  normal                           |  Milestone:  7.8.1
Component:  Default                          |    Version:  svn-trunk
 Keywords:  r.info, v.info, r3.info, t.info  |        CPU:  All
 Platform:  All                              |
---------------------------------------------+-------------------------
 At time it is difficult to estimate the disk usage of map in GRASS GIS.
 Especially, because one map consists of several files.

 An additional entry in r.info|v.info|r3.info|t.info output would be very
 useful (think about storage consumption estimation and billing in a cloud
 environment).

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3917>
GRASS GIS <https://grass.osgeo.org>


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3917: r.info|v.info|r3.info|t.info: display map size used on disk (was: r.info|v.info|r3.info|t.info: output map size used on disk)

GRASS GIS
#3917: r.info|v.info|r3.info|t.info: display map size used on disk
--------------------------+---------------------------------------------
  Reporter:  neteler      |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.8.1
 Component:  Default      |    Version:  svn-trunk
Resolution:               |   Keywords:  r.info, v.info, r3.info, t.info
       CPU:  All          |   Platform:  All
--------------------------+---------------------------------------------
Description changed by neteler:

Old description:

> At time it is difficult to estimate the disk usage of map in GRASS GIS.
> Especially, because one map consists of several files.
>
> An additional entry in r.info|v.info|r3.info|t.info output would be very
> useful (think about storage consumption estimation and billing in a cloud
> environment).

New description:

 At time it is difficult to estimate the disk usage of map in GRASS GIS.
 Especially, because one map consists of several files.

 An additional entry in the output of r.info|v.info|r3.info|t.info would be
 very useful (use case: think about estimation of storage consumption and
 billing in a cloud environment).

--

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev
Reply | Threaded
Open this post in threaded view
|

Re: [GRASS GIS] #3917: r.info|v.info|r3.info|t.info: display map size used on disk

GRASS GIS
In reply to this post by GRASS GIS
#3917: r.info|v.info|r3.info|t.info: display map size used on disk
--------------------------+---------------------------------------------
  Reporter:  neteler      |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.8.1
 Component:  Default      |    Version:  svn-trunk
Resolution:               |   Keywords:  r.info, v.info, r3.info, t.info
       CPU:  All          |   Platform:  All
--------------------------+---------------------------------------------

Comment (by neteler):

 Here some code which could probably support the implementation:

 * https://github.com/OSGeo/grass-
 addons/blob/master/grass7/general/g.compare.md5/g.compare.md5.py

 For SQLite table sizes (apparently not easy to obtain):

 * https://stackoverflow.com/questions/27572387/query-that-returns-the-
 size-of-a-table-in-a-sqlite-database#36627097

 Hence (https://www.sqlite.org/dbstat.html):
 {{{
 sqlite3 nc_spm_08_grass7/PERMANENT/sqlite/sqlite.db

 # page size
 sqlite> SELECT SUM("pgsize") FROM "dbstat" WHERE name='zipcodes_wake';
 5120
 sqlite> SELECT SUM("pgsize") FROM "dbstat" WHERE name='roadsmajor';
 12288
 }}}

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


_______________________________________________
grass-dev mailing list
[hidden email]
https://lists.osgeo.org/mailman/listinfo/grass-dev