Returns a GridExtent that with this grid's resolution.
Returns a GridExtent that with this grid's resolution.
This function will generate an extent that lines up with a grid having
an origin at the given point and grid cells of the size given by the
cellSize of the GridExtent. The resulting GridExtent, in general, will
not be equal to
, but will have the smallest extent
that lines up with the grid and also covers targetExtent
.
targetExtent
Returns a GridExtent that lines up with this grid's resolution and grid layout.
Returns a GridExtent that lines up with this grid's resolution and grid layout.
This function will generate an extent that lines up with the grid
indicated by the GridExtent, having an origin at the upper-left corner
of the extent, and grid cells having the size given by cellSize.
The resulting GridExtent, in general, will not be equal to
, but will have the smallest extent that lines up with
the grid and also covers targetExtent
.
targetExtent
Returns a RasterExtent that lines up with this RasterExtent's resolution, and grid layout.
Returns a RasterExtent that lines up with this RasterExtent's resolution, and grid layout.
For example, the resulting RasterExtent will not have the given extent, but will have the smallest extent such that the whole of the given extent is covered, that lines up with the grid.
Gets the Extent that matches the grid bounds passed in, aligned with this RasterExtent.
Gets the Extent that matches the grid bounds passed in, aligned with this RasterExtent.
The 'clamp' parameter determines whether or not to clamp the Extent to the extent of this RasterExtent; defaults to true. If true, the returned extent will be contained by this RasterExtent's extent, if false, the Extent returned can be outside of this RasterExtent's extent.
The extent to get the grid bounds for
A boolean which controlls the clamping behvior
Tests if the grid is aligned to the extent.
Tests if the grid is aligned to the extent. This is true when the extent is evenly divided by cellheight and cellwidth.
Creates a RasterExtent out of this GridExtent.
Creates a RasterExtent out of this GridExtent.
Use with caution: if the number of columns or rows are larger than Int.MaxValue, this will throw an exception. Also, if columns * rows > Int.MaxValue, this will create a RasterExtent for a raster that could not be backed by any of the Array-backed tile types.
Represents an abstract grid over geographic extent. Critically while the number of cell rows and columns is implied by the constructor arguments, they are intentionally not expressed to avoid Int overflow for large grids.