Skip to main content

Questions tagged [gdalwarp]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
29 views

Aligning raster with shapefile

I have a raster file which I need to align with a shapefile. I tried gdal warp to reproject it to EPSG 4326. When I tried doing it, I get an error message ERROR 1: The transformation is already "...
proy's user avatar
  • 93
1 vote
0 answers
30 views

GDAL - From jp2 image with rpc file to Orthophoto geotiff and keep the image rotation

We are trying to convert a jp2 image with rpc to orthoPhoto geo tiff. We do the following process. The problem is that in the ortho.tiff file the image don't preserve it's rotation angle from the jp2 ...
Zlex's user avatar
  • 11
1 vote
0 answers
25 views

Raster upside down in QGIS

I have raster which, when opening on QGIS, the map turns out to be upside down. I tried fixing the data gdal_translate -of netCDF -co WRITE_BOTTOMUP=NO meancount_25.nc meancount_25_fixed.nc. Is there ...
proy's user avatar
  • 93
0 votes
0 answers
26 views

Add transparency to raster bands where did not exist before

My original radar image is a tiff image with one single band. Metadata:AREA_OR_POINT=Area Image Structure Metadata: COMPRESSION=DEFLATE INTERLEAVE=BAND Corner Coordinates: Upper Left ( ...
Cybergei's user avatar
0 votes
1 answer
39 views

Stripes in map are missing after gdalwarp and gdalbuildvrt

I have a problem with some GeoTIFF:s that are in EPSG:3006 and I need them in EPSG:3857. The problem is that after gdalwarp, and gdalbuildvrt I get transparent stripes in the vrt map This is one of ...
Mårten Swärd's user avatar
1 vote
0 answers
41 views

Access Violation following rasterdataset.Close() after GdalWarp, GDAL C# bindings

I have the following C# code to mosaic multiple rasters using GDAL C# bindings and GdalWarp method: try { Gdal.AllRegister(); // Open all the raster files in ...
Mehmet Erdoğdu's user avatar
0 votes
1 answer
39 views

Transforming ortho (.tiff) file from one epsg to other epsg

I am using GDAL to transfrom ortho from one EPSG to other EPSG. In my case I have used EPSG:32610 which is in (m) and transformed into EPSG:2227 which is in (us-ft). I am able to transform it using ...
Vivek Rao's user avatar
0 votes
0 answers
53 views

Clip a NetCDF file using gdal_translate or gdalwarp

I'm trying to clip this .nc file using either gdal_translate or gdalwarp. However I don't think I'm getting the correct output. I'm able to clip the file in Python using either of the following ...
John's user avatar
  • 141
1 vote
0 answers
50 views

Creating Orthomosaic with GDAL

Platform: Windows 11 1. Aim trying to achieve: I have some very high quality multispectral data (drone multispectral imagery), from which I am trying to create an orthomosaic. My multispectral data ...
DevM's user avatar
  • 11
0 votes
1 answer
44 views

Convert RGB(A) GeoPDF to Grayscale GeoTIFF with GDAL

I'm using the GDAL command line tools gdal_warp and gdal_translate to convert RGB(A) GeoPDF images into GeoTIFF images. Unfortunately I found no config option that changes the RGB(A) color space to ...
christoph's user avatar
  • 5,847
0 votes
0 answers
31 views

Raster re-projected with gdalwarp not projecting correctly

I inherited an application that uses an unconventional CRS. I am trying to reproject a raster image 'SA_Cities_2011_NLCD_C.tif' to a new file 'SA_Cities_2011_NLCD_C_Projected.tif' using gdalwarp. I am ...
GregC's user avatar
  • 1
1 vote
1 answer
30 views

Gdalwarp assigning zero values outside input raster extents

I'm attempting to combine several GeoTIFF files into a single mosaic raster using gdalwarp: import os os.environ['AWS_NO_SIGN_REQUEST'] = 'YES' file1 = "https://dea-public-data-dev.s3-ap-...
Robbi Bishop-Taylor's user avatar
0 votes
1 answer
78 views

Applying scale factor to raster with gdalwarp

I've been trying to use gdalwarp with the -tr and -te parameters to apply a scale factor to 'stretch' a raster. The result is a raster with correct extents and pixel size, but no RGB data. I've also ...
Summitbri's user avatar
0 votes
0 answers
21 views

Coordinate projection transformation Mars image from Ocentric Equirectangular to Transverse Mercator in Python

The task is to re-project the Mars image from Ocentric Equirectangular projection to Transverse Mercator. I'm trying to do this in gdal in python. In terms of Transverse Mercator projection, there is ...
user241072's user avatar
0 votes
0 answers
31 views

Transformation of a point with GDAL

I know the place where the image was captured and I've made pixel to lat-lon correspondences (GCPs). After running the following GDAL commands a .tif file is created. gdal_translate -of GTiff -gcp {...
user8083314's user avatar
0 votes
0 answers
24 views

Concatenating several very tall JPG-in-TIFF images using GDAL

Preface: I am fairly new to GIS, and as such - I haven't wrapped my head around the terms. I'm trying to vertically concatenate several tall JPEG-in-TIFF files into a single file. I've attempted using ...
Pricey's user avatar
  • 101
2 votes
1 answer
59 views

How to prevent gdal_translate from overwriting existing file?

I am using gdal_translate to compress a Geotiff file because i found out that gdalwarp has known issues handling compression. But, I can see that gdal_translate does not give an error message if the ...
Cicatrixx's user avatar
  • 141
0 votes
0 answers
31 views

Translating (cropping) a GeoTIFF file to a specific extent but ending up with a different final extent

I'm trying to crop a larger GeoTIFF file to a smaller extent. The darker GeoTIFF file in the middle has the extent I want to reproject to. I've used the following command to do the translation: ...
Jamess11's user avatar
0 votes
0 answers
20 views

Produce ISEA "Icosahedral Snyder Equal Area" GEOTIFF/raster with gdalwarp

Is an icosahedral projection impossible to produce with PROJ/GDAL ? Produce ISEA "Icosahedral Snyder Equal Area" GEOTIFF/raster with gdalwarp. I am trying to use gdal tools to convert Plate-...
Molly's user avatar
  • 35
0 votes
0 answers
49 views

Reproject pseudo Plate-Carree to "Icosahedral Snyder Equal Area" using GDALWARP

Reproject pseudo Plate-Carree to "Icosahedral Snyder Equal Area" with gdalwarp. I am trying to reproject a plate-carree to ISEA "Icosahedral Snyder Equal Area". I suspect ISEA ...
Molly's user avatar
  • 35
1 vote
2 answers
78 views

Use gdal_translate on an orthographic PNG image of the Earth centered at Lat=+50N Lon=+5E to proper orthographic GeoTIFF format

How do I gdal_translate an orthographic PNG image of the Earth centered at Lat=+50N Lon=+5E to proper GeoTIFFf format ? I cannot work out how to specify the limits of a full disc. (diameter of Earth ...
Molly's user avatar
  • 35
1 vote
1 answer
71 views

Re-projecting an orthographic image to a equirectangular projection has some sort of problem. The poles are getting truncated. missing parameter?

Re-projecting an orthographic image to a equirectangular projection has some sort of problem. The poles are getting truncated. is there a parameter I am missing? Is there a difference between "...
Molly's user avatar
  • 35
1 vote
0 answers
52 views

Cropping VRT with Shapefile to create new VRT with no dependecy from input

I'm new to work with gdal and I'm trying to crop a VRT-File with a shapefile to create a new VRT-File that is independent from the input. I use gdalbuildvrt [...] to create the base VRT-File from ...
Martin Reger's user avatar
1 vote
0 answers
80 views

Georeferencing rasters using GCPs in R: stars/terra equivalent of gdal_translate / gdalwarp?

With the retirement of rgdal and transition to sf/stars/terra functions in October 2023 now passed, is there a way of georeferencing raster images with GCPs (Ground Control Points) other than using ...
Thomas Moore's user avatar
0 votes
1 answer
75 views

GDAL: GFS weather model reprojection issues

I'm trying to reproject a grib file using gdal. The crib file has the following,relevant, info: GEOGCRS["Coordinate System imported from GRIB file", DATUM["unnamed", ...
Davide Raro's user avatar
0 votes
0 answers
106 views

Error trying to translate raster image from EPSG:3857 to EPSG:3068 with GDAL with subwindow

I'm new with this GIS stuff and starting work with GDAL. I'm using this TMS dataset and trying to project to a specific subwindow like this: <GDAL_WMS> <Service name="TMS"> ...
fmenegussi's user avatar
0 votes
0 answers
92 views

Cannot write GeoTIFF larger than 4GB with gdalwarp despite using BIGTIFF createopt

I am running a Bash script to create a series of NetCDF grid files from MB-System that contain gridded swath multibeam bathymetry data. Each grid is unprojected Geographic Lat-Long, about 15-20MB in ...
Theophan's user avatar
0 votes
0 answers
43 views

How to use gdal exceptions in .NET?

I'm converting a .vrt to a .tif with Gdal.wrapper_GDALWarpDestName(). I know the .vrt has been calculated to a size that causes an integer overflow error during warping because the command line ...
gisdude's user avatar
  • 535
0 votes
0 answers
55 views

Warp result of GDAL translate jpg to geotiff using osgeo.gdal

I am attempting to warp a geotiff created from gdal.Translate where the original file was a jpg. I first obtain the ground control points from a co-located text file. The results of gdal.Translate ...
jclark754's user avatar
  • 111
1 vote
0 answers
97 views

Warnings on converting NetCDF using gdalwarp

I have a curvilinear NetCDF file, which currently has a single time step (for a mean across time). The variable I am looking at is DIC at a single depth. I am trying to convert this NetCDF file to ...
summer r's user avatar
0 votes
0 answers
66 views

GDAL warp removing half of the map

I am using gdal warp to transform a geotiff between espg:4326 to epsg:3857, I have successfully done this previously on similar images but with the current geotiff it doesn't seem to be working. I am ...
james hall's user avatar
1 vote
1 answer
157 views

Converting map from 0 to 360 to -180 to 180

this is second part of How to convert VICAR data to TIFF. I was able to get the VICAR data into TIFF form by using VICAR2isis to make a .cub then gdal to make a tiff. (Yes i eventually found out I ...
GISGirl94's user avatar
1 vote
0 answers
167 views

Why use gdalwarp add -wo NUM_THREADS=ALL_CPUS is slow than don't use this option?

I try to test then reproject run time by use QGIS's toolbox-->Warp(reproject) on Windows 10, I find use gdalwarp add option -wo NUM_THREADS=ALL_CPUS is slow than don't use this option. this is the ...
moringwolf's user avatar
3 votes
2 answers
208 views

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 "...
Tom Brennan's user avatar
  • 5,249
0 votes
1 answer
177 views

Passing geometry dataset type to gdal.Warp() for a clip operation - order of operations and file type confusion

Trying to wrap my head around the correct order of operations and file type(s) required by gdal.Warp(). I have a valid geometry object created from the shapely object.unary_union.convex_hull method. ...
bashity's user avatar
  • 109
1 vote
0 answers
35 views

Bad values with gdalwarp and "aliased" coordinate transformation

I've strange values using gdallocationinfo on vrt with coordinate system transformation. Here is my use case, maybe you can help to understand what I did bad or misunderstood 1) I've got a bunch of ...
nono303's user avatar
  • 61
1 vote
2 answers
411 views

QGIS 3.28 - cannot find GDAL commands / MacOS 12.5

I am having trouble linking QGIS to GDAL since a few versions (just updated to 3.28 hopping it would solve the problem but it didn't). For instance, a Wrap function returns this error: GDAL command ...
e5k's user avatar
  • 160
1 vote
2 answers
256 views

Reprojecting each tif located in Folder Directory using GDAL in Python [closed]

Python beginner here. I am using python to reproject a folder of rasters (.tifs). Each raster has a projection that I want to change to WGS 1984 (espg:4326). I want to use an open-source GIS library ...
Connor Garrett's user avatar
1 vote
1 answer
156 views

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 ...
Tom Brennan's user avatar
  • 5,249
4 votes
1 answer
186 views

gdalwarp sum resampling algorithm double counting at some specific resolutions

GDALWarp utility is double-counting my pixels in the sum algorithm for resampling in some cases. I don't believe it's something I'm obviously doing wrong. I have a file, at 30 arcsecond resolution for ...
William Abma's user avatar
1 vote
1 answer
35 views

FAILURE : No target filename specified

path = '/mnt/Data/30_Stages_Encours/2023/ZonesHumides_Sarah/donnee_dezippee/sentinel2/2020/' dir = os.listdir(path) for i in dir : # i = SENTINEL2X_20200415-000000-000_L3A_T31UES_C_V2-1 if i....
sam's user avatar
  • 33
0 votes
0 answers
42 views

gdal.Warp reading 2d multichannel array incorrectly - loading bands (3) as the y axis

We have a python script that downloads NOAA GOES satellite NetCDFs, and processes the image datasets via Pillow\OpenCV. Then I convert it back to a GDAL dataset in order to translate and warp. With a ...
John Lawler's user avatar
1 vote
1 answer
319 views

gdal.WarpOptions not accepting srcBands argument?

Defining as follows: warpoptions = gdal.WarpOptions(format = 'GTiff', outputType = gdal.GDT_Float32, srcBands = [1], dstBands = [1], dstSRS = 'EPSG:4326', dstNodata = 0, resampleAlg = 'cubicspline', ...
John Lawler's user avatar
4 votes
1 answer
470 views

How to get Amersfoort 28992 in QGIS?

I am currently analysing landscape change in the Netherlands, for which I am using maps which have Amersfoort 28992 as their standard CRS. However the most recent map uses Amersfoort 4289 instead. For ...
Hartje's user avatar
  • 153
0 votes
0 answers
91 views

Contours of a DSM render slowly

I am comparing two digital surface maps (dsms generated from drone photogrammetry) taken at two times. The contour lines render quite quickly for one (in seconds) and quite slowly for the other (1–2 ...
Alan Harper's user avatar
2 votes
1 answer
91 views

How to avoid gdalwarp converting to alpha band

I am running the following code in order to resample a single-band TIFF file, whose data are going from 0 to 100 with 255 being the nodata value "gdalwarp -t_srs "+srs+" -tr "+pxsz+...
Andrea's user avatar
  • 69
2 votes
0 answers
203 views

How to solve antimeridian split using GDAL

I'm fairly new to GIS and GDAL. But I need to solve the problem with anti-meridian. I have satellite images from Meteor-M2 that can span over -180 / 180 longitude. I created .vrt file with correct GCP ...
dernasherbrezon's user avatar
0 votes
1 answer
55 views

Can't use Polygon to Clip Raster

I created a polygon to use to clip a DTM raster (DEMTiff), but the Clip by Mask tool gives an error: GDAL command: gdalwarp -overwrite -of GTiff -cutline temp.shp -cl temp -crop_to_cutline "D:\\...
Jeff C's user avatar
  • 1
1 vote
0 answers
42 views

Julia - Write KMZ file with transparency

I'm trying to save a .kmz file from a dataset representing a DEM of an area stored in a GeoTiff file. My code is reading the DEM, transforming the CRS to UTM, and defining a subset based on ...
Stefano Moro's user avatar
1 vote
0 answers
394 views

Run gdalwarp to rectify a raster (RPC embedded) with DEM but got error: Too many points failed to transform, unable to compute output bounds

I've been trying to rectify an unprojected raster (with RPC model) with digital surface model (DSM) by using gdalwarp command. Here is the command: gdalwarp \ -co BIGTIFF=YES \ -co "TILED=YES&...
Lion Lai's user avatar
  • 258

1
2 3 4 5
16