Combining geometries with rasters for analysis