Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [clip]

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

1
vote
1answer
22 views

Clipping Vector by Custom Raster Extent in QGIS?

I have a raster image (elevation map from DEM) where I have limited the rendered elevation to only 3,500' and higher. I would like to convert the boundary/extent of this rendered image into a vector ...
1
vote
0answers
10 views

QGIS quit unexpectedly

Running QGIS 2.18 on Mac OS 10.14. Python 2.7 and GDAL 2.1 installed. Trying to clip raster by polygon. (raster--> extraction --> clipper) Get error message. ("qgis 2.18 clipper The process failed ...
0
votes
0answers
6 views

VeloxRaster_crop returns numeric

Curious as to why the following only returns a numeric vector with row and column information rather than a cropped raster: ras <- velox("dir.tif") cty <- st_read("cty.shp") ras <- ras$crop(...
2
votes
1answer
22 views

Isolating and exporting specific sections of a shapefile in QGIS?

If I have a shapefile layer in QGIS showing the spatial boundaries of subsections of a larger area (e.g. counties within a state, or countries within a continent), how would I selectively crop out one ...
0
votes
0answers
13 views

Clipping features with the attributes of another feature

I have a vector polygon for a catchment which contains numerous subbasins. In addition, I also, possess another vector polygon showing the impervious areas of the catchment. What I want to do is ...
0
votes
0answers
15 views

Raster layer not clipping to polygon boundary and yielding block extent in ArcMap?

I am using ArcMap. I want to graphically display my NDVI distribution, but I had to convert my NDVI raster layer from continuous values to integer in order to view the attribute table (I used the ...
0
votes
0answers
17 views

Clipping raster to fit smaller one using QGIS? [duplicate]

I have a classificaton map of the France vegetation and i want to clip it to fit with my Sentinel-2 tile. How can I do that with QGIS?
0
votes
1answer
14 views

Batch processing of GDAL clip function

When I am trying to batch process GDAL clipping in QGIS 2.18 with 30 raster files I get the following Error: GDAL command output: ERROR 1: Cannot compute bounding box of cutline. My ...
0
votes
0answers
18 views

Clipping shapefiles using point grid references

I imagine this is a simple answer but I'm struggling to find information on clipping a shapefile using grid references. I'm using ArcMap 10.3.1. My shapefile is a line feature of mean low water and I'...
0
votes
0answers
17 views

For ArcGIS Pro - What if you need two iterators in one model? Looking to batch clip multiple shapefiles with a Feature Selection iterator?

I am working on a series of maps in ArcGIS Pro, matching wind speed and direction with a modeled migratory path of 19 sparrows for the month of April. The wind speed and direction shapefiles are from ...
-1
votes
1answer
21 views

Clip a raster based on the extent of another raster in ArcMap

I need to clip a raster to extract only the surface in common with another raster. How can I do that in ArcMap?
-1
votes
0answers
34 views

Can't use “Clip” in QGIS 3.6 Noosa

I am using "Clip" to sort out all the fire stations that within the boundary of a city, which is a practice from the book, Mastering QGIS(second edition). However, my QGIS 3.6 Noosa goes wrong with ...
2
votes
2answers
68 views

Is there a way to clip a layer with a shape from another layer in `sf`?

I would like to get the greens polygons that intersects (or overlapsed) the red outlined polygon (see image below). I tried sf::st_intersection() but the polygon in yellow (yes that just one polygon) ...
0
votes
1answer
24 views

Batch clipping rasters using ArcPy?

Am trying to clip multiple rasters but getting a runtime error, what could be the problem with my code import arcpy, os arcpy.env.workspace = r"E:\Geos4s\GeoS4S Module Geospatial Support for Arid ...
2
votes
1answer
31 views

Determining if raster can be clipped with polygon using ArcObjects?

Using ArcGIS 10.4.1 ArcObjects with geoprocessing. I have an input feature class with 100s of polygons and also one raster. I iterate through each polygon and clip the raster and then do additional ...
0
votes
0answers
16 views

Error when clipping a raster and saving it to a gdb other than the Default.gdb

I have several large Raster-Datasets stored in a Geodatabase (Example.gdb). I created polygon-shapefiles to clip the Rasters to the extend which I actually need. This works fine, as long as I save the ...
0
votes
0answers
13 views

Layers not overlapping and not clipping the layer [duplicate]

Does anyone have an idea about two layers are not overlapping on one another? I have one raster and one vector layer, I wanted to clip or extract by the mask of my raster by using shapefile but it's ...
0
votes
1answer
21 views

GRASS GIS - Keep raster below/above surface

I would like to clip raster where the surface intersect another surface and keep elevations that are below only. I am interpolating a vector into a 2D raster (v.surf.rst) for properties at a given ...
0
votes
0answers
33 views

Different values between original raster and cropped raster with rasterio.mask

I have a large sentinel-2 image and I want to clip it according polygons which are stored in a geojson file. My code is: df = gpd.read_file(os.path.join(geojson_folder,geojson_file)) df.head() ...
5
votes
0answers
83 views

Clipping rasters to mask layer QGIS 2.18, 3.4, 3.6 not working [closed]

Having a problem clipping a singleband GEOTIFF of Canadian land uses to a vector Quebec provincial boundary. When I do Raster -> Extraction -> Clip by mask layer, the program processes endlessly. I ...
0
votes
2answers
80 views

QGIS Data Frame Clipping for Basemaps

In ARCGis its possible to Clip your Data Frame so you just see the Data within the defined area. Like shown here: https://www.cdc.gov/dhdsp/maps/pdfs/GIS-Tips-Data-Frame-Clip-Function.pdf With this ...
1
vote
1answer
92 views

Extracting qualified image patches in Google Earth Engine?

I want to extract qualified (e.g., cloud-free) image patches (e.g. size of 128x128) in a large image (e.g. 10000x10000) in Google Earth Engine. These image patches can overlap with other qualified ...
1
vote
0answers
37 views

Clipping ocean water shapefile in QGIS [closed]

My requirement is to find a reliable source of Ocean water shapefiles, this is because OSM or Geofabrik does not provide this information. I eventually landed on this page: https://www....
0
votes
0answers
18 views

Errors Clipping a Vector: Invalid Geometry

I have a vector that was polygonized from a raster. I'm hoping to clip it within the boundaries of a certain shapefile "noFertZone" (the turquoise box). In the end I want a "noPKS" shapefile that only ...
1
vote
1answer
47 views

Clipping in PyQGIS2 working but error in PyQGIS3 (argument 1 has unexpected type 'str')

I am trying to clip streets by a layer with municipalities in them. I was trying to run this script in QGIS3 but obtain the error hereunder. Traceback (most recent call last): File "C:\OSGEO4~1\...
0
votes
1answer
28 views

Clipping Raster Mosiac Simultaneously Within Separate ArcPy Scripts?

I have a large raster mosaic dataset that I would like to clip within several scripts simultaneously, but whenever I run two instances of a script simultaneously one always fails with the error: ...
3
votes
1answer
73 views

Clipping a catalog with lasclipCircle returns “no point found within region of interest”

I'm trying to clip a catalog using lidR (v2.0.1) package. I've tried with lasclipCircle and lasclip. It gives me the error: no point in ROI, but when I'm viewing the shapefile using mapview (I've ...
0
votes
1answer
28 views

Shapefile, clip or project first when both are necessary

This is a question mostly out of curiosity, but I do it enough if there were a better choice I would stick with that. Using ArcMap 10.6, when a shapefile needs both clipped and projected is there an ...
1
vote
1answer
54 views

Clipping images using GDAL

I would like to clip some tiff files using cutline from kml file. .\gdalwarp.exe -of GTiff -co COMPRESS=LZW -cutline boundingbox.kml source.tif result.tif It works quite well but as a result I have ...
0
votes
1answer
38 views

Clip Data Layer to only include continental United States

I'm very much a beginner to ArcMap. Is there an easy way I can clip the Continental United States from this data layer and get rid of Alaska, Hawaii, and the other islands. I saw some tutorials ...
1
vote
0answers
21 views

Trouble matching SRTM data clip to slippy tile extents

I'm trying to extract the SRTM data for some slippy tile in QGIS, and it doesn't seem clipping to the right extents. Here are some of the data for the tiles that I'm using to test (this data comes ...
3
votes
2answers
66 views

Create a bounding box from point shapefile

I have a BigTiff image and an associate point shapefile with features. I would like to know how can I create a bounding box from that shapefile to create/clip images around that points to train a ...
0
votes
1answer
72 views

Clip tool in ArcGIS Pro not working?

I'm trying to clip "Terrain" raster I downloaded from the portal (https://www.arcgis.com/home/item.html?id=58a541efc59545e6b7137f961d7de883) in the shape of a polygon (a country's boundaries) by using ...
0
votes
0answers
23 views

How to mask a raster layer (interpolated surface) onto a polygon layer? [duplicate]

I have performed interpolation (IDW) for average monthly precipitation and temperature values for Europe. For my project, I'm focusing on the UK and Sweden so I'm wondering can I clip or mask the ...
0
votes
1answer
26 views

Reading raster in Python to Clip USGS 3DEM?

I want to clip the elevation data (3DEM) downloaded from USGS website. The raster-clip tool "Clip (data management)" in ArcGIS Pro works very well. However, I cannot clip it using the python function "...
0
votes
1answer
33 views

Clip linesegment at a polygon boundary using turfjs

Having a linestring and a polygon, Is there a way to clip the linesegment at the boundary of the polygon and retain the shape of the linestring which runs inside the polygon? Example Linestring { ...
1
vote
0answers
32 views

PyQGIS clip results in empty layers

I am creating a Python/PyQGIS tool in QGIS 2.18 which combines a few functions: Extract several attributes from source layer Redefine a coordinate system Optional: clip the source layer with a ...
0
votes
1answer
72 views

Clip bathymetry raster file from vector mask layer its not working in QGIS 3.4.3

I'm trying to extract bathymetry of Mediterranean Sea raster GeoTIFF file (downloaded from https://www.bodc.ac.uk/data/hosted_data_systems/gebco_gridded_bathymetry_data/gebco_30_second_grid/) from ...
0
votes
0answers
11 views

Clip the underlying map into several separate layers at once based on the rectangular fishnet

This is the final map of yield data. In order to see the details at a finer level, I want to cut the sections of the map overlain by the rectangular grid and display them as separate maps. Is it ...
1
vote
0answers
21 views

Polygon Clip While mainting Ratio Policy

In my project, I am using drivetime polygons to clip block group data to get the population in that drive time. The drive time shapefile I am testing on has 5 polygons. I want to update the population ...
1
vote
0answers
86 views

Rasterizing shapefile with rasterio and gdal gives all cells 0 values [closed]

I am trying to rasterize my shapefile (20 polygons) with rasterio and fiona and turn the new raster into a mask for clipping. I need to rasterize my all polygons in my shapefile and turn on mask ...
2
votes
0answers
32 views

How to export a single feature (line) from multiple layers and export to individual layers?

I have multiple vector layers representing a time series. Each layer contains many lines each. I want to select a single specific line from each of these these layers and save it to another layer. ...
0
votes
1answer
34 views

Clip Raster by Mask Layer to jpg not tiff

Is it possible to set your output file for the Clip Raster by Mask Layer tool as a jpg and not a tiff? Are there extra parameters or commands I can use to do this? I can export as tiff and convert ...
0
votes
1answer
44 views

QGIS: Clip a shapefile based on values in a raster

I would like to clip a shapefile based on the values of a raster file beneath it, using QGIS. The specific context is a shapefile of Local Government Areas overlaid onto a population density raster. ...
1
vote
0answers
31 views

R Clip Simple Features Multiple Polygons with a Polygon (or another multi-polygon)

I have two polygon layers, a set of aquifer polygons and a set of district boundaries. I'm trying to clip the aquifer layers to be in only the districts that I want. From examining the other posts ...
0
votes
0answers
49 views

Looping through Clip Raster By Mask function

I created a script to loop through the Clip Raster By Mask function. I assign my personal files to the variables and use a nested for loop to iterate through the feature ID numbers in my selected ...
1
vote
1answer
43 views

Clipping multi-band Sentinel-2 composites in ArcMap?

I am using Sentinel-2 images and I want to clip the image with a shapefile I made. (The shapefile was smoothed with Smooth polygon with a 10m PAEK tolerance). I have tried the Raster clip tool and ...
0
votes
0answers
15 views

Clipping raster image in ArcGIS problem column and row

I am using ArcMap 10.6. Imagine I have x.tif (100x100 pixels) and Y.tif(10x10 pixels). If I have to clip x.tif with the extent of Y.tif, the result of Z.tif should be 10x10 pixels. but the result of ...
0
votes
1answer
22 views

How to determine the average NDVI value of a selected area?

I'm new to ArcMap 10.2 and trying to get NDVI data of city centers. So my problem is, after I'm calculating the NDVI and getting the result raster, I would like to get a mean (average) value of ...
2
votes
0answers
53 views

Load images into a multi-band raster in R?

I have a Landsat image with 11 bands. I need to run k means classification in R. But I do not need the whole of the image as my study area is much smaller. So I have created shapefile of the Region of ...