geoutils.Raster.outside_image#
- Raster.outside_image(xi, yj, index=True)[source]#
Check whether a given point falls outside the raster.
- Parameters:
xi (
Buffer|_SupportsArray[dtype[Any]] |_NestedSequence[_SupportsArray[dtype[Any]]] |complex|bytes|str|_NestedSequence[complex|bytes|str]) – Indices (or coordinates) of x direction to check.yj (
Buffer|_SupportsArray[dtype[Any]] |_NestedSequence[_SupportsArray[dtype[Any]]] |complex|bytes|str|_NestedSequence[complex|bytes|str]) – Indices (or coordinates) of y direction to check.index (
bool) – Interpret ij as raster indices (default isTrue). If False, assumes ij is coordinates.
- Returns is_outside:
Trueif ij is outside the image.- Return type: