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
1answer
22 views

Python GDAL: Clip rasterfile with multi-polygon shapefile

I am trying to clip a raster file with a multi-polygon shapefile to get separate clipped-raster file for each polygon with its 'id' as part of the name of clipped-raster file. I tried the following ...
0
votes
1answer
8 views

Clip slope raster for values outside of percent grade range

I have a slope raster, but I would like to remove values (or make them no data value shading) outside a range which makes them too steep. I tried looking at the raster calculator, and I am not sure ...
1
vote
0answers
17 views

Grabbing SHAPE@ token with index for clipping raster using ArcPy with ArcGIS Pro

I have written code that selects rows of a buffer shapefile based on that file's intersection with a polygon that represents the extent of a raster. In the photo below, the code selects all of the red ...
1
vote
1answer
54 views

Crop map by color

I digitized a map using QGIS. What I have right now is simply the geolocated version of the picture below (including labels, streets, lakes etc.), i.e. the file does not have any layers or attributes. ...
0
votes
0answers
27 views

Unable to clip raster data

I'm having some trouble clipping raster data. Once upon a time I was able to but recently I am met with an error message when I run the process. I've tried using all the options ie, clip by mask layer,...
0
votes
1answer
25 views

Using event listeners such as Polygons, polylines and point for API query with ArcGIS JS

I recently started working on ArcGIS JS to query with API from another site. I want to get the rasterized outputs by calling the API. It would work the way of EOS's real-time crop analysis. I am ...
0
votes
1answer
14 views

"M coord limit exceeded" error when clippling line to polygon (ArcMap 10.5)

I am running ArcGIS Desktop 10.5.1, and am trying to clip a large line feature (stream) using a single polygon extracted from a larger polygon layer (taxmap). Keep getting "Error 999999: Error ...
0
votes
1answer
25 views

Clip tool does not update polygon areas in output in ArcGIS

In ArcGIS I created a buffer of 500m around a point. Then, I clipped a land use layer using the 500m buffer as the clip feature. The outcome is shown in the figure. My problem is that the layer ...
0
votes
1answer
24 views

Clip Raster with Shapefile GDAL API

I am trying to clip a raster using a polygon an GDAL. The following code is running without an error but the ouputimage is all zeros. All files are in the same CRS. Is there a way to use GdalWarp with ...
1
vote
0answers
19 views

How do I separate results from a multi-geometry rioxarray clip opeartion?

I have MODIS data .hdf format and multiple polygons representing regions of interest. I can clip the raster using rioxarray such that polygons = [polygon1, polygon2, polygon3, ... ] with rioxarray....
1
vote
1answer
34 views

Clipping raster by polygon

I tried to clip a raster from processing toolbox, using Clip Raster by Polygons extent but I get the error message below. This map/raster was connected to an URL by using WMS/WMTS. Then the map was ...
0
votes
0answers
8 views

Resize two different resolution classified image in ENVI

I have two classified image. one image classified based on 30 meter resolution image and another one based on 1 meter resolution image. My image base is that 1 meter resolution but the first ...
4
votes
2answers
177 views

Raster color is changed when clipped with a polygon in QGIS

I am using QGIS 3.16.9 and whenever I clip my satellite image bands according to the vector layer I made, it loses its original RGB color. Is there a way to maintain the color/values of the pixels?
0
votes
1answer
26 views

Clipping Demdata raster with polygon bounds using ArcMap

I am using ArcMap. I am having some problem clipping the demdata raster to my polygons att taking the max and min value of height within that polygon. I tried using the "Raster To Polygon" ...
1
vote
0answers
21 views

Polygons at edges of orthographic projection

I am trying to make a globe type map with an orthogonal projection (made using a custom projection with the "origin" set to 20,0). The issue is polygons which meet the edge of projection are ...
0
votes
0answers
17 views

Clipping Raster with output using ArcGIS Pro

I'm trying to clip an elevation contour raster layer to the extent of the site boundaries. In the output raster layer the pixels seem to have increased in size a lot and the new layer looks nothing ...
1
vote
1answer
136 views

Rasterio mask doesn't work with shapely polygon

I have raster which I want to mask with shapely polygon.According the rasterio documentation, rasterio.mask can work with shapely geometry.However, in this case, it doesn't work. whenever I use my ...
2
votes
2answers
118 views

GeoPandas clip produces MultiPolygons instead of Polygons

I have a large polygon shapefile and a small polygon shapefile. Both shapefiles are in the same coordinate system. What I do next is, clip small polygons within large polygon boundaries using ...
1
vote
0answers
58 views

Distinction between "Clip" and "Intersection" tool in QGIS 3

For a project in marine biology we need to calculate the amount of seabed that is protected by official protected areas for each seabed habitat type. To that end, we clipped a seabed habitat layer ...
0
votes
0answers
27 views

Shapefile is not able to clip raster

I am working on using shapefile containing various polygons to clip a raster image. The code works for some raster images, but for some raster images, blank clipped rasters are generated. Both the ...
2
votes
1answer
53 views

Create polygon out of empty shapefile parts in ArcMap

I have a large shapefile (part of North America), which has some areas within it as NA , because they're not part of 'the land' as such. Actually it is one interconnected area, all these 'lakes' and ...
2
votes
1answer
52 views

How to crop a shapefile with another shapefile with contour

I'm new using QGIS (version 3.22) and I think my doubt is simple, but I didn't find any answer. I have a vector shapefile from Brazil like this: https://geoftp.ibge.gov.br/organizacao_do_territorio/...
0
votes
0answers
38 views

Cropping area from project to layout in QGIS

Using QGIS, I need to "crop" some area from the map to layout and export it to pdf like in the picture below. Can anyone help ?
0
votes
2answers
44 views

The unknown problem with gdal.WarpOptions concerning reference

I have a tiff file that I want to crop down to a shp cutline and reproject. If the code is: clip_spec=gdal.WarpOptions(format='GTiff',cutlineDSName=os.getcwd()+'/moksha/DEM/cutline2.shp',cropToCutline=...
0
votes
0answers
12 views

How can I snap to an existing raster in QGIS?

I want to crop a landcover raster (cell size 10 meters) to my project region. The problem is that the new raster has almost always an offset. In the example I show below I made the new raster ...
1
vote
0answers
22 views

Processing raster changes pixel value from 255 to 0

I have a raster which I need to clip with a polygon using PyQGIS. So far it works fine, but now I came across some special cases in my source rasters where my script shows behaviour I do not ...
1
vote
0answers
16 views

Actual area from polygons is either under- or overestimated when extracting raster values - any solutions?

I am trying to use ModelBuilder to iterate through sets of polygons to overlay on top of two rasters and extract the total area of each value from each raster, but am having issues with the estimated ...
0
votes
0answers
18 views

How to select the minimum needed images for a Planet imagery composite

I would like to make a composite of Planet images from an ROI. First by searching for scenes which overlap the ROI, and coincide within ~5 days of a given date. Then submitting those scenes to the ...
2
votes
2answers
62 views

Cropping Voronoi polygons to specific distance from input points using QGIS

The Voronoi polygon algorithm propagates the polygons to the extent of the input layer (the points), which means some massive polygons. The majority of those massive polygons are nonsense data - we ...
0
votes
1answer
24 views

Spatial resolution change after Extract by Mask in ArcGIS

I have cell size (x, y)=(2.5, 2) spatial resolution of a raster file. When I use Extract by Mask function in ArcGIS then the resolution changes I want to know why extact by mask function changes or ...
1
vote
1answer
20 views

Unwanted Extent Remains when Clipping and Merging in QGIS

I have 4 adjacent rasters with a 2-pixel gap between each other. 2 of the rasters have unwanted extents that bleed into the 2-pixel gap: I have clipped out the unwanted extents from the 2 rasters ...
2
votes
1answer
47 views

Clipping series of buffer zone polygons using series of boundary polygons that have same file name using ModelBuilder of ArcMap

I have an iteration problem. I have a series of polygons that represent 1000 m buffers of individual lakes. I would like to clip these buffers using individual polygon boundaries that represent lake ...
3
votes
2answers
77 views

Clipping vector layer with preserving boundaries of polygons in QGIS

I would like to clip a vector layer containing buildings by a rectangular boundary (also a vector layer). However, rather than cutting straight through the buildings at the boundary, I want it to ...
0
votes
1answer
32 views

Clip satellite image to study area based on dropdown list location selection using GEE

var statesDropdown = ui.Select({ placeholder: 'Loading states...', disabled: true, onChange: onStateChange }); updateStates(); var districtsDropdown = ui.Select({ placeholder: 'First select a ...
0
votes
1answer
54 views

Crop raster by pixel position in R

I need to crop a raster (RasterLayer or RasterStack) to get a specific number of pixels in X and Y. Let's imagine that we have a raster r with ncol(r)=6 and nrow(r)=11. I need to get a raster with 1st ...
8
votes
3answers
212 views

Selecting and exporting points inside specific polygon using QGIS

I have a problem that is similar to Get Points in a selected polygon. I have a polygon layer (with +200 features) that represents a road (subdivided by every 100m) and a point layer of a GPS survey ...
1
vote
0answers
32 views

Clipped shapefile not appearing on screen using QGIS

I have just installed QGIS and I want to clip 1 polygon into the boundaries of another polygon. This seems like a simple thing to do and I use the clip tool to do so. However, when I click the zoom to ...
0
votes
1answer
53 views

How to align rasters with small gap and overlap perfectly for merging

I have two raster files A and B, raster A lies completely in the extent of raster B. These rasters I want to merge into one while taking the exact values of raster A in the overlapping areas. To ...
1
vote
2answers
62 views

Clipping polygons in one layer from larger polygon in another layer

In QGIS 3.16.10 I want to clip (remove) the polygon areas (yellow) in one layer from a larger polygon in another layer (gray). I've tried the Clip from the Processing Tool but it only returns the ...
1
vote
1answer
52 views

Clipping raster and shapefile and generate attribute table

I have a shapefile folder of property map and raster file of elevation. I want to clip those and generate attribute table. I import both shapefile and raster file, then I click 'Full extent' and ...
1
vote
1answer
66 views

Clipping raster and keeping only pixels that are 50% inside polygon using QGIS

I have a problem with clipping a raster with a polygon(shapefile). I have a polygon of a small river, and a sentinel 2 tif file. I want to clip the river off the sentinel image, but keep only the ...
1
vote
0answers
39 views

Clipping extent using QGIS is not matching shape only small sections

I am new here, and I am working with QGIS 3.16.9. I have a shapefile and a raster. I am trying to clip the raster by mask layer, but it only cuts some pixels, not the whole shape. And if I clip the ...
0
votes
1answer
22 views

Clip raster tool with polygon will not clip raster

I am trying clip a raster with a polygon (500 meter buffers around point data). The reason why I want the clip is because I want to analyze the information in the clips using the zonal statistics tool....
0
votes
0answers
23 views

Why is gdal.Translate returning array of zeroes?

I'm trying to clip a dataset based on a bounding box, and return an object, and it seems to be working as the output size are about as expected. However, the resulting dataset is a black image (i.e. ...
0
votes
0answers
41 views

Clipping low resolution raster

The raster dataset I want to clip is of low resolution (cell size: 0.5 degrees). When I clip or extract by mask, the output raster edges are jagged and does not fit to the exact boundary shape. How ...
0
votes
1answer
46 views

Clipping MBTiles Dataset using QGIS

I have got a large MBTiles Raster Dataset with several Zoom Levels, about 40 GB. Is it possible to clip a small area out of this large file e.g. 1 square kilometer which covers my area of interest? ...
1
vote
1answer
52 views

Clip several rasters with multipolygon and save them as separate rasters using R

EDIT That's the answer to the question above (i.e. using a multipolygon. In the answer section I posted an answer using separate polygons. #Load shapefile shape1 <- raster::shapefile("test.shp&...
0
votes
1answer
41 views

QGIS filter to get a mesh or fishnet with spaces without information

Can I create a filter with a Python code or R code, to eliminate the spaces that don't belong to the orange shape file? I was thinking in to each shapefile meshed, assign an area from orange shapefile....
0
votes
0answers
36 views

Monthly Temperature NetCDF in QGIS 3

I tried to clip a raster layer and this sis the error I got. The following layers were not correctly generated.<ul><li>C:/Users/........../Temp/processing_......................./OUTPUT....
3
votes
2answers
80 views

Performing area weighted interpolation in QGIS

I have encountered a problem that I thought would be much more simple than I see it actually is, and conventional clipping did not work. I have the following grid layer with different values of a ...

1
2 3 4 5
24