geoutils.Raster.outside_image#
- Raster.outside_image(xi, yj, index=True)[source]#
Check whether a given point falls outside the raster.
- Parameters:
xi (
Union
[_SupportsArray
[dtype
[Any
]],_NestedSequence
[_SupportsArray
[dtype
[Any
]]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]]]) – Indices (or coordinates) of x direction to check.yj (
Union
[_SupportsArray
[dtype
[Any
]],_NestedSequence
[_SupportsArray
[dtype
[Any
]]],bool
,int
,float
,complex
,str
,bytes
,_NestedSequence
[Union
[bool
,int
,float
,complex
,str
,bytes
]]]) – 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:
True
if ij is outside the image.- Return type: