aws.osml.gdal.sensor_model_factory module

class aws.osml.gdal.sensor_model_factory.ChippedImageInfoFacade(ichipb_tre: Element)[source]

Bases: object

This is a facade class that can be initialized with an ICHIPB TRE. It provides accessors for the values so that they can easily be used to create an ChippedImageSensorModel

class aws.osml.gdal.sensor_model_factory.SensorModelTypes(value)[source]

Bases: Enum

This enumeration defines the various sensor model types this factory can build.

AFFINE = 'AFFINE'
PROJECTIVE = 'PROJECTIVE'
RPC = 'RPC'
RSM = 'RSM'
SICD = 'SICD'
class aws.osml.gdal.sensor_model_factory.SensorModelFactory(actual_image_width: int, actual_image_height: int, xml_tres: Element | None = None, xml_dess: List[str] | None = None, geo_transform: List[float] | None = None, proj_wkt: str | None = None, ground_control_points: List[GCP] | None = None, selected_sensor_model_types: List[SensorModelTypes] | None = None)[source]

Bases: object

This class encapsulates the logic necessary to construct SensorModels from imagery metadata parsed using GDAL. Users initialize the builder by providing whatever metadata is available and this class will decide how to create the most accurate SensorModel from the available information.

build() SensorModel | None[source]

Constructs the sensor model from the available information. Note that in cases where not enough information is available to provide any solution this method will return None.

Returns:

the highest quality sensor model available given the information provided