EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 661e94a4 authored by Fabian Schindler's avatar Fabian Schindler
Browse files

Allowing TPS transformation

parent 0359a280
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,8 @@ def georeference_step(source_dir: os.PathLike, target_dir: os.PathLike, type: st
georef_func(filename, target_filename, **options)
def gcp_georef(input_filename: os.PathLike, target_filename: os.PathLike, order: int=1, projection: str='EPSG:4326'):
def gcp_georef(input_filename: os.PathLike, target_filename: os.PathLike, order: int=1, projection: str='EPSG:4326',
tps: bool=False):
succeded = False
# simple case: get the geotransform from some GCPs
......@@ -57,6 +58,7 @@ def gcp_georef(input_filename: os.PathLike, target_filename: os.PathLike, order:
options=gdal.WarpOptions(
polynomialOrder=order,
dstSRS=projection,
tps=tps,
)
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment