Advanced search
Log In
New Account
  
 
Home My Page Project Tree Code Snippets Project Openings GRASS
 
 
Summary Tracker Surveys
 

code I: Browse | Download .csv

[#493] r.info Wrong totals cells counter

Please login

State:
Closed
Date:
2007-09-27 16:57
Priority:
3
Submitted By:
Francesco Lovergine (frankie)
Assigned To:
Markus Neteler (markusn)
Summary:
r.info Wrong totals cells counter

Detailed description
GRASS 6.3.cvs (LatLong):~ > g.region -p rast=mosaic
projection: 3 (Latitude-Longitude)
zone:       0
datum:      wgs84
ellipsoid:  wgs84
north:      30:27:34.387407N
south:      29:17:38.474496N
west:       91:01:18.251044W
east:       89:44:36.4777W
nsres:      0:00:00.0342
ewres:      0:00:00.0342
rows:       122688
cols:       134554
cells:      16508161152
GRASS 6.3.cvs (LatLong):~ > r.info map=mosaic
 +----------------------------------------------------------------------------+
 | Layer:    mosaic                         Date: Wed Sep 26 22:07:50 2007    |
 | Mapset:   PERMANENT                      Login of Creator: frankie         |
 | Location: LatLong                                                          |
 | DataBase: /home/refice/dati/NewOrleans/GIS                                 |
 | Title:     ( mosaic )                                                      |
 | Timestamp: none                                                            |
 |----------------------------------------------------------------------------|
 |                                                                            |
 |   Type of Map:  raster               Number of Categories: 255             |
 |   Data Type:    CELL                                                       |
 |   Rows:         122688                                                     |
 |   Columns:      134554                                                     |
 |   Total Cells:  -671708032                                                 |
 |        Projection: Latitude-Longitude                                      |
 |            N: 30:27:34.387407N    S: 29:17:38.474496N   Res: 0:00:00.0342  |
 |            E: 89:44:36.4777W    W: 91:01:18.251044W   Res: 0:00:00.0342    |
 |   Range of data:    min = 0  max = 255                                     |
 |                                                                            |
 |   Data Description:                                                        |
 |    generated by r.patch                                                    |
 |                                                                            |
 |   Comments:                                                                |
 |    r.patch input="mosaic15,mosaic16" output="mosaic"                       |
 |                                                                            |
 +----------------------------------------------------------------------------+



Followup

Message
Date: 2010-02-27 12:08
Sender: Hamish B

I'm pretty sure this one is fixed.

Hamish
Date: 2008-01-04 16:30
Sender: Maciej Sieczka

Francesco,

Are you there?!
Date: 2007-10-22 18:08
Sender: Maciej Sieczka

Francesco

Please test and let us if it worked.
Date: 2007-10-22 00:09
Sender: Markus Neteler

Update:

Brad Douglas has submitted a long long test in configure.in
Date: 2007-10-21 22:56
Sender: Markus Neteler

reopened, due to ISO90 not having "long long" issue,
reverted in 6.2.x
Date: 2007-10-21 22:42
Sender: Markus Neteler

fixed in 6.2.CVS and 6.3.CVS

Markus
Date: 2007-10-21 22:39
Sender: Markus Neteler

patch proposal attached
Date: 2007-09-27 17:49
Sender: Francesco Lovergine

Of course you need something like:

            compose_line(out, "  Total Cells:  %lld",
                        (long long)cellhd.rows * cellhd.cols);

for r.info/main.c as in g.region. I think that 
(unsigned long long) could be more appropriate, too. 

Attached Files:

Name Download
r_info.diff Download

Changes:

Field Old Value Date By
Issue statusneeds more info2010-02-27 12:08hamish
close_date2010-02-27 12:082010-02-27 12:08hamish
status_idOpen2010-02-27 12:08hamish
Issue statusconfirmed2008-01-04 16:30msieczka
Issue statusNone2007-10-21 23:39msieczka
Issue statusfixed in CVS2007-10-21 22:56markusn
summaryWrong totals cells counter2007-10-21 22:56markusn
status_idClosed2007-10-21 22:56markusn
Issue statusNone2007-10-21 22:42markusn
close_date2007-10-21 22:422007-10-21 22:42markusn
assigned_tonone2007-10-21 22:42markusn
status_idOpen2007-10-21 22:42markusn
File Added240: r_info.diff2007-10-21 22:39markusn

This site is hosted by the Intevation GmbH