Here is a little description of how bugdet seggregation works “under the hood”. This is all internal workings that you don’t need to know but it might help with the understanding:
How does Rasterized budget seggregation work?
- By passing a string field name (Like “Method”) to the rasterization method a temporary rasterized version of the shapefile is created. The values in the raster correspond to our special
- The raster is stored in a special
VectorRasterobject which contains an open dataset and a Dictionary to create a relationship between our
GCDFIDfield and the value of the field we want to use as a mask
VectorRasterobject is passed to the Budget Seggregation app which iterates cell-by-cell and aggregates values into bins named after the string values of the fields specified in step 1.
- The algorithm returns the dictionary of Stats objects.
Why do I see
GCDFID in my shapefile when I add it to a project?
The ESRI Shapefile specification allows for inconsistent handling of FID fields. Combining that with limitations in the GDaL Rasterization algorithm, in order to do Rasterization of an ESRI shapefile using the FID field we need an internally consistent (to GCD) unique ID field to identify shapes in our workflow.