Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raster cell coount returns incorrect value #10891

Closed
qgib opened this issue Nov 23, 2007 · 2 comments
Closed

Raster cell coount returns incorrect value #10891

qgib opened this issue Nov 23, 2007 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS

Comments

@qgib
Copy link
Contributor

qgib commented Nov 23, 2007

Author Name: Tim Sutton (Tim Sutton)
Original Redmine Issue: 832

Redmine category:build/install
Assignee: Tim Sutton


Original report submitted by Enrico Chiaradia:

Currently I use the "ganymede" release and I have to submit this
problem: when I load an ASCII raster grid (see attached file), I find in
metadata file properties many informations like mean value and the
number of cells with value different from no-data value. At the moment,
these informations are not correct. In the attached file, you can see
that the total number of cell with a different value from nodata are
100; Qgis reports only 99 and this problem affects also average value.
I hope that this information is useful and also I wish to actively
contribute to the project in the future.
Kindly Regards

Enrico Chiaradia

University of Milan, Italy.

NCOLS 10
NROWS 10
XLLCENTER 1535380.000000
YLLCENTER 5083260.000000
DX 10
DY 10
NODATA_VALUE -9999
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
0 1 2 3 4 5 6 7 8 9
PROJECTION
NOTES

@qgib
Copy link
Contributor Author

qgib commented Nov 23, 2007

Author Name: Tim Sutton (Tim Sutton)


I found the problem and have committed a fix for it as d082db6 (SVN r7651). The fixed version will be in the release of QGIS 0.9.1 next month and is availably imediately from SVN trunk if you compile from source. I also add a regression test to catch this bug agan with our unit tests if it ever comes back some how.

Raster metadata for the layer now returns:


Propriedade Valor
Banda Undefined
No da Banda 1
Val Min 0.0000000000
Val Máx 9.0000000000
Intervalo 9.0000000000
Média 4.5000000000
Soma das raízes 824.9521674896
Desvio Padrão 2.8866676595
Soma de todas as células 450.0000000000
Número de Células 100


If you would like to make more bug reports please let me know your preferred user name and password and I will create an account on our qgis trac site for you. We prefer bugs reported via the bug tracker since its less likely they will be overlooked in our overflowing mail boxes. You are always welcome to email me citing a particlar bug in the queue if you have something particularly urgent that needs attention (assuming I am ablt to help with it).

Best regards

Tim


  • resolution was changed from to fixed
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Aug 21, 2009

Author Name: Anónimo (Anónimo)


Milestone Version 0.9.1 deleted

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Build/Install Related to compiling or installing QGIS
Projects
None yet
Development

No branches or pull requests

1 participant