types
Different type mappings of geo engine types
SpatialBounds Objects
Section titled “SpatialBounds Objects”class SpatialBounds()A spatial bounds object
__init__
Section titled “__init__”def __init__(xmin: float, ymin: float, xmax: float, ymax: float) -> NoneInitialize a new SpatialBounds object
as_bbox_str
Section titled “as_bbox_str”def as_bbox_str(y_axis_first=False) -> strA comma-separated string representation of the spatial bounds with OGC axis ordering
as_bbox_tuple
Section titled “as_bbox_tuple”def as_bbox_tuple(y_axis_first=False) -> tuple[float, float, float, float]Return the bbox with OGC axis ordering of the srs
x_axis_size
Section titled “x_axis_size”def x_axis_size() -> floatThe size of the x axis
y_axis_size
Section titled “y_axis_size”def y_axis_size() -> floatThe size of the y axis
BoundingBox2D Objects
Section titled “BoundingBox2D Objects”class BoundingBox2D(SpatialBounds)‘A 2D bounding box.
from_response
Section titled “from_response”@staticmethoddef from_response( response: geoengine_api_client.BoundingBox2D) -> BoundingBox2Dcreate a BoundingBox2D from an API response
SpatialPartition2D Objects
Section titled “SpatialPartition2D Objects”class SpatialPartition2D(SpatialBounds)A 2D spatial partition.
from_response
Section titled “from_response”@staticmethoddef from_response( response: geoengine_api_client.SpatialPartition2D) -> SpatialPartition2Dcreate a SpatialPartition2D from an API response
to_bounding_box
Section titled “to_bounding_box”def to_bounding_box() -> BoundingBox2Dconvert to a BoundingBox2D
from_bounding_box
Section titled “from_bounding_box”@staticmethoddef from_bounding_box(bbox: BoundingBox2D) -> SpatialPartition2DCreates a SpatialPartition2D from a BoundingBox2D
TimeInterval Objects
Section titled “TimeInterval Objects”class TimeInterval()‘A time interval.
__init__
Section titled “__init__”def __init__(start: datetime | np.datetime64, end: datetime | np.datetime64 | None = None) -> NoneInitialize a new TimeInterval object
time_str
Section titled “time_str”@propertydef time_str() -> strReturn the time instance or interval as a string representation
from_response
Section titled “from_response”@staticmethoddef from_response( response: geoengine_api_client.models.TimeInterval) -> TimeIntervalcreate a TimeInterval from an API response
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.TimeIntervalcreate a openapi TimeInterval from self
__eq__
Section titled “__eq__”def __eq__(other: Any) -> boolCheck if two TimeInterval objects are equal.
SpatialResolutionDict Objects
Section titled “SpatialResolutionDict Objects”class SpatialResolutionDict(TypedDict)A spatial resolution as a dictionary
SpatialResolution Objects
Section titled “SpatialResolution Objects”class SpatialResolution()‘A spatial resolution.
__init__
Section titled “__init__”def __init__(x_resolution: float, y_resolution: float) -> NoneInitialize a new SpatialResolution object
from_response
Section titled “from_response”@staticmethoddef from_response(response: SpatialResolutionDict) -> SpatialResolutioncreate a SpatialResolution from an API response
resolution_ogc
Section titled “resolution_ogc”def resolution_ogc(srs_code: str) -> tuple[float, float]Return the resolution in OGC style
QueryRectangle Objects
Section titled “QueryRectangle Objects”class QueryRectangle()A multi-dimensional query rectangle, consisting of spatial and temporal information.
__init__
Section titled “__init__”def __init__(spatial_bounds: BoundingBox2D | SpatialPartition2D | tuple[float, float, float, float], time_interval: TimeInterval | tuple[datetime, datetime | None], srs="EPSG:4326") -> NoneInitialize a new QueryRectangle object
Parameters
Section titled “Parameters”spatial_bounds
The spatial bounds of the query rectangle.
Either a BoundingBox2D or a tuple of floats (xmin, ymin, xmax, ymax)
time_interval
The time interval of the query rectangle.
Either a TimeInterval or a tuple of datetime.datetime objects (start, end)
bbox_str
Section titled “bbox_str”@propertydef bbox_str() -> strA comma-separated string representation of the spatial bounds
bbox_ogc_str
Section titled “bbox_ogc_str”@propertydef bbox_ogc_str() -> strA comma-separated string representation of the spatial bounds with OGC axis ordering
bbox_ogc
Section titled “bbox_ogc”@propertydef bbox_ogc() -> tuple[float, float, float, float]Return the bbox with OGC axis ordering of the srs
@propertydef time() -> TimeIntervalReturn the time instance or interval
spatial_bounds
Section titled “spatial_bounds”@propertydef spatial_bounds() -> BoundingBox2DReturn the spatial bounds
time_str
Section titled “time_str”@propertydef time_str() -> strReturn the time instance or interval as a string representation
@propertydef srs() -> strReturn the SRS string
__repr__
Section titled “__repr__”def __repr__() -> strReturn a string representation of the query rectangle.
with_raster_bands
Section titled “with_raster_bands”def with_raster_bands(raster_bands: list[int]) -> RasterQueryRectangleConverts a QueryRectangle into a RasterQueryRectangle
RasterQueryRectangle Objects
Section titled “RasterQueryRectangle Objects”class RasterQueryRectangle(QueryRectangle)A multi-dimensional query rectangle, consisting of spatial and temporal information and raster bands.
__init__
Section titled “__init__”def __init__(spatial_bounds: BoundingBox2D | SpatialPartition2D | tuple[float, float, float, float], time_interval: TimeInterval | tuple[datetime, datetime | None], raster_bands: list[int] | None | int, srs="EPSG:4326") -> NoneInitialize a new QueryRectangle object
Parameters
Section titled “Parameters”spatial_bounds
The spatial bounds of the query rectangle.
Either a BoundingBox2D or a tuple of floats (xmin, ymin, xmax, ymax)
time_interval
The time interval of the query rectangle.
Either a TimeInterval or a tuple of datetime.datetime objects (start, end)
bands
The raster bands of the query rectangle.
A List of ints representing the band numbers.
raster_bands
Section titled “raster_bands”@propertydef raster_bands() -> list[int]Return the query bands
__repr__
Section titled “__repr__”def __repr__() -> strReturn a string representation of the query rectangle.
ResultDescriptor Objects
Section titled “ResultDescriptor Objects”class ResultDescriptor()Base class for result descriptors
__init__
Section titled “__init__”def __init__(spatial_reference: str, time_bounds: TimeInterval | None = None) -> NoneInitialize a new ResultDescriptor object
from_response
Section titled “from_response”@staticmethoddef from_response( response: geoengine_api_client.TypedResultDescriptor) -> ResultDescriptorParse a result descriptor from an http response
is_raster_result
Section titled “is_raster_result”@classmethoddef is_raster_result(cls) -> boolReturn true if the result is of type raster
is_vector_result
Section titled “is_vector_result”@classmethoddef is_vector_result(cls) -> boolReturn true if the result is of type vector
is_plot_result
Section titled “is_plot_result”@classmethoddef is_plot_result(cls) -> boolReturn true if the result is of type plot
spatial_reference
Section titled “spatial_reference”@propertydef spatial_reference() -> strReturn the spatial reference
time_bounds
Section titled “time_bounds”@propertydef time_bounds() -> TimeInterval | NoneReturn the time bounds
VectorResultDescriptor Objects
Section titled “VectorResultDescriptor Objects”class VectorResultDescriptor(ResultDescriptor)A vector result descriptor
__init__
Section titled “__init__”def __init__(spatial_reference: str, data_type: VectorDataType, columns: dict[str, VectorColumnInfo], time_bounds: TimeInterval | None = None, spatial_bounds: BoundingBox2D | None = None) -> NoneInitialize a vector result descriptor
from_response_vector
Section titled “from_response_vector”@staticmethoddef from_response_vector( response: geoengine_api_client.TypedVectorResultDescriptor) -> VectorResultDescriptorParse a vector result descriptor from an http response
data_type
Section titled “data_type”@propertydef data_type() -> VectorDataTypeReturn the data type
spatial_reference
Section titled “spatial_reference”@propertydef spatial_reference() -> strReturn the spatial reference
columns
Section titled “columns”@propertydef columns() -> dict[str, VectorColumnInfo]Return the columns
spatial_bounds
Section titled “spatial_bounds”@propertydef spatial_bounds() -> BoundingBox2D | NoneReturn the spatial bounds
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of the vector result descriptor
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.TypedResultDescriptorConvert the vector result descriptor to a dictionary
FeatureDataType Objects
Section titled “FeatureDataType Objects”class FeatureDataType(str, Enum)Vector column data type
from_string
Section titled “from_string”@staticmethoddef from_string(data_type: str) -> FeatureDataTypeCreate a new VectorColumnDataType from a string
to_api_enum
Section titled “to_api_enum”def to_api_enum() -> geoengine_api_client.FeatureDataTypeConvert to an API enum
VectorColumnInfo Objects
Section titled “VectorColumnInfo Objects”@dataclassclass VectorColumnInfo()Vector column information
from_response
Section titled “from_response”@staticmethoddef from_response( response: geoengine_api_client.VectorColumnInfo) -> VectorColumnInfoCreate a new VectorColumnInfo from a JSON response
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.VectorColumnInfoConvert to a dictionary
RasterBandDescriptor Objects
Section titled “RasterBandDescriptor Objects”@dataclass(repr=False)class RasterBandDescriptor()A raster band descriptor
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.RasterBandDescriptor) -> RasterBandDescriptorParse an http response to a RasterBandDescriptor object
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of a raster band descriptor
GridIdx2D Objects
Section titled “GridIdx2D Objects”@dataclassclass GridIdx2D()A grid index
from_response
Section titled “from_response”@classmethoddef from_response(cls, response: geoengine_api_client.GridIdx2D) -> GridIdx2DParse an http response to a GridIdx2D object
GridBoundingBox2D Objects
Section titled “GridBoundingBox2D Objects”@dataclassclass GridBoundingBox2D()A grid boundingbox where lower right is inclusive index
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.GridBoundingBox2D) -> GridBoundingBox2DParse an http response to a GridBoundingBox2D object
contains_idx
Section titled “contains_idx”def contains_idx(idx: GridIdx2D) -> boolTest if a GridIdx2D is contained by this
SpatialGridDefinition Objects
Section titled “SpatialGridDefinition Objects”@dataclassclass SpatialGridDefinition()A grid boundingbox where lower right is inclusive index
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.SpatialGridDefinition) -> SpatialGridDefinitionParse an http response to a SpatialGridDefinition object
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of the SpatialGridDefinition
SpatialGridDescriptor Objects
Section titled “SpatialGridDescriptor Objects”@dataclassclass SpatialGridDescriptor()A grid boundingbox where lower right is inclusive index
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.SpatialGridDescriptor) -> SpatialGridDescriptorParse an http response to a SpatialGridDefinition object
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of the SpatialGridDescriptor
RasterDataType Objects
Section titled “RasterDataType Objects”class RasterDataType(str, Enum)Raster data type enum
from_string
Section titled “from_string”@staticmethoddef from_string(data_type: str) -> RasterDataTypeCreate a new RasterDataType from a string
from_literal
Section titled “from_literal”@staticmethoddef from_literal( data_type: Literal["U8", "U16", "U32", "U64", "I8", "I16", "I32", "I64", "F32", "F64"]) -> RasterDataTypeCreate a new RasterDataType from a literal
to_literal
Section titled “to_literal”def to_literal() -> Literal["U8", "U16", "U32", "U64", "I8", "I16", "I32", "I64", "F32", "F64"]Convert to a literal
from_api_enum
Section titled “from_api_enum”@staticmethoddef from_api_enum( data_type: geoengine_api_client.RasterDataType) -> RasterDataTypeCreate a new RasterDataType from an API enum
to_api_enum
Section titled “to_api_enum”def to_api_enum() -> geoengine_api_client.RasterDataTypeConvert to an API enum
to_np_dtype
Section titled “to_np_dtype”def to_np_dtype() -> np.dtypeConvert to a numpy dtype
TimeDimension Objects
Section titled “TimeDimension Objects”class TimeDimension()A time dimension
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.TimeDimension) -> RegularTimeDimension | IrregularTimeDimensionParse a time dimension from an http response
RegularTimeDimension Objects
Section titled “RegularTimeDimension Objects”class RegularTimeDimension(TimeDimension)A regular time dimension
__init__
Section titled “__init__”def __init__(step: TimeStep, origin: np.datetime64 | None = None) -> NoneInitialize a new RegularTimeDimension
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.TimeDimensionConvert the regular time dimension to a dictionary
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.TimeDimension) -> RegularTimeDimensionParse a regular time dimension from an http response
IrregularTimeDimension Objects
Section titled “IrregularTimeDimension Objects”class IrregularTimeDimension(TimeDimension)The irregular time dimension
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.TimeDimensionConvert the irregular time dimension to a dictionary
from_response
Section titled “from_response”@classmethoddef from_response(cls, response: Any) -> IrregularTimeDimensionParse an irregular time dimension from an http response
TimeDescriptor Objects
Section titled “TimeDescriptor Objects”class TimeDescriptor()A time descriptor
__init__
Section titled “__init__”def __init__(dimension: TimeDimension, bounds: TimeInterval | None = None) -> NoneInitialize a new TimeDescriptor
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.TimeDescriptorConvert the time descriptor to a dictionary
from_response
Section titled “from_response”@staticmethoddef from_response( response: geoengine_api_client.TimeDescriptor) -> TimeDescriptorParse a time descriptor from an http response
RasterResultDescriptor Objects
Section titled “RasterResultDescriptor Objects”class RasterResultDescriptor(ResultDescriptor)A raster result descriptor
__init__
Section titled “__init__”def __init__( data_type: RasterDataType | Literal["U8", "U16", "U32", "U64", "I8", "I16", "I32", "I64", "F32", "F64"], bands: list[RasterBandDescriptor], spatial_reference: str, spatial_grid: SpatialGridDescriptor, time: TimeDescriptor | TimeInterval | TimeDimension | None = None) -> NoneInitialize a new RasterResultDescriptor
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.TypedResultDescriptorConvert the raster result descriptor to a dictionary
from_response_raster
Section titled “from_response_raster”@staticmethoddef from_response_raster( response: geoengine_api_client.TypedRasterResultDescriptor) -> RasterResultDescriptorParse a raster result descriptor from an http response
spatial_reference
Section titled “spatial_reference”@propertydef spatial_reference() -> strReturn the spatial reference
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of the raster result descriptor
PlotResultDescriptor Objects
Section titled “PlotResultDescriptor Objects”class PlotResultDescriptor(ResultDescriptor)A plot result descriptor
__init__
Section titled “__init__”def __init__(spatial_reference: str, time_bounds: TimeInterval | None = None, spatial_bounds: BoundingBox2D | None = None) -> NoneInitialize a new PlotResultDescriptor
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of the plot result descriptor
from_response_plot
Section titled “from_response_plot”@staticmethoddef from_response_plot( response: geoengine_api_client.TypedPlotResultDescriptor) -> PlotResultDescriptorCreate a new PlotResultDescriptor from a JSON response
spatial_reference
Section titled “spatial_reference”@propertydef spatial_reference() -> strReturn the spatial reference
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.TypedResultDescriptorConvert the plot result descriptor to a dictionary
VectorDataType Objects
Section titled “VectorDataType Objects”class VectorDataType(str, Enum)An enum of vector data types
from_geopandas_type_name
Section titled “from_geopandas_type_name”@classmethoddef from_geopandas_type_name(cls, name: str) -> VectorDataTypeResolve vector data type from geopandas geometry type
from_literal
Section titled “from_literal”@staticmethoddef from_literal( literal: Literal["Data", "MultiPoint", "MultiLineString", "MultiPolygon"]) -> VectorDataTypeResolve vector data type from literal
from_api_enum
Section titled “from_api_enum”@staticmethoddef from_api_enum( data_type: geoengine_api_client.VectorDataType) -> VectorDataTypeResolve vector data type from API enum
from_string
Section titled “from_string”@staticmethoddef from_string(string: str) -> VectorDataTypeResolve vector data type from string
TimeStepGranularity Objects
Section titled “TimeStepGranularity Objects”class TimeStepGranularity(Enum)An enum of time step granularities
TimeStep Objects
Section titled “TimeStep Objects”@dataclassclass TimeStep()A time step that consists of a granularity and a step size
__init__
Section titled “__init__”def __init__(step: int, granularity: TimeStepGranularity | str) -> NoneInitialize a new TimeStep object
from_response
Section titled “from_response”@classmethoddef from_response(cls, response: geoengine_api_client.TimeStep) -> TimeStepParse an http response to a TimeStep object
Provenance Objects
Section titled “Provenance Objects”@dataclassclass Provenance()Provenance information as triplet of citation, license and uri
from_response
Section titled “from_response”@classmethoddef from_response(cls, response: geoengine_api_client.Provenance) -> ProvenanceParse an http response to a Provenance object
ProvenanceEntry Objects
Section titled “ProvenanceEntry Objects”@dataclassclass ProvenanceEntry()Provenance of a dataset
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.ProvenanceEntry) -> ProvenanceEntryParse an http response to a ProvenanceEntry object
Symbology Objects
Section titled “Symbology Objects”class Symbology()Base class for symbology
from_response
Section titled “from_response”@staticmethoddef from_response(response: geoengine_api_client.Symbology) -> SymbologyParse an http response to a Symbology object
VectorSymbology Objects
Section titled “VectorSymbology Objects”class VectorSymbology(Symbology)A vector symbology
RasterColorizer Objects
Section titled “RasterColorizer Objects”class RasterColorizer()Base class for raster colorizer
from_response
Section titled “from_response”@classmethoddef from_response( cls, response: geoengine_api_client.RasterColorizer) -> RasterColorizerParse an http response to a RasterColorizer object
SingleBandRasterColorizer Objects
Section titled “SingleBandRasterColorizer Objects”@dataclassclass SingleBandRasterColorizer(RasterColorizer)A raster colorizer for a specified band
MultiBandRasterColorizer Objects
Section titled “MultiBandRasterColorizer Objects”@dataclassclass MultiBandRasterColorizer(RasterColorizer)A raster colorizer for multiple bands
RasterSymbology Objects
Section titled “RasterSymbology Objects”class RasterSymbology(Symbology)A raster symbology
__init__
Section titled “__init__”def __init__(raster_colorizer: RasterColorizer, opacity: float = 1.0) -> NoneInitialize a new RasterSymbology
to_api_dict
Section titled “to_api_dict”def to_api_dict() -> geoengine_api_client.SymbologyConvert the raster symbology to a dictionary
from_response_raster
Section titled “from_response_raster”@staticmethoddef from_response_raster( response: geoengine_api_client.RasterSymbology) -> RasterSymbologyParse an http response to a RasterSymbology object
__eq__
Section titled “__eq__”def __eq__(value)Check if two RasterSymbologies are equal
DataId Objects
Section titled “DataId Objects”class DataId()Base class for data ids
from_response
Section titled “from_response”@classmethoddef from_response(cls, response: geoengine_api_client.DataId) -> DataIdParse an http response to a DataId object
InternalDataId Objects
Section titled “InternalDataId Objects”class InternalDataId(DataId)An internal data id
from_response_internal
Section titled “from_response_internal”@classmethoddef from_response_internal( cls, response: geoengine_api_client.InternalDataId) -> InternalDataIdParse an http response to a InternalDataId object
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of an internal data id
__eq__
Section titled “__eq__”def __eq__(other) -> boolCheck if two internal data ids are equal
ExternalDataId Objects
Section titled “ExternalDataId Objects”class ExternalDataId(DataId)An external data id
from_response_external
Section titled “from_response_external”@classmethoddef from_response_external( cls, response: geoengine_api_client.ExternalDataId) -> ExternalDataIdParse an http response to a ExternalDataId object
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of an external data id
__eq__
Section titled “__eq__”def __eq__(other) -> boolCheck if two external data ids are equal
Measurement Objects
Section titled “Measurement Objects”class Measurement()Base class for measurements
from_response
Section titled “from_response”@staticmethoddef from_response(response: geoengine_api_client.Measurement) -> MeasurementParse a result descriptor from an http response
UnitlessMeasurement Objects
Section titled “UnitlessMeasurement Objects”class UnitlessMeasurement(Measurement)A measurement that is unitless
__str__
Section titled “__str__”def __str__() -> strString representation of a unitless measurement
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of a unitless measurement
ContinuousMeasurement Objects
Section titled “ContinuousMeasurement Objects”class ContinuousMeasurement(Measurement)A measurement that is continuous
__init__
Section titled “__init__”def __init__(measurement: str, unit: str | None) -> NoneInitialize a new ContiuousMeasurement
from_response_continuous
Section titled “from_response_continuous”@staticmethoddef from_response_continuous( response: geoengine_api_client.ContinuousMeasurement) -> ContinuousMeasurementInitialize a new `ContiuousMeasurement from a JSON response
__str__
Section titled “__str__”def __str__() -> strString representation of a continuous measurement
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of a continuous measurement
ClassificationMeasurement Objects
Section titled “ClassificationMeasurement Objects”class ClassificationMeasurement(Measurement)A measurement that is a classification
__init__
Section titled “__init__”def __init__(measurement: str, classes: dict[int, str]) -> NoneInitialize a new ClassificationMeasurement
from_response_classification
Section titled “from_response_classification”@staticmethoddef from_response_classification( response: geoengine_api_client.ClassificationMeasurement) -> ClassificationMeasurementInitialize a new `ClassificationMeasurement from a JSON response
__str__
Section titled “__str__”def __str__() -> strString representation of a classification measurement
__repr__
Section titled “__repr__”def __repr__() -> strDisplay representation of a classification measurement
GeoTransform Objects
Section titled “GeoTransform Objects”class GeoTransform()The GeoTransform specifies the relationship between pixel coordinates and geographic coordinates.
In Geo Engine, x_pixel_size is always positive.
x_pixel_size
Section titled “x_pixel_size”In Geo Engine, y_pixel_size is always negative.
__init__
Section titled “__init__”def __init__(x_min: float, y_max: float, x_pixel_size: float, y_pixel_size: float)Initialize a new GeoTransform
from_response
Section titled “from_response”@classmethoddef from_response(cls, response: geoengine_api_client.GeoTransform) -> GeoTransformParse a geotransform from an HTTP JSON response
to_gdal
Section titled “to_gdal”def to_gdal() -> tuple[float, float, float, float, float, float]Convert to a GDAL geotransform
coord_to_pixel_ul
Section titled “coord_to_pixel_ul”def coord_to_pixel_ul(x_cord: float, y_coord: float) -> GridIdx2DConvert a coordinate to a pixel index rould towards top left
coord_to_pixel_lr
Section titled “coord_to_pixel_lr”def coord_to_pixel_lr(x_cord: float, y_coord: float) -> GridIdx2DConvert a coordinate to a pixel index ound towards lower right
pixel_ul_to_coord
Section titled “pixel_ul_to_coord”def pixel_ul_to_coord(x_pixel: int, y_pixel: int) -> tuple[float, float]Convert a pixel position into a coordinate
spatial_to_grid_bounds
Section titled “spatial_to_grid_bounds”def spatial_to_grid_bounds( bounds: SpatialPartition2D | BoundingBox2D) -> GridBoundingBox2DConverts a BoundingBox2D or a SpatialPartition2D into a GridBoundingBox2D
grid_bounds_to_spatial_bounds
Section titled “grid_bounds_to_spatial_bounds”def grid_bounds_to_spatial_bounds( bounds: GridBoundingBox2D) -> SpatialPartition2DConverts a GridBoundingBox2D into a SpatialPartition2D
__eq__
Section titled “__eq__”def __eq__(other) -> boolCheck if two geotransforms are equal