All Questions
528
questions
0
votes
0
answers
42
views
GDAL Warp extremely slow on Python API
I am trying to export one VRT to TIFF using GDAL Warp. My VRT has some scale, offset, reprojections, etc, but nothing too crazy.
I have observed that trying to perform the warp from the Python API is ...
1
vote
1
answer
407
views
GDALWarpOperation in C++ with cutline
I am currently trying to crop a raster by mask layer using the C++ GDAL API. I am using the GDALWarpOptions struct.
GDALWarpOptions *psWO = GDALCreateWarpOptions();
I then enter all the necessary ...
2
votes
2
answers
384
views
Transform stereographic projection using GDAL
How can I read/wrap a JPG image without any embedded projection/coordinate system to an autoreferenced GEOTIFF with Mercator or similar coordinate system using GDAL?
The image is 500x500 px and I ...
0
votes
2
answers
195
views
Cannot extract by mask using gdalwarp
I am trying to extract data from a raster file using a Shapefile mask. QGIS suggests the following command:
gdalwarp -of GTiff -cutline SanFernando_basin.shp -cl SanFernando_basin -crop_to_cutline ...
1
vote
0
answers
31
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 ...
0
votes
2
answers
1k
views
Problem with gdal.WarpOptions concerning reference
I have a tiff file that I want to crop down to a shp cutline and reproject.
If the code is:
clip_spec=gdal.WarpOptions(format='GTiff',cutlineDSName=os.getcwd()+'/moksha/DEM/cutline2.shp',cropToCutline=...
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 ( ...
6
votes
2
answers
2k
views
Gdal warp cutline overhang
I'm currently trying to cutline crop a tif with a shapefile and no matter what I do I have pixel either overhanging the cutline or being cropped too early.
So here is an example picture of what is ...
0
votes
1
answer
184
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. ...
1
vote
1
answer
192
views
Python GDAL Warp netcdf creating NaN values at 360 longitude
When I attempt to use GDAL warp to reproject from 1.875x1.25 to 0.5x0.5 res NaN values are produced at the 360 longitude mark. The data is in NetCDF format. Using average or mode resampling algorithm ...
3
votes
1
answer
829
views
How to blend edges of aerial imagery with gdalwarp
I need to fade/blend the edges of a series of aerial images with gdal. The closest thing that I've been able to accomplish is using the -cutline and -cblend switches of gdalwarp to get the edges to ...
1
vote
1
answer
256
views
GDAL - NetCDF to colorized raster
I have a NetCDF file that is satellite imagery. I would like to convert it to a raster image, with color, using gdal on the command line.
Here is what I have so far:
gdal_translate -unscale NETCDF:&...
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 ...
7
votes
3
answers
2k
views
gdalwarp cutline without using a shapefile
I'm currently working with gdalwarp to split some tiffs.
gdalwarp -cutline file.shp -dstalpha -of GTiff image.tif split_image.tif
I wanted to know if I can use an other source rather than use a ...
1
vote
0
answers
43
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 ...