8

There are two ways of calculating, raster on raster or vector on vector. radouxju has given an instruction on raster on raster but I believe the vector on vector might be more what you're after. Convert your raster into polygons using Raster to Polygon, don't simplify the polygons for more accurate results. Percentage of cover for the overlaying polygons ...


3

convert your woods polygon to raster (feature to raster) with the extent of your aspect layer make it a binary layer (raster calculator : Con(IsNull("woods"), 0, 1)) use zonal statistics as a table to have the mean of your wood layer (this mean will be the percentage of the area covered by wood)


3

You need to be very careful using tabulate area. The tool is helpful, but has some "gotchas". Watch out for sending in overlapping zones. Zones cannot be overlapping as the vector is rasterized and two zones cannot be represented in the same cell. Its a bummer Esri doesn't handle this out-of-the-box. Setting snap raster is great, but you should also set ...


1

try something like this: import gdal import numpy as np area_per_pixel = 100 #example...you change to suit r = gdal.Open(rasterfile) band = 1 raster_arr = np.array(r.GetRasterBand(band).ReadAsArray()) for cover in np.unique(raster_arr): tot_num_pixels = np.sum(raster_arr == cover) area = tot_num_pixels * area_per_pixel print cover, area as ...


1

The cell size is not used to allow adjustment. You have to manually adjust the resolution of the coarser raster to make it match the finer raster (or set the Cell size raster analysis environment to Minimum of Inputs). https://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/h-working-with-tabulate-area.htm "Some of the area values in ...


1

Zonal Histogram (QGIS 3.4) has worked successfully for me to derive land cover totals (from a TIF) per county (held as shapefile). I was searching for an answer to this exact same question. However, a different question (about an equivalent for Zonal Statistics) was where I found this information. To me, Zonal Histogram seems to be a more direct equivalent ...


1

Tabulate area is the right tool for this job, but it yields the area expressed in the coordinate system of your data. In your case, the coordinate system seems to be a geographic coordinate system (Latitude/longitude, e.g. WGS84). Indeed, your small values indicate that your unit is likely to be degrees. Therefore I suggest that you "project" your data ...


1

Based on the information you provided, resolution, my guess for your units is meters. Also, to find the total area of each district you could follow this tutorial Calculating Polygon Area in ArcMap You will have to create a new field then calculate the area of polygons, it is straightforward workflow Select the “Open Attribute Table” to open up the ...


1

You need to add a new field that defines the corresponding class name for each value in the attribute table. Tabulate Area does not consider the labels defined in the symbology. You should clearly define the classes in the attribute table, then when using Tabulate Area tool, you can choose the field that has the land use class names. Please note that if ...


1

You could use a search cursor and iterate all the rows of the polygon and do the analysis: http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-data-access/searchcursor-class.htm Modelbuilder is also an option: https://desktop.arcgis.com/en/arcmap/10.3/tools/modelbuilder-toolbox/iterate-row-selection.htm


1

You're pretty close at the moment. The tools you can use are in the same toolbox as the Tabulate Area tool. Have a look at Zonal Geometry. It can calculate the area for each zone. Zonal Statistics might also be useful depending on your particular datasets. Alternatively, you could convert your rasters to polygons and perform a union or interesection. ...


1

I think that there is a simple way to achieve this : Create a new fild to concatenate code and pcode ( str(!code!) + "_" + !pcode!) Use summary statistics to get the maximum area value for each unique code_pcode Join this value to the initial table (based on code field) if necessary, select the rows where area = max_area


1

Alright, I figured it out. The problem was with projections. The raster was in an unprojected WGS coordinate system. I assume that while loaded in ArcMap, it was projected on-the-fly and therefore the results showed.


1

Here is how you can do that, I think. I am following this example: library(raster) library(rgeos) library(rgdal) # example data p <- shapefile(system.file("external/lux.shp", package="raster"))[, 1] p$Color <- rep(c('blue', 'green', 'red'), 4) p <- p[,2] z <- raster(p, nrow=2, ncol=2, vals=1:4) names(z) <- 'Zone' z <- as(z, '...


1

When I use Tabulate area tool in raster with resolutin 5 x 5m per pixel (EPSG: 5514 - Czech rep. Krovak East North coordinate system), the result is in square meters per zone. So it means in zone with only one pixel, result will be 25 square meters.


1

Here's a way. PLEASE NOTE: this calculates area in degrees, which makes no sense - but otherwise doesn't impact the illustration. You should calculate area in a coordinate system that is sensible for your data. (Use rgdal to project to a local Lambert Azimuthal Equal Area projection or similar if your data are in longitude/latitude, or otherwise ...


1

Assuming you want to use it in Model Builder, I suggest you a "Calculate Value" script as follows: def LargestEcoregion(tabulate_intersection_result): rows=arcpy.SearchCursor(tabulate_intersection_result,sort_fields="PERCENTAGE D") row=rows.next() arcpy.AddMessage("%s--%s" %(row.getValue("EcoRegion_Field_Name_To_Report"),row.getValue("PERCENTAGE"...


1

You do not say where you would like this output to appear, or the version of ArcGIS for Desktop that you are using, but if it is in an ArcMap layout at 10.1 or later, then the way I would do it is by using the Intersect tool first, and then the Data Access (arcpy.da) and Mapping (arcpy.mapping) modules of ArcPy. The basic idea is to use arcpy.da cursors to ...


1

There is an internal conversion of the polygons to raster when you process a tabulate area (same with zonal histogram and zonal statistics). Therefore even if your polygons align with the raster cells, you could have a feature to raster conversion that ends up with non matching grids. This can be fixed by setting the tool environment with equal pixel size ...


1

If you have advanced license use the Tabulate Intersection tool. This is exactly what is that tool is for.


1

For two polygon features, I like Mike's method. If you are working with raster feature and/or zone data, I personally prefer using PolygonToRaster and Combine, shown logically in pseudo-code: Zone_Raster = PolygonToRaster(Zone_Polygon, re-scaled & snapped to Feature_Raster) Combined_Raster = Combine(Zone_Raster, Feature_Raster) This outputs a new ...


Only top voted, non community-wiki answers of a minimum length are eligible