Python GIS - Reproject a Raster with GDAL Warp (gdal.Warp)

preview_player
Показать описание
Use Python and GDAL to reproject a raster using GDAL warp (gdal.Warp). This simple algorithm will allow you to automate and write scripts to batch process coordinate system conversions for raster datasets.

Рекомендации по теме
Комментарии
Автор

Thanks for your tutorials, they are very helpful. How come the raster elevation changes significantly in the new projected raster?

AR_Wald
Автор

Please make a video on how to use different methods of georeferencing/registration to georeference or register an image to a set of control points?
Thank you!

XinhLe
Автор

please make a video on how to subset raster with shapefile

BeyondCurrybySoumita
Автор

The "import gdal" string doesn't work on newer versions, it needs to be replaced by "from osgeo import gdal"

akeem
Автор

hi and thanks for the video. how would you do it if you only have a tiff file, the extent (xmin, xmax, ymin, ymax) and the epsg!
Saludos desde Chile y muchas gracias por el material!!

diegomedina
Автор

what code to use to convert tiff to jpeg?

scandinavian_advice
Автор

Hi!
Your tutorials are awesome, but, when I run the script:

import gdal

fn =
out =

gdal.Warp(out, fn, dstSRS="EPSG:4326")

iface.addRasterLayer(out)

I'm getting the following error:

[TypeError: in method 'wrapper_GDALWarpDestName', argument 4 of type 'GDALWarpAppOptions *']

Please your help, I'm using python 3.7 and QGIS 3.14.

Thanks

toastmastersus
join shbcf.ru