New answers tagged

0

When using the summary statistics tool have you tried selecting IN_FID from the drop down under the Case field? Its the last option when you are using the Summary Statistics tool. This should give you the MAX_VALUE and IN_FID fields in a table.


0

The non-python method of achieving what you're looking for would be to use a definition query to single out an institution type, like "police". The definition query would look like this (for shapefiles)... "INSTITUTION" = 'police' Then sort your table by "value" in descending order. The "FID" with the highest value will be at the top. You would have to ...


1

The result, however it happens to be stored or presented to you, evidently will be the equivalent of one raster for each class: a raster showing the counts of type "A", another showing the counts of type "B", and so on. Compute these count grids by taking focal statistics of the indicator grids. Recall that the indicator for any class is a grid having ones ...


1

zonalstats = qgis.analysis.QgsZonalStatistics(vectorlayer,rasterfile) zonalstats.calculateStatistics(None) calculates by default just Count, Sum and Mean (as you can tell from Raster -> Zonal Statistics in QGIS Desktop, it can do a lot more). If you, for instance, want to compute just the Mean you have to use: zonalstats = ...


1

you need to create a new field in your attribute table and call it [Z] and make it float type, then do a field calculate on it making the new field [Z] = int([X]) once you have done this, you can run the stats on the new float field [Z] and it will work. you can never get stats on a field that is a string. you will always have to convert it to int or ...


2

Use Raster Layer Statistics. It gives you. Statistics [html] Analysis results in HTML format. Minimum value [number] Minimum cell value. Maximum value [number] Maximum cell value. Sum [number] Sum of all cells values. Mean value [number] Mean cell value. Valid cells count [number] Number of cell with data. No-data ...


1

You may use Zonal Histogram. As Input raster of feature zone data, specify your polygon(s). As Input value raster, the land quality raster. The output table will show each land quality class as a row, each polygon class as a column. Thus if you have more than one polygon, you may want to group them into classes beforehand, using a unique value for each class ...



Top 50 recent answers are included