Questions tagged [clip]
To limit or reduce the extent of one dataset by the extents or boundary of another.
1,372
questions
3
votes
2
answers
84
views
QGIS: Clipping lat/lon points to raster file based on threshold value
Let's say I have an excel file that has a large number of lat/lon points that can be brought into QGIs such as:
I then also have a raster layer that looks like the following:
Each color in the above ...
4
votes
1
answer
124
views
How to use ogr2ogr's spat_extent keyword to clip a layer of a GPKG file?
I am trying to clip geometries within a GPKG file using a bounding box. I write an L-shaped line to a file:
import geopandas as gpd
import shapely.geometry
l = shapely.geometry.LineString([[0,2],[0,-...
1
vote
0
answers
69
views
Crop Sentinel-2 raster using a geometry leaves pixels around the edges
I want to crop Sentinel-2 images using a geometry. However, whenever I crop my image, there are some pixels around the border of the raster. For example, the image below is the band 2 of sentinel-2 ...
3
votes
1
answer
107
views
Cropping georeferenced map JPEG within QGIS
I have a geology map I georeferenced in QGIS, but I want to crop out the edges/margins/legend because I have other geology maps I want to georeference and stitch next to it, but the unused margins of ...
1
vote
0
answers
69
views
How to crop digital elevation .tif file by coordinates with GDAL
I am using SASplanet to download satellite imagery. It has coordinates like in the photo.
I want to crop larger downloaded DEM .tif file of Austria to that same coordinates, so cropped dem file will ...
0
votes
0
answers
65
views
Terra/geodata world map cropping issues, possibly due to truncated extent
Cropping geodata world map across Greenwich (not exactly though) or close to the poles gives a "Topology Exception" error on RStudio (Posit) cloud, although not on RStudio desktop. Also, the ...
0
votes
0
answers
69
views
Getting max value of "HeightAboveGround" inside polygons from point cloud
I have geojson file with polygons of tree locations and labels "Tree" (~5,300 polygons). And point cloud made from aerial images and points have extra information "HeightAboveGround&...
0
votes
0
answers
25
views
Sum rasters without clipping
I'm using Raster Calculator in ArcMap.
Is there a way to make operations between rasters in a way that the output raster is not clipped with the same extent of the smaller raster considered in the ...
2
votes
0
answers
50
views
How to clip precipitation layer to a shapefile in QGIS?
I downloaded a 4000m resolution precipitation dataset from ClimateEngine. I tried clipping by mask layer and the clipped raster doesn’t fill out the shapefile leaving major gaps. What can be done so ...
0
votes
2
answers
152
views
Access window out of range in RasterIO(). Requested (0,0) of size 232x608 on raster of 231x608
I'm trying to clip one raster by the other to have the same size.
I use this code to do so :
IMG1 = gdal.Open("C:/Users/aurel/Downloads/2013-10-26.tif")
IMG2 = gdal.Open("C:/Users/aurel/...
0
votes
0
answers
52
views
Ogr2ogr Clipping data using SQL Server database object for input and overlay
I am trying to understand the ogr2ogr comands for clipping. At this moment I want to clip data using SQL Server database object (dbo)
It did try but no success.
ogr2ogr.exe -f "GPKG" "...
1
vote
0
answers
36
views
How to clip selected polygon with ogr2ogr
I have a problems with clipping two vector layers. 1 with 7 polygons (layer-A) and the other has many polygons (Layer-B).
When i start clipping with Layer-B as input and Layer-A as overlay a get a ...
1
vote
1
answer
69
views
Iterate feature classes then clip, but skip if output is empty
I want to make a ModelBuilder tool that takes shapefiles from a specific folder and clips them. The shapefiles cover an entire country and I have to clip them to project areas when we have new ...
0
votes
0
answers
34
views
Getting rid of parts of the polygon [duplicate]
I have thousand of polygons which have parts in it which I want to get rid of. How do I do that with QGIS not with POSTGIS? The picture below shows an example. I want to get rid of the parts which I ...
0
votes
2
answers
82
views
Rasters not having the same total area for classes within the same study area
I have multiple rasters for various data: LULC, Elevation classes, Slope steepnees classes, Soil types.
All those rasters have the same properties: all have the same number of columns and rows; same ...