Accessing raster and vector layer statistics