@ficusvirens the gridPoint and extractEXt functions should be more general and work for a raster and for a polygon.