Clipping is the restriction of a spatial feature to a polygonal region, often a rectangle.

learn more… | top users | synonyms

11
votes
2answers
4k views

Clipping a 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 ...
10
votes
3answers
230 views

How can I parallelise embarrassingly parallel GIS operations in QGIS python?

A common requirement in GIS is to apply a processing tool to a number of files or apply a process for a number of features in one file to another file. Much of these operations are embarrassingly ...
9
votes
4answers
4k views

How to Batch Clip in ArcGIS Desktop 10 using Python/ArcPy?

I've come across a few similar questions for older versions of ArcGIS, but haven't found a suitable answer for ArcGIS 10. I have two polygon shapefiles that cover a large area (e.g. an entire ...
8
votes
5answers
3k views

Performing a reverse clip in ArcMap?

Is there a way to perform a 'reverse' of the clip function in ArcMap, I'm not exactly sure how to explain this so here's a diagram:
8
votes
5answers
2k views

How to get an ocean shapefile from a very detailed land area shapefile?

I am looking for a possibility to "invert" a shapefile. What I want to do is to convert a shapefile with the continents and islands into a shapefile that has water polygons. The existing ocean ...
7
votes
6answers
5k 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 pic): ...
6
votes
2answers
1k views

Best way to clip a large raster ECW file ?

I am trying to clip a large ECW (details below) but the raster file is too big to be processed entirely. Some details of the ECW below Driver: ECW/ERDAS Compressed Wavelets (SDK 5.0) file size: ...
6
votes
2answers
1k views

Clip Spatial object to bounding box in R

Given a Spatial object in R, how do I clip all of its elements to lie within a bounding box? There are two things I'd like to do (ideally I'd know how to do both, but either is an acceptable solution ...
5
votes
1answer
2k views

How do I correctly use 'MultiValue' in Python script parameters?

My script works fine with a single feature class selected for clip_fc = arcpy.GetParameter(0) . However when I set clip_fc to MultiValue in the script properties and then select several feature ...
5
votes
2answers
3k views

ArcGIS 10 Python script to search directories and subdirectories for intersects and clip them

I'm trying to develop a tool that queries our company's data stores for any data that intersects a feature. So when we acquire a new property we can run this tool and it will find all of the data we ...
5
votes
2answers
461 views

Clip polygons with other polygons based on matching attributes

I have two shapefiles, one which contains event locations and the the other of which represents regions where events take place. Events polygons with year and region_name attributes Regions ...
5
votes
2answers
5k views

How to clip a vector feature to the extent of an existing raster dataset using arcpy

I have a clipped raster dataset with polylines (from the contour tool) overlayed (see attached). I am trying to clip the polylines to the extent of the raster dataset, which seems simple enough, but ...
5
votes
2answers
1k views

How to interpolate while providing clipping geometry? (ArcGIS 10)

Is there a way to interpolate (IDW) while providing clipping geometry? My objective is that I want to interpolate temperature data but I do not want it to interpolate the entire extent of the point ...
4
votes
5answers
7k views

Cutting features to do opposite of clipping in ArcGIS Desktop?

What´s the easiest/smartest way of getting the opposite output of the clipping tool? I just need the area of feature A1 which is not covered by feature A2 in a new Layer/File. Now, I get the result ...
4
votes
2answers
1k views

How to get an extent for Raster using python

I have to get an extent of a given raster so that I can save it and use the same to clip another raster with that extracted extent. As of now I am stuck in the extent part. import arcpy from arcpy ...
4
votes
1answer
916 views

What is the distinction between Difference and Clip in QGIS?

What is the primary distinction between the Difference and Clip geoprocessing tools in QGIS?
4
votes
2answers
3k views

Differences Between the Clip Tool and the 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 ...
4
votes
1answer
215 views

How to 'reverse clip' (erase) 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. Here's how ...
4
votes
1answer
121 views

Arcpy error message: 'Layer' object is not subscriptable?

What the code does successfully so far, is gets a list of the layers in the first data frame of the current map. What it doesn't succeed in doing is, joining the layer names to the gdb location using ...
4
votes
1answer
999 views

Why does QGIS's Clipper tell me “Computed -srcwin falls outside raster size” and how do I address it?

I'm trying to clip a heightmap to a small area that I'm interested in. When I attempt to use Raster > Extraction > Clipper I get an error dialog with the message ""Computed -srcwin falls outside ...
4
votes
3answers
371 views

How to subset X number of features from Shape file in QGIS

I'm looking for a means to take a rather large Shape file and split it out into separate, smaller shapefiles based on number of features. So for example, if I have a file with 1 million features, ...
4
votes
3answers
1k views

How to Clip a Vector File based on certain Raster Values?

I need to clip a vector file based on certain values of a raster (Slope > 2%). I can´t find a direct way to do it. Trying to vectorize the raster first didn´t work. Is there any tool (ArcGIS or ...
4
votes
1answer
83 views

Cutting Raster using two Polygons as Masks

I am trying to cut this raster in order to drop the outside of the walls white area and the area with the dots. I made one step using as mask the green polygon but i couldn't remove the inside of the ...
4
votes
1answer
242 views

Clip polygon and retain data

I have these two polygons: library(sp); library(rgeos); library(maptools) coords1 <- matrix(c(-1.841960, -1.823464, -1.838623, -1.841960, 55.663696, 55.659178, 55.650841, ...
4
votes
1answer
141 views

Can QGIS perform graphic clipping?

In ArcGIS for Desktop there is an option to graphic clip inside the data frame - this clips the feature you're viewing without actually clipping the feature into a new feature. Does Quantum GIS have ...
4
votes
0answers
51 views

Is there a limit to the number of polygon points you can export to CSV in QGIS 2.4?

Using QGIS 2.4 I am currently importing a csv file with ~30,000 polygons (polygons in WKT format). I also have a United States shapefile. I have used the Clip function to get only the polygons that ...
3
votes
5answers
10k views

How to cut one ESRI Shapefile with another ESRI Shapefile? [closed]

I have one ESRI Shapefile as a map with many objects in it. I have another ESRI Shapefile only with borders in it. This shapefile is bigger in size (covering a bigger area) with many border lines. ...
3
votes
2answers
1k views

Is there a way to get at C's OGRLayer.Intersection() or OGRLayer.Clip() in Python?

I am working with OGR in Python and noticed that the C libraries have useful Intersection() and Clip() functions as part of the Layer class. Is there any way to get at these functions in Python? I ...
3
votes
2answers
771 views

Batch Clip in ModelBuilder of ArcGIS for Desktop?

I have multiple rasters and feature classes that I want to clip to a study area. I am pretty new to ModelBuilder. I know you can right click the clip tool to batch clip outside of ModelBuilder but ...
3
votes
1answer
460 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 free ...
3
votes
2answers
1k views

How to clip polygons with a fishnet layer?

I have a layer with multiple polygons (input) and a fishnet layer in polygon (clip layer). I want to clip the multiple polygons with the fishnet to be able to calculate how big portion of the input ...
3
votes
1answer
837 views

clip linestring by length

Is there a way to clip a linestring based on distance? For example, linestring from a to b is 150 meters. I would like to get the linestring from a to a point that is is 75 meters away from a ...
3
votes
2answers
394 views

Creating donut holes without losing existing polygons using ArcGIS for Desktop?

Using ArcGIS 10.1 for Desktop is there a way to do a similar operation to creating a donut hole or island in a polygon without losing the existing features? I have mapped small lakes as several ...
3
votes
1answer
85 views

Most efficient way to batch clip in FME?

I have one large shapefile and 100 smaller shapefiles that are smaller areas within the large shapefile. Using the Clipper transformer, I want to clip the large shapefile using each of the smaller ...
3
votes
1answer
547 views

Is Clip (Data management) or Extract By Mask (Spatial Analyst) more efficient?

I'm trying to clip down an Orthophoto to a county boundary. I've been using the Extract By Mask Tool, but this process has been running for about 12 hours! It's gone through 2 cycles already, so I'm ...
3
votes
2answers
230 views

Is there a way to call the clip function in pyQGIS from the python console?

Is there a way to call the clip function in QQGIS from the python console? It is found under geoprocessing tools in the vector menu.
3
votes
2answers
291 views

How to clip from a point layer using postgis?

I've loaded a LIDAR xyz file into a PostGIS2.0 database and created a 3D point geometry column ("tblCLOUD") from the data. I've also loaded into the database a shapefile that contains six ...
3
votes
1answer
3k views

How do I clip/mask a satellite photo to a polygon?

Given a shapefile composed of contiguous polygons, I'd like to clip (or mask) regions of satellite photo to the polygon outlines, and export each resulting raster in medium resolution for further ...
3
votes
2answers
74 views

Clipping multipart polygons iteratively

I have a shapefile of buffers (n=10) and a shapefile of watersheds (n=10). Both shapefile contain overlapping features. I would like to clip each watershed feature with it's corresponding buffer, ...
3
votes
2answers
49 views

How to clip vector data from raster data?

I have two files: National land cover data (raster) HUC 8 (vector files of watersheds) Both are national scale but the HUC 8 takes up a larger geographic region than the raster set so I want ...
3
votes
3answers
887 views

Is it possible to batch clip rasters in Quantum GIS?

I have been able to batch clip rasters in one directory using python in ArcGIS. However, I am not sure how to do the same in Quantum using the python console. Is this possible? If there are different ...
3
votes
1answer
640 views

How to Get the Three Nearest Points to an Object (different layer)?

I have two point shapefiles and I want for each point in the 1st shapefile to get the 3 closest (based on air distance) points from the 2nd shapefile. If possible, it would be great to have each of ...
3
votes
1answer
161 views

shapefile batch clip and merge combined

I have two shapefiles, one is polyline, the other polygon. For each polygon I would like to clip the polyline vectors inside. Using arcpy I already found part of a possible solution: ...
3
votes
1answer
676 views

How Can I Clip a Basemap with an ascii file?

I'm new here but with many doubts.I work with ArcGIS 10 and I add a basemap layer from the ArcGIS online but I just want the continent coverage to my map,and the area that I wanted I have an ascii ...
3
votes
2answers
1k views

Image does not display after clipping raster

I am using ArcGIS 10. I am trying to clip an NLCD layer from a vector polygon. I have used the Clip Raster tool in Data Management and Extract by Mask tool in Spatial Analyst among other things. My ...
3
votes
2answers
2k views

ArcGIS 10: How to clip point buffer to features in another layer?

I'm on a steep learnig curve here, so aplogies if my question is a one-banana problem. In ArcGIS 10 I have a contour layer that was generated from an ESR ASCII raster file (batyhmetry of the South ...
3
votes
2answers
1k views

How to fix for the GDAL clipper tool in QGIS?

I would like to clip a DEM with an admin boundary using qgis, in order to calculate a measure of variation. However, when I use the Raster clipper tools and select mask, I get the error message: "An ...
3
votes
1answer
67 views

Selecting Cells in a raster layer

I am working on a watershed analysis project. The goal of the project is to create a model that will simulate changes the effect that different land uses will have on the watershed as a whole. Using ...
3
votes
2answers
267 views

Determine density or cover from a raster layer that has been clipped by a polygon

I am a very new GIS user using ArcMap 10. I have a raster layer of tree canopy that I have clipped so that the layer is in a polygon that is a circle with a 2km radius. I have done this for four ...
3
votes
1answer
322 views

ArcGIS Server 10 GP Service Cannot Download Result?

I have implement the ArcGIS JavaScript example just like the ESRI official example (clip and ship) .Everything was going right except the final step ,when the gp job have finish and my browser lead me ...