Update: Added support for extracting raster data as a sum or mean