Skip to main content

Questions tagged [clip]

To limit or reduce the extent of one dataset by the extents or boundary of another.

69 votes
2 answers
225k views

Reading shapefile in Python [closed]

My question is an extension of Vertical lines in a polygon shapefile. There you will see a method of generating vertical lines with respect to the bounding box, at user-defined spacing. I understand ...
Akhil's user avatar
  • 1,435
68 votes
5 answers
137k views

Clipping raster with vector boundaries using QGIS

In QGIS I would like to clip a raster precipitation layer using an admin boundary layer that is vector data. However the Geoprocessing tools seem to be usable only for vector data. How can I clip this ...
Kirk's user avatar
  • 681
39 votes
6 answers
29k views

Increasing speed of crop, mask, & extract raster by many polygons in R?

I'm extracting the area and percent cover of different land use types from a raster based on several thousand polygon boundaries. I've found that the extract function works much faster if I iterate ...
Luke Macaulay's user avatar
37 votes
11 answers
114k views

Performing reverse clip in ArcMap

Is there a way to perform a 'reverse' of the clip function in ArcMap? I am not exactly sure how to explain this so here is a diagram:
Alan Carr's user avatar
  • 2,473
37 votes
2 answers
83k views

Clipping raster in R

I am building a map for the northeastern U.S.A. The map background needs to be either an altitude map or a mean annual temperature map. I have two rasters from Worldclim.org which give me these ...
I Del Toro's user avatar
29 votes
3 answers
76k views

Cropping raster layer using QGIS?

How do I crop a raster layer in QGIS? I want to make contours from a section of a layer, and including the whole layer will create far more data than I need and slow down the rendering. I have ...
Graham vdR's user avatar
28 votes
4 answers
23k views

Crop simple features object in R

Is there a function to crop sf map object, similar to maptools::pruneMap(lines, xlim= c(4, 10), ylim= c(10, 15)) used for SpatialPolygon or SpatialLine? I am considering st_intersection() but there ...
Kazuhito's user avatar
  • 31k
26 votes
4 answers
27k views

Rasterfile clipping error: Cannot compute bounding box of cutline

I have a raster file and want to clip it, a vector file is supposed to be the mask layer. I use the most obvious method (Raster->Extraction->Clipper). No matter what I do, I get this error (see ...
Shepherdjo's user avatar
  • 2,276
21 votes
3 answers
11k views

Reverse clipping (erasing ) in R?

A reverse clip saves only the part of your spatial object that is outside the bounds of another object, as opposed to a regular clip which saves the parts that are inside the other object. ...
RobinLovelace's user avatar
19 votes
3 answers
29k views

How to perform a true GIS clip of polygons layer using a polygon layer in R?

I would like to do a true GIS Clip in R of soils polygons using a series of single boundary polygons, but I cannot find an R function to properly do it. It should work just like the clip function in ...
user29199's user avatar
  • 191
18 votes
4 answers
43k views

Clipping line layer based on polygons with QGIS

I have a line layer and a polygon layer. Both files have the same SRS. I want in a new shape file only the lines covered by the polygons. I tried in QGIS the Vector -> Geoprocessing -> Clip ...
ustroetz's user avatar
  • 8,024
18 votes
3 answers
37k views

Differences Between Clip Tool and Intersect Tool

How is the clip tool different from the intersect tool in terms of how it works or the result? I don't have a specific situation in mind. I was learning about each of these tools and was curious about ...
Diana Di Leonardo's user avatar
17 votes
2 answers
36k views

Cut polygon shapefile by line shapefile

I have two shapefiles, a polygon shapefile (lake) and a line shapefile (boudary) I want to create a new shapefile "polygon to the north of the boundary" What tool can I use in QGIS or other ...
jirikadlec2's user avatar
  • 1,330
17 votes
2 answers
14k views

Snapping raster grids in R

I am trying to align two raster grids in R. Once aligned I would like to be able to add them together. I have tried to check whether making a stack would work: grid_snap <- stack(habi_sdw, ...
DI1's user avatar
  • 311
17 votes
4 answers
19k views

Gdal: clipping a raster with another raster

I'm writing a simple utility to crop batches of multi-band geotiff raster files to the same (smaller) area. Using gdalwarp, I can easily crop a file using a single-polygon clipping shapefile: ...
Joe's user avatar
  • 435

15 30 50 per page
1
2 3 4 5
92