Typo in reproject function
The use of reproject
function from Source
class raises:
AttributeError: module 'pyotb' has no attribute 'Orthorectification'
It is a typo: it should be OrthoRectification instead of Orthorectification
Second error: it should be 'map.epsg.code' instead of 'map.epsg'
Third issue: When initializing Source, we should be able to specify the output parameter key (https://gitlab.irstea.fr/umr-tetis/scenes/-/blob/develop/scenes/core.py#L66)
- def __init__(self, root_scene: Scene, out: str | pyotb.core.otbObject, parent: Source = None):
- ...
- super().__init__(app=pyotb.Input(out).pyotb_app if isinstance(out, str) else out, output_parameter_key="out")
+ def __init__(self, root_scene: Scene, out: str | pyotb.core.otbObject, parent: Source = None, output_parameter_key='out'):
+ ...
+ super().__init__(app=pyotb.Input(out).pyotb_app if isinstance(out, str) else out, output_parameter_key=output_parameter_key)