GeoEco.DataManagement.ArcGISRasters.ArcGISRaster.CreateXRaster
- classmethod ArcGISRaster.CreateXRaster(raster, extent, cellSize, cellValue='Center', coordinateSystem=None, buildPyramids=False, overwriteExisting=False)
Creates an ArcGIS raster where the value of each cell is the X coordinate of the cell.
Requires: ArcGIS Pro 3.2.0 or later or ArcGIS Server equivalent to ArcGIS Pro 3.2.0 or later, Python numpy module.
- Parameters:
raster (
str) – Raster to create. If this is a file system path, missing directories in the path will be created if they do not exist. Minimum length꞉ 1.extent (
str) – Extent of the output raster. Minimum length꞉ 1. Must match regular expression꞉([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?)\s+([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?)\s+([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?)\s+([-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?).cellSize (
float) – Cell size of the output raster. If the horizontal or vertical extents of the raster are not evenly divisble by the cell size, the extents will be increased right or up by the smallest amount needed to make them evenly divisible. For example, if the horizontal extent runs from 0 to 25 and the cell size is 2, the right extent will be increased to 26. Must be greater than 0.0.cellValue (
str, optional) –Value of the raster cells, either:
Center- the X coordinate of the center of the cell.Left- the X coordinate of the left edge of the cell.Right- the X coordinate of the right edge of the cell.
Allowed values꞉
'Center','Left','Right'.coordinateSystem (
str, optional) – Coordinate system to define for the raster. If not specified, a coordinate system will not be defined. Minimum length꞉ 1.buildPyramids (
bool, optional) – If True, pyramids will be built for the raster, which will improve its display speed in the ArcGIS user interface. Pyramids are built with the ArcGISBuildPyramids()tool.overwriteExisting (
bool, optional) – If True, the raster will be overwritten, if it exists. If False, a ValueError will be raised if the raster exists.