Re: [Qgis-user] getting statistics from a raster layer

2012-09-19 Thread Andre Joost
Am 19.09.2012 05:11, schrieb Antonio Silva: Now I'm getting: Warning : the input vector layer has a SRS, but the source raster dataset does not. Cutline results may be incorrect. So, what is going wrong? The asc (raster file) and the shape with the polygon can be downloaded at

Re: [Qgis-user] getting statistics from a raster layer

2012-09-19 Thread Nick Hopton
One other thing, you want to collect statistics for your clipped raster, so when you clip the raster make sure that you tick 'no data value' and enter a value of (say) -3. This will set the value of the pixels in your clipped raster that lie outside of your area of interest to 'null' and they

Re: [Qgis-user] getting statistics from a raster layer

2012-09-19 Thread Antonio Silva
Dear Nick and André Finally I got to the proper results: STATISTICS_MAXIMUM=22.629600524902 STATISTICS_MEAN=21.829234117232 STATISTICS_MINIMUM=20.97500038147 STATISTICS_STDDEV=0.40600423541182 Thank you all very much! Antonio 2012/9/19 Nick Hopton nhop...@gmail.com One other thing, you want

Re: [Qgis-user] getting statistics from a raster layer

2012-09-18 Thread Nick Hopton
Antonio Silva wrote Following the suggestions I got an error message: Cannot compute bounding box of cutline. when cutting the raster. Just checking, but the raster layer and the vector polygon layer do have the same CRS? You can't cut a raster with a vector unless both have the same native

Re: [Qgis-user] getting statistics from a raster layer

2012-09-18 Thread Andre Joost
Am 18.09.2012 10:32, schrieb Nick Hopton: Antonio Silva wrote Following the suggestions I got an error message: Cannot compute bounding box of cutline. when cutting the raster. Just checking, but the raster layer and the vector polygon layer do have the same CRS? You can't cut a raster with

Re: [Qgis-user] getting statistics from a raster layer

2012-09-18 Thread skampus
hi all, all layers must have same SR -- View this message in context: http://osgeo-org.1560.n6.nabble.com/getting-statistics-from-a-raster-layer-tp5002022p5002771.html Sent from the Quantum GIS - User mailing list archive at Nabble.com. ___ Qgis-user

Re: [Qgis-user] getting statistics from a raster layer

2012-09-18 Thread Antonio Silva
Thanks again for the attention and patience, but I'm still not succeed. A checklist: 1) on-the-fly CRS transformation turned off - OK 2) when I load the raster layer I indicate the CRS WGS84 (+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs) Once it's loaded I change the map color from grey to

Re: [Qgis-user] getting statistics from a raster layer

2012-09-17 Thread Antonio Silva
Thanks Nick and Carlos, Following the suggestions I got an error message: Cannot compute bounding box of cutline. when cutting the raster. I cannot understand where is the problem. It happened only with this kind of raster. I tried with nautical charts and georeferenced maps from Google Earth

Re: [Qgis-user] getting statistics from a raster layer

2012-09-15 Thread Carlos Carbajal
Hi Antonio, I recommend that you enable Sextante pluging for Quantum, in the latest version comes with tools SAGA, there are algorithms for working with raster, but I still have not successfully tested. The other option is to use raster tools, such as Clipper, it gives you an option to use a

Re: [Qgis-user] getting statistics from a raster layer

2012-09-15 Thread Nick Hopton
I think the first thing to do is clip the raster to your area of interest using the vector polygon. Raster - Extraction - Clipper. Select the polygon shapefile as the mask layer. To get the statistics load the clipped raster, right-click on it in the layers panel, select Properties and then click

[Qgis-user] getting statistics from a raster layer

2012-09-14 Thread Antonio Silva
Hi fellows This is my first post in this list. I've been using QGIS since the end of last year. I run QGIS on a UBUNTU 12.04 64 bits system. My purpose is to visualize and analyze fishery and oceanography information on a GIS platform. I'm biologist / oceanographer and I work at Sao Paulo