Andreas Demmelbauer 1560357e9f | 3 lat temu | |
---|---|---|
.gitignore | 3 lat temu | |
LICENCE | 3 lat temu | |
README.md | 3 lat temu | |
canvas.svg | 3 lat temu | |
convert-svg-to-geotiff.py | 3 lat temu | |
gis-svg-stitcher.py | 3 lat temu | |
requirements.txt | 3 lat temu |
There are a lot of bird-perspective greyscale FLIR-images made by a drone, which don’t get stitched well together automatically. But we have geo-coordinates as metadata.
It will be manual work, but maybe we can semi-automatize it.
The process has three steps:
gis-svg-stitcher.py
script.convert-svg-to-geotiff.py
script.gis-svg-stitcher.py
for putting the tiles onto an SVG canvas
Example usage:
python3 gis-svg-stitcher.py relative_path/to/the/image_files --scale=15 --base_rotation=115 --rotation_corr_left=28
It produces a file called map.svg
next to the original tiles.
convert-svg-to-geotiff.py
for converting the (edited) SVG canvas
Example usage:
python3 convert-svg-to-geotiff.py relative_path/to/the/image_files/map.svg output.tiff
It produces the output file, but also some temporary files, which can be deleted manually afterwards. The (likely) hundrets of generated png tiles insnde the “thermalpng” directory may take some disk space (around 0.5 MB per tile).
Install Python3, Inkscape, Firefox and git.
Then clone repo and install script dependencies:
git clone https://git.notice.at/redplanet/deep-crop.git
cd deep-crop
pip3 install -r requirements.txt
It’s recommended to use a virtualEnv if the host is also used for other python jobs.
You should be able to run commands on the command line.
Use the --help
flag for more information about how to use the scripts:
python3 gis-svg-stitcher.py --help
and
python3 convert-svg-to-geotiff.py --help
This work is licenced under GPLv3+.
However, the scripts are built upon libraries and programs with some different licences: