aws.osml.gdal.projective_sensor_model_builder module

class aws.osml.gdal.projective_sensor_model_builder.ProjectiveSensorModelBuilder(xml_tres: Element, full_image_width: float, full_image_height: float)[source]

Bases: SensorModelBuilder

This builder is used to create sensor models for images that have an IGEOLO or CSCRNA TREs. The inputs are not the TREs themselves but rather the XML formatted TREs resulting from GDAL’s parsing of that information. This information can be obtained by accessing the xml:TRE metadata domain for a given GDAL dataset.

See STDI-0002 Volume 3 Appendix B for more detailed information.

build() ProjectiveSensorModel | None[source]

Examine the TRE metadata for corner coordinate information, parse the necessary values out of those TREs, and construct a projective sensor model.

Returns:

a ProjectiveSensorModel if one can be constructed, None otherwise

static build_projective_sensor_model(cscrna_tre: Element, full_image_width: float, full_image_height: float) ProjectiveSensorModel[source]

This private method constructs an RPC sensor model from an RPC00B TRE.

Parameters:
  • cscrna_tre – the GDAL XML for CSCRNA

  • full_image_width – the width of the image in pixels

  • full_image_height – the height of the image in pixels

Returns:

the projective sensor model