Questions tagged [gdalwarp]

A Geospatial Data Abstraction Library (GDAL) image mosaicing, reprojection, and warping utility.

can be used to reproject data to any supported target projection, and apply GCPs stored within the image (see ).

See also

754 questions
6
votes
1 answer

How do I make gdalwarp set target extents to -180 -90 180 90?

I'm using gdalwarp with the -te option and it doesn't appear to be working like I expected. I'm running a command like: gdalwarp -of GTiff -te -180 -90 180 90 -tr 0.1 0.1 -t_srs EPSG:4326 input.tif output.tif or gdalwarp -of GTiff -te -180.0 -90.0…
Alex B
  • 2,246
  • 2
  • 16
  • 12
3
votes
1 answer

Tuning gdalwarp to match source cell size and alignment

I was hoping gdalwarp could merge and crop MODIS TIFF images such that the original cell size and alignment is maintained. I tried the command below, but cell size is off slightly and cell alignment is offset from 10 to 100 meters. gdalwarp -cutline…
L Curve
  • 31
  • 1
3
votes
2 answers

Convert GeoPDF to 8-bit GeoTIFF using gdalwarp

I am using gdalwarp to convert GeoPDFs of processed maps to GeoTIFFs (for later stitching into a larger GeoTIFF) using the following command: gdalwarp -t_srs EPSG:28356 -r cubic -cutline "nsw_map_boundaries\20160506_nsw_map_bounds.geojson" -cwhere…
Tom Brennan
  • 4,787
  • 6
  • 26
3
votes
1 answer

gdalwarp band values of 0 turning to nodata

In executing gdalwarp on an RGB TIFF to clip out an extent, the output TIFF changes values of 0 within a band to NoData. I cannot find anything explicitly referencing this scenario. Is there a flag to keep the 0's? gdal_warp_str =…
D_C
  • 1,359
  • 10
  • 23
3
votes
1 answer

gdalwarp reprojection causes missing data

I have tried to reproject and resample an SRTM DEM file from WGS84 to a cylindrical equal area projection. The problem is there is missing data as seen in the image below. The command I use is: gdalwarp -s_srs WGS84 -t_srs ogcwkt.prj -r near -multi…
2
votes
1 answer

Downsampling using GDAL Warp results in a huge difference in statistics

I'm trying to downsample population data downloaded from https://www.worldpop.org/geodata/summary?id=24777 to lower resolution using the following command gdalwarp -tr 0.1 0.1 -co TILED=YES -co COMPRESS=LZW /home/ppp_2020_1km_Aggregated.tif…
Joonas
  • 121
  • 1
2
votes
1 answer

Overwriting file using gdalwarp

I am change the spatial reference system from raster file with gdalwarp. I would like to overwrite file to avoid own the same file again in my computer. I am trying to use gdalwarp with -overite parameter. But the error happened and I didn't…
Diogo Caribé
  • 1,960
  • 1
  • 23
  • 37
2
votes
2 answers

gdalwarp leaves black boundary of cropped GeoTIFF with cutline

This is a new question based on a response on the thread white page border when converting geoPDF to geoTiff with gdal_translate I am using gdalwarp as described to do a cutline of GeoTIFF images that have been rendered from geospatial PDFs. The…
bakerjw
  • 101
  • 7
2
votes
1 answer

Using Gdalwarp to Change Resolution of File in Degrees to Metres

I am using the command: gdalwarp -t_srs WGS84 -te 144 -36 150 -32 -crop_to_cutline AustTopo250_SI55.tif I need to change the pixel resolution to 50m x 50m but the option is given as -tr xres yres: set output file resolution (in target georeferenced…
flywire
  • 177
  • 1
  • 10
1
vote
1 answer

gdalwarp needs bounding box

I try to mask a raster with gdalwarp and I always get the answer: cannot compute bounding box of cutline. what is wrong with my cutline shapefile? or what requirements should it have to work?
felix
  • 11
  • 1
1
vote
1 answer

Avoid creating alpha band when using gdalwarp

I am using gdalwarp to reproject a greyscale GeoTiff tile from one projection to another so I can use it in a VRT. This is required as gdalbuildvrt won't accept files in multiple projections. When I run gdalbuildvrt, I'm getting the error: Warning…
Tom Brennan
  • 4,787
  • 6
  • 26
1
vote
1 answer

gdalwarp -wo SOURCE_EXTRA option, what does it do?

I see people using the -wo SOURCE_EXTRA=100 option in their gdalwarp command when reprojecting to WGS84. What does it do? In the documentation it says: "-wo" Set a warp option. TheGDALWarpOptions::papszWarpOptionsdocs show all options. …
dwright
  • 313
  • 2
  • 14
1
vote
0 answers

gdalwarp with -srcwin

I am trying to cut a window (in pixels) from a geotiff file and output in a different size. gdal_translate allows that but gives no option to set resampling, while gdalwarp allows resampling while it requires the src window to be in georeferenced…
alsaleem
  • 83
  • 5
1
vote
1 answer

Cannot get gdalwarp to work

I am having some trouble getting gdalwarp to work. I want to clip my input raster in.img to the boundary of a polygon stored in a shapefile polygon.shp and save it out as out.img. The data type of in.img is 32-bit float. The raster cells external to…
hendra
  • 1,398
  • 3
  • 13
  • 22
1
vote
1 answer

Open street map overlay white background

I have been working through trying to get the NOAA ridge radar image to act as an overlay. Looking at other entries on the site I have worked with the image and have it projecting correctly but the png has a semi opaque white background I can't…
MB.
  • 297
  • 1
  • 8
1
2