Questions tagged [clip]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
48 views

Calculating area of land cover within 30m of streams for whole U.S.?

I'm trying to do a very simple analysis where I need to find all land cover of a certain type within 30 meters of a stream. I have a raster from the National Land Cover Database (NLCD) from which I've ...
1
vote
1answer
64 views

Clipping with gdal translate does not create a file (Python)

I have tried to clip a geotiff file using the code below: from osgeo import gdal miny=-10.616665787 maxy=38.558338147 minx=34.562256098 maxx=71.187259028 ds = gdal.Open(fp) ds = gdal.Translate(...
1
vote
0answers
113 views

Cropping Landsat images with shapefile in MATLAB

I want to crop several Landsat images, of different satellites, in MATLAB employing a shapefile. For only one image, I could manage to do it properly. But if I try the same with a second image, the ...
2
votes
0answers
56 views

Clipping interpolated raster with shape of original point data-set

I have a point dataset with XYZ values. I inserted this layer in QGIS 3.6 via layer > add layer > add delimited layer. Then, I interpolated these points to a raster via interpolation > TIN ...
0
votes
1answer
44 views

ERROR 000732: Cannot clip IDW product to boundary file with Python script

I am writing a Python script to try to clip a raster generated by Idw_3d interpolation, but it's throwing the infamous 000732 error. I've looked at my file path, and it does exist there. I've opened ...
0
votes
1answer
73 views

Clipping by canvas extent using QGIS

I am trying to clip my .tif image using qgis(Zanzibar) as before but having trouble to get it in .jpg or .jpeg as it appears black (as picture below) after the function is performed. I choose the ...
2
votes
3answers
350 views

Feature class may be locked in ArcPy

I have a script that clips 20 feature classes and delete the "clip in file" (fcin). My problem is that the script fails on 3 of the feature classes with error "May be locked by another application" ...
2
votes
1answer
152 views

Clipping raster file using shapefile that has different blocks inside?

I have a TIFF file as shown below: I have a shapefile as shown: How can I separate the TIFF file into different blocks using the above shapefile?
1
vote
0answers
66 views

Using submodel within model in ArcGIS Desktop

I have two databases 175 shapefiles each I want to clip each one of them using the corresponding shapefile from the second database .. as I can't use two iterators I have to do a nested submodel ...
0
votes
2answers
83 views

Spatially clipping Polygons using ArcMap [closed]

I am using ArcMap. How can I spatially clip the polygon shapes outlined in red marking so that the blue polygons outside the red perimeter are deleted (red marking is just made with snipping tool ...
1
vote
1answer
63 views

Seeking QGIS equivalent to ArcMap Editor Menu Clip?

In ArcMap I can start an edit session, drop down the editor menu and choose "Clip" then decide whether to preserve or discard the area(s) in any other displayed layer that intersect with the clipping ...
1
vote
0answers
78 views

Remove dark background around clipped image in QGIS 3? [duplicate]

I used QGIS 3 for clipping a satellite image using a shapefile. The output raster gave a clipped image with dark background. How to fix this issue?
1
vote
2answers
969 views

Crop a raster with another raster in R / GIS [closed]

I have raster files with the same resolution (30x30m), but different dimensions, and I would like to have all rasters with the same dimension and resolution. So, here is the first raster: (A) and ...
1
vote
0answers
178 views

Using Data Driven Pages to clip to data driven page extent without clipping points at border of extent in ArcMap

I am creating a mapbook in ArcMap 10.6.1 using Data Driven Pages, and excluding data outside of the data driven feature specified. However, the points within the feature of interest always get clipped ...
1
vote
2answers
352 views

Using Clip By Mask on QGIS

Help me for processing my raster data on QGIS; How to remove the outland on my image, so the image is following my shapefile border why is my processing using "Clip With Mask" in QGIS for so long, ...
2
votes
3answers
573 views

Clipping polygons and lines at exact borders within PostGIS

I have OSM data of the whole world in a PostGIS db. For some reasons, I want to work with tables which have only data from a given bounding box inside. I create this tables with following command: ...
4
votes
0answers
849 views

Error using 'Clip raster by mask' in QGIS v3.8.2

I am attempting to clip a raster to a shapefile boundary (country boundary, 1 polygon) using the 'clip raster by mask' tool in QGIS v3.8.2. Both layers are in WGS84, so projection mismatch shouldn't ...
1
vote
0answers
75 views

Extracting or masking of very large raster to reduce file size on disk?

I have a very large 8-band raster (339806 x 61704) that I cannot load to memory to manipulate (R, raster:canProcessInMemory indicates I need 4999.16 GB of ram to load this file). However, I only need ...
4
votes
1answer
3k views

How to clip raster inside of circle (python gdal)

I have a source raster and an ERSI shape file, want to crop the raster into the circle. raster = gdal.Open("raster.tif", gdal.GA_ReadOnly) #read raster projection=raster.GetProjectionRef() ...
1
vote
0answers
67 views

Clip Raster by Mask Layer - Nodata output

I am trying to clip a raster around a polygon shapefile. I have managed to do it for a series of polygons with the same raster, however one polygon is returning a blank clipping with 'nodata' in each ...
0
votes
2answers
232 views

Clipping raster by value of overlapping raster in QGIS?

I have two overlapping raster dataset with the same resolution. First one is classified into 1 and 0 values. I would like to clip the second raster based on the pixels of the fist raster with value ...
2
votes
1answer
390 views

Can't cut raster with a polygon shapefile

I'm trying to cut a CLC raster (several, actually) with a shapefile (polygon) boundary from a country (Portugal, continent only), bu i keep getting this error: QGIS version: 3.8.2-Zanzibar QGIS code ...
2
votes
1answer
124 views

Clip overlap from polygons

I am trying to script the clipping of overlapping areas from a set of polygons. After having fetched features (outerFeature) a loop (innerFeature) is to check if other features intersect with area > 0....
4
votes
2answers
84 views

Clipping two line layers using QGIS

I have two line layers, A and B. Layer A is sort of a complete network (black lines on the screenshot below), layer B contains certain chunks from layer A (red and light blue lines on the screenshot)....
2
votes
0answers
38 views

Clipping interpolation layer to a coastal boundary in QGIS 3.6?

I have created an interpolation layer and want to clip it so I don't see the area outside the coastal boundary. map showing area to be clipped:
1
vote
1answer
705 views

QGIS: Clip Raster by Mask Layer-permanently remove black edges

I want to introduce geotiff images generated in QGIS by clipping ortho imagery to a shapefile into matlab. However, the clipped raster images come with black borders. I managed to remove them in QGIS (...
2
votes
1answer
190 views

Clipping polygon with points

I have a slight issue I just cannot solve. I use QGIS 3.6 I have multiple layers: layer with multiple points with milage numbers; a layer containing one or more polygons (let's call them "...
2
votes
0answers
37 views

Removing ONLY black background in QGIS (without removing black dots within the image)

Related to question: Removing black background and black font from raster in QGIS I have also a black backround and when doing as it is suggested in the answer the black backround goes away but also ...
2
votes
0answers
306 views

Mask out areas inside a feature collection on Google Earth Engine

I am quite new to javascript and I am trying to apply a mask on an image to exclude areas inside a feature collection, I have seen that for the case of image collections the "mask" and "mask.not" ...
1
vote
1answer
170 views

Mosaicing non-overlapping rasters in QGIS

I have a set of georeferenced rasters that I want to combine in a seamless layer in QGIS. I believe what I have to do is clip them by mask layer and then build a virtual raster. There is an issue ...
1
vote
0answers
358 views

QGIS Error : Could not load source layer for INPUT

When I try to clip a layer in QGIS 3.8.1 by using the toolbox clip function, it always returns the error Could not load source layer for INPUT XXX.tif layer not found. When I manually drag and drop ...
2
votes
1answer
483 views

Clipping raster layer supplied from web (e.g. OSM)

When I try (in QGIS 3.8 "Zanzibar") to clip a "web layer", i.e. a raster layer provided from the web (e.g. an OSM map loaded via the QuickMapServices plugin) by the usual method Raster > Extraction > ...
1
vote
2answers
92 views

Clipping raster exactly to outline of shapefile using QGIS?

I have clipped the shape I want but it looks messy with ragged edges. I want to remove these and have clean edges. I have tried doing this on QGIS but have come to the conclusion that it is not ...
1
vote
1answer
74 views

Clipping images in QGIS

So I created square buffer points on a satellite image and I am trying to cut the images under these buffer points as like a JPEG or PNG file. Is there any way to do this in QGIS?
0
votes
1answer
263 views

Clipping using multiple polygons from same layer in ArcGIS

I have a polygone shapefile and now I want to select a couple of polygons which are islands in one big polygon and clip that big polygon with these selected islands. I know that I can use ERASE tool ...
4
votes
1answer
134 views

QGIS processing.run() standalone script does not write .prj and .cpg output files of shapefile?

I've created a python standalone script to clip two shapefiles with qgis. I've installed qgis3 with OSgeo4W. The logic is as follows: import qgis from qgis.core import * from qgis.core import ...
2
votes
2answers
91 views

Clipping Lines Using Expression in QGIS?

I have a set of roads that I wish to clip. How ever I only need a segment of each road based on the state its located in. I can do this independently but seems like there should be a better way. Ill ...
2
votes
2answers
734 views

clipping a vector layer with another vector layer using python

Sorry if this there is a really obvious solution to this question. I did not have any luck googling and looking at different books. I have an OSM vector layer that I want to clip with another vector ...
1
vote
1answer
696 views

Crop multiple rasters using map or mapply?

I have a folder of rasters with slightly different extents. I would like to apply crop to the whole list of rasters. I'm trying to teach myself how to use the purrr map family, but I can't get that or ...
4
votes
2answers
411 views

QGIS Zanzibar how to crop?

I have georeferenced an old OS map and I have now imported the OS data shapefile for boundaries for England. How can I get rid of the extra data that extends beyond my map and just leave my scanned ...
1
vote
0answers
29 views

Accounting for intersecting features with spatial join?

I am looking to analyse the effects of the designation Marine Conservation Zones (MCZs) on fishing effort. I have a shapefile for fishing effort which is gridded, each pixel has information about ...
4
votes
0answers
803 views

“Clip Raster by Mask Layer” produces zero values (and not Nodata) outside mask boundaries

This is my first question here. I have a big raster of the world's nighttime lights and want to clip it down to the Adm0 of a country: In order to do so, in QGIS 2.18 what I do is using the Clipper ...
0
votes
0answers
97 views

Clip/Intersect tool stopped working

I am using ArcMap 10.5.1 I have been using the Clip tool to cut out the amount of a given habitat type found within individual buffers around individual samples. After successfully executing this ...
1
vote
2answers
324 views

Clipping raster by mask layer with rule that it only clips raster if shapefile overlaps by 10% using QGIS?

I am using QGIS. Is it possible to clip a raster when the shapefile overlaps with it by 10%? Clip raster by mask layer tool is fine for Ontario (left) but makes me lose a lot of data from smaller ...
1
vote
1answer
254 views

How to crop raster in R without losing the colors?

I have a 2x3 raster in R, with values 1 to 6. library(raster) r <- raster(nrows=3,ncols=2,xmn=0,xmx=2,ymn=0,ymx=3,vals=1:6) colors <- c('red','orange','yellow','green','blue','purple') plot(r,...
0
votes
1answer
70 views

Clipping by mask results in blank output

After clipping by mask in QGIS 3.6 the output file has been blank (empty). Raster file and vector mask file have the same projected CRS: USER:100029 - * Generated CRS (+proj=igh +a=6370997 +b=...
0
votes
0answers
34 views

Clip OR Overlay in ArcGIS output feature empty

I use the Clip and Overlay to deal with download data. But they do not work and result in failure. Maybe the data is too large for ArcGIS Desktop to calculate. I do not know where I can check whether ...
0
votes
2answers
196 views

Removing overlapping polygon parts in sequential order using ArcMap

I have 500 polygons in a feature class. There are a lot of overlapping polygons and I need to remove these overlapping areas according to three criteria. What we do now: we have a column with the ...
0
votes
0answers
31 views

Iterating clip in ModelBuilder based on different province/county names using ArcGIS Pro?

I have a featureclass with all counties/provinces from the Netherlands and I would like to do clips for roughly 8/9 counties based on their names in the feature class. I have a feeling that I have ...
0
votes
1answer
147 views

Using Editor tab Clip function in ArcPy?

I am using ArcGIS Desktop 10.6, basic license, Spatial Analyst, python 2.6, 2019 AD. I have a polygon feature class with representing a lake, with multiple features overlapping (all in the same ...

1
3 4
5
6 7
23