All Questions
11
questions
2
votes
1
answer
91
views
Calculating common area between shapefiles using GDAL
I'm looking for a way to get the intersection area between my shapefiles.
Basically, I got three shapefiles from my .tif files like this:
gdaltindex a.shp a.tif
gdaltindex b.shp b.tif
gdaltindex c.shp ...
1
vote
1
answer
137
views
Coordinate Operations Error for NAD83(2011) Alaska Zone 1
I am receiving the following error below when running gdalwarp to crop an input orthomosaic in the NAD83(2011)-Alaska Zone 1 CRS. The command still runs and the output cropped TIFF file renders fine ...
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 ...
0
votes
1
answer
554
views
Converting shapefile to raster by passing specific column/variable using GDAL in Python
Followed the steps from this link to create raster from shapefile using GDAL
Convert an OGR File to a Raster
but it is returning an empty raster.
Can someone tell how to define a particular column ...
3
votes
3
answers
7k
views
Clipping GeoTIFF with shapefile?
I have a GeoTIFF file and a shapefile. I want to clip the GeoTIFF file using the polygons defined in the shapefile in such a way that it produces a separate output for each polygon (which is different ...
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 ...
0
votes
2
answers
189
views
Clip raster using multiple country shapefiles
I currently use gdalwarp to clip a GeoTIFF file using a single shapefile. However, I would like to have the option of creating a clipped GeoTIFF file using multiple countries together.
Is using GDAL ...
5
votes
4
answers
3k
views
Clip raster with shapefile and set a value outside the mask
I want to clip a raster using a shapefile with the command:
gdalwarp -cutline INPUT.shp INPUT.tif OUTPUT.tif
From this answer. However I want to set the pixels outside the mask to a particular value ...
3
votes
3
answers
5k
views
mask raster with shapefile using gdalwarp/gdal
I am struggling to use gdalwarp with cutline option.
The following command keeps failing and I do not understand why :
gdalwarp -cutline shapefile.shp file.tiff newfile.tiff
Warning 1: Self-...
2
votes
1
answer
1k
views
Clipping a coloured raster with polygon shp in gdalwarp changes original values, why?
I need to clip my raster based on a polygonal shapefile, basically leave raster values inside the polygon shape (inside red perimeter in the figure below) as shown here:
Therefore, I use:
gdalwarp -...
16
votes
2
answers
7k
views
Clip raster by shapefile in parts?
I am trying to write .sh script command to clip raster by polygonal shapefile. Shapefile have name field with unique name of polygon feature. On the output must be rasters with name of polygons in ...