Created
May 29, 2019 21:28
-
-
Save mfurlend/2f5a6c685493699bbe7d59f5c82e7206 to your computer and use it in GitHub Desktop.
georeference and crop an image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gdal_translate -of GTiff -a_ullr ullon ullat lrlon lrlat -a_srs EPSG:4269 input.tif output.tif | |
gdal_translate -of GTiff -a_ullr -134.09548 52.640547 -60.90728 21.14054 -a_srs EPSG:102009 ~/Desktop/example_image.png output.tif | |
gdalwarp -t_srs EPSG:4326 -te ullon ullat lrlon lrlat -ts width_px height_px input.tif output.tif | |
gdalwarp -t_srs EPSG:102009 -te -100 30 -80 40 -ts 920 768 output.tif output2.tif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment