A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
0
votes
0answers
9 views

Shifting in pixel after subsetting with gdalwarp

I am trying to subset multiple image to smaller Area of interest I have tried with gdalwarp in commandline but it causes shift in pixel after cropping/sub-setting image into smaller place. my code ...
0
votes
1answer
39 views

Clipping multiple AOIs from a lascatalog using a dataframe [closed]

I'm tryin to clip multiple AOIs from a Lascatalog using a dataframe containing centres and radii of various plots. I can probably loop through the data frame and use lasclipCircle() to clip each plot ...
0
votes
1answer
46 views

Exporting WMS Images/Tiles to our Area of Interest

Is there a way to clip WMS layers to our area of interest. I have the following WMS layer that I want to clip for Polygon shown in Red. I am getting the following error message if I try with SAGA ...
1
vote
1answer
25 views

Errors clipping a raster with a vector mask layer

I am running QGIS 3.4.14 (current stable version) on OSX Mojave 10.14.5. I have a vector mask that I want to use to clip out a region of an image. Image was a jpeg originally but I translated it to a ...
1
vote
0answers
23 views

Offset after clipping an image using rasterio.mask (illustrated with figures) [closed]

I want to clip an image named img_A of dimensions 14000x10000 using a polygon shape in order to get the same dimensions than another image named img_B of dimensions 1925x1372 (see figure 1 below). The ...
2
votes
0answers
38 views

Clip completely overlapping polygon(s)

The shapefile that I'm working with (in QGIS) has over more than 250k polygons. But unfortunately a lot of the polygons are overlapping. The focus of my challenge is to delete or clip the polygon ...
0
votes
1answer
21 views

Raster File Clipping

I am trying to clip a raster image with the outline shape of a country, I imported the .png image in using the georeferencer plugin. I then selected the country I wanted to use and saved it as a ...
0
votes
0answers
35 views

Sql query with ogr2ogr for clipping polygons

I'm trying to build a query with ogr2ogr to clip intersecting polygons. I know how to do this with QGIS database manager sql but I can't get it to work with ogr2ogr. With information I've gathered ...
1
vote
0answers
24 views

Clipping shapefiles with different CRS in QGIS 2 [closed]

In QGIS 2.18.22 I have to different vector-shapefiles and I would like to clip the overlay. Unfortunately, the shapefiles did originally not have the same CRS so I saved them in the desired CRS (EPSG:...
3
votes
0answers
42 views

Multi-part geometries do not themselves provide the array interface

So initially I had multiple perpendicular lines along a coastline. Next I clipped these lines based on polygons along the coastline,such as the follwing. I am trying to use this resulting shapefile ...
0
votes
0answers
35 views

Python GDALwarp cut a raster with a shapefile polygon

I am trying to create a program that cuts multiple rasters in different folders with gdalwarp, the program works for square shapefiles but when I enter one with a polygon the program does not cut ...
0
votes
1answer
20 views

Clipping layer with every feature in another layer using ModelBuilder

Currently working with ArcMap 10.5, from a gdb, and using ModelBuilder. My python knowledge is null. I have a road layer (line), and then a city limits layer (polygon) with various feauters (up to 30)...
1
vote
1answer
25 views

Arcpy Clip Raster not setting clipped out area to NoData

I have an 8 bit raster that I'm clipping using arcpy 10.7 arcpy.Clip_management("inrasPATH","","outrasPATH","PolygonPATH","256","ClippingGeometry","MAINTAIN_EXTENT") However whenever I clip the ...
1
vote
1answer
59 views

Creating CON.shp in ArcPy gives ERROR 000732

I am creating bunch of point shapefiles by using watershed boundaries in a loop import arcpy from collections import defaultdict geo_db = 'C:\\CHIA_Routine\\CHIA_Watersheds.gdb' smis_wq_resultsXY = ...
1
vote
0answers
39 views

Clip/Make difference between line and polygon layers [QGIS]

I need to clip one layer out of another, both are vector layers (one of them i got from vectorizing a raster layer). When i try to clip out "LowNitro" out of "FlandersAgriculture" Intersect doensn't ...
1
vote
1answer
22 views

Clip polygon to multiple polygons

I have nine vector land use .shp and I had to make a cropland shapefile, but I thought of giving my study region polygon an attribute to be cropland, instead of digitizing it. I forgot what function ...
-1
votes
1answer
22 views

Clipping roads based on their county [duplicate]

I have both county shape files and all road lines for the state, but I would like to clip the roads based on what county they are in. How can I do this as a batch or model in the ArcMap application ...
1
vote
0answers
22 views

Choosing Clip or Insersect tool in QGIS? [closed]

I am doing a analysis but I have information which is not available in all disagregation levels. I mean, some data is at a national level, other is at subnational level and other is in district level. ...
2
votes
0answers
61 views

Is there a way to create a DEM that follow the point cloud so you don't need to clip the DEM after?

I would like to create a DEM from an XYZ file (gridded 0,25x0,25) with 0,25 cell. I'm wondering if there is a way so that my interpolation follows my point cloud, instead of covering a rectangle like ...
0
votes
0answers
27 views

Draw (extend) a straight line from points

Is there any existent tool or workflow to generate a straight line in ArcMap? I have a lot of point that represent plant counting (one point per plant) and I need to generate e line that represents ...
3
votes
1answer
57 views

Subset point vector based on attribute classification in underlying raster

I have two datasets: A raster file containing per-pixel vegetation classifications across Australia. The file is described to have projection of EPSG:3577 https://epsg.io/3577. All additional meta ...
0
votes
0answers
52 views

Problem with input feature as clipping geometry in ArcGIS Pro

I am clipping several rasters to the shape of a polygon feature class using the feature class for clipping geometry. However the output looks like this: There should be NoData values around the ...
-1
votes
1answer
26 views

Clipping raster by grid cell using ArcGIS Pro

I have a raster image which needs to be clipped to be 512x512 pixels. How can I set in ArcGIS Pro x,y limits to get this clip? My file has 1500 rows and 1000 columns.
1
vote
0answers
26 views

Is there an equivalent of filterBounds() function for images in google earth engine (other than clip images)?

I wanted to restrict my raster to an ROI. clip() function gives pixels outside the ROI masked with zero pixel value. Is there any way to do the same thing that filterbounds() does on an image?
1
vote
0answers
39 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
31 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
40 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
25 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
29 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
0answers
27 views

GDAL Warp windows do not intersect error

I have been trying to use sentinelsat API for retrieving and processing satellite image data. I use GDAL to warp the image and the rasterio to clip my Area of interest and use it for analysis. However,...
0
votes
1answer
36 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
2answers
114 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
100 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
20 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
49 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
30 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
36 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
65 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 ...
0
votes
0answers
22 views

Inconsistent pixel range clipped 16-bit imagery to 8-bit

I'm attempting to convert 16 clipped/georeferenced imagery to 8-bit using the CopyRaster function in ArcPy but I'm having trouble assigning NODATA values. I have 16-bit imagery that has 3/4 bands (...
1
vote
0answers
54 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
81 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, ...
0
votes
0answers
12 views

Aggregate&Clip OR Clip&Aggregate?

I have a raster data with resolution of 0.00833333 deg and want to aggregate it to 0.25 deg resolution. I used two approach: I first clipped my raster with my study area (polygon feature) and then ...
1
vote
3answers
114 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: ...
0
votes
0answers
25 views

GDAL C# Bindings ogr2ogr's clipsrc

I am trying to call ogr2ogr's clipsrc command from C#, but I can't find any reference other than implementing what the command does from scratch. I can imagine Using gdalwarp with c# bindings? is ...
4
votes
0answers
183 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
34 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 ...
3
votes
1answer
321 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
37 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
81 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
71 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 ...