diff --git a/pyproject.toml b/pyproject.toml index 3fdee58..ff6684d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "rasters" -version = "1.13.2" +version = "1.14.0" description = "raster processing toolkit" readme = "README.md" authors = [ diff --git a/rasters/raster_grid.py b/rasters/raster_grid.py index ba7015c..7f84efd 100644 --- a/rasters/raster_grid.py +++ b/rasters/raster_grid.py @@ -301,6 +301,22 @@ def cols(self) -> int: """ return self._cols + @property + def xmin(self) -> float: + return self.x_origin + + @property + def xmax(self) -> float: + return self.x_origin + self.width + + @property + def ymin(self) -> float: + return self.y_origin - self.height + + @property + def ymax(self) -> float: + return self.y_origin + @property def grid(self) -> RasterGrid: return RasterGrid.from_affine(self.affine, self.rows, self.cols, self.crs)