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
13 views

Trouble “extracting by mask” with a raster (land cover) layer and a shapefile?

I cannot seem to get clip to run. I am a bit of a novice and do not know where to start to try to resolve the issue. I am attempting to clip a raster (of land cover values) by a set of polygons. I ...
0
votes
1answer
34 views

Clipping multiple shapefiles using ArcPy

I am fairly new to Python. I created a folder with 4999 bufferfiles. Specifically, there 5km radius buffer circles, and I am trying to use the clip function with the already made bufferfiles to clip ...
0
votes
1answer
42 views

Clipping ROI in TerraClimate - Google Earth Engine

I am trying to analyze a polygon that I imported from Google Earth and get images for that polygon only. How can I do that? I tried clipping the area but it doesn't seem to work. Any ideas? // Load ...
0
votes
1answer
384 views

Select features from a raster based on their colour to create a new layer

I have a map of the UK imported as a raster. It was originally a JPEG and has areas that are coloured red and purple. I have a data set imported from a CSV file showing UK locations as dots. I want to ...
5
votes
2answers
92 views

Extracting polygons that overlay other polygons in different layer

I have two polygon layers that have multiple polygons in them. One layer is an administrative boundary layer and the other is a layer showing crop cover types. I would like to extract only ...
0
votes
0answers
18 views

Clipping: Image Offset when clipping raster in both Python and QGIS

I am trying to clip two raster with the same co-ordinates using Python. But even though they are from the same co-ordinates they are properly not align with each other. Its the same problem with QGIS ...
1
vote
1answer
57 views

Clipping using R and ArcMap do not match

I am carrying out a Raster clipping from a shapefile, using its exact shape. I have done a clip using the Clip (Data Management) in ArcMap. The "Using Input Features for Clipping Geometry (...
0
votes
0answers
18 views

Crop API Ordnance Survey map to working area size in QGIS

I'm new to QGIS. I have downloaded the Leisure 27700 Ordnance Survey map. But I want to crop it to just the area I am working on. How can I do this?
1
vote
1answer
36 views

Can I draw a new irregular polygon in QGIS 3.16?

I have a geotiff raster of Indonesian landsystems which I need to clip to the Papuan provinces in New Guinea. Unfortunately, I can't use a rectangular extent (as this would include some of the nearby ...
0
votes
0answers
18 views

Does the clipping function in QGIS clip the data relevent to each polygon?

I am looking to clip geographical areas with population data already inputted. My question is: Assume I clip a polygon containing 100 people in half, will the newly clipped polygon report there to be ...
0
votes
1answer
32 views

Batch clipping all files in folder and then save using ArcPy

I'm trying to use a script to batch clip all files in a folder, then saved with a _clipped.shp at the end of the original, I need a script that is something like this: arcpy.env.workspace = "E:\\...
0
votes
1answer
432 views

Highlighting an area of a map

I would like to have a borderline around a subset South-South(SS) part of the map (Map 1) (More like highlighting the subset part). I tried to clip a vector of the subset (map 2) to the entire map, ...
2
votes
1answer
53 views

Reading all shapefiles in a folder using geopandas and then clip them all iteratively

I have a folder full of shapefiles, I would like to read them into geopandas and then clip them all to one bounding box iteratively, however I'm stuck on the first part which is reading each shapefile ...
1
vote
1answer
606 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
2answers
41 views

How do I iterate a clipping process through a list of geodataframes?

I have a folder full of shapefiles, I would like to read them into geopandas and then clip them all to one boundary iteratively. I have loaded all of the shapefiles into a list with this correctly ...
9
votes
3answers
8k 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 ...
0
votes
1answer
21 views

R - Stack rasters with different dimensions and extent

I am trying to stack multiple rasters together in one RasterStack object but am having problems with aligning the extents and dimensions/resolution so that it can work. All rasters have the same CRS ...
1
vote
1answer
27 views

GeoPandas clip returns empty

I'm trying to clip a set of polylines to a polygon with geopandas but it's returning an empty set. Here's my code: >>> import geopandas as gpd >>> import matplotlib.pyplot as plt &...
-1
votes
1answer
42 views

Creating bounding box from line using GDAL's ogr2ogr

I am trying to cut a line (.shp, EPSG: 32631) based into a reference line (.shp, EPSG: 32631) enter link description here using QGIS/GDAL following those comments but I do not know how to solve it. ...
0
votes
1answer
31 views

ArcGIS Pro - Clip (Modify Features) aggregates nearby geometry

I have a large polygon that contains several several other (smaller) polygons. Some of these smaller polygons also intersect with each other but they all at least 'touch' the larger polygon. I want to ...
1
vote
1answer
44 views

Clipping a vector shapefile fails to include all data

I have a vector file with 4 levels of data within it. This started life as mapinfo tab files (7 files, map,mif,mid etc.) These were passed through mapinfo universal translator, reading original crs (...
0
votes
0answers
24 views

An issue with the ee.clip of Google Earth Engine Python API

I'm new to Google Earth Engine analysis so I can't solve a simple task with the python API. What I want to do is to clip an image with a specified boundary that corresponds to a reference image then ...
37
votes
6answers
23k views

Increasing speed of crop, mask, & extract raster by many polygons in R?

I'm extracting the area and percent cover of different land use types from a raster based on several thousand polygon boundaries. I've found that the extract function works much faster if I iterate ...
0
votes
0answers
44 views

Clipping from another layer using QGIS

I am a Land Surveyor. I would like to "cut/clip" the tax parcels of a Section. The amount of data in the file is to great, so I need to "cut/clip" pieces of the file and save them ...
1
vote
0answers
21 views

How to clip polygon by line feature QGIS?

The clip tool will only allow for clipping by another polygon, I would like to clip polygon features by a line feature. Had tried installing the digitizing feature however the cut by lines button is ...
2
votes
1answer
391 views

ST_Clip not including pixels intersecting the border of a shapefile

I'm trying to clip a raster with a shapefile in PostGIS but want the clipped raster to include pixels that overlap the border of the shapefile which ST_Clip doesn't seem to be including. Here is a ...
3
votes
1answer
4k views

Clipping a raster by a polygon layer: Error “Cutline is not valid after transformation”

I have a raster layer (3 cm x 3 cm) and a vector layer with polygons and when I try to clip the raster by the polygon layer to have just the bare earth/ground regions left over, so I can interpolate ...
0
votes
1answer
29 views

Clipping Basemap using shapefile as clip feature in ArcGIS Pro

I am trying to isolate the United States from the rest of the world using a provided basemap in ArcGIS Pro. I am trying to use a shapefile of the United States I obtained from the living atlas as the ...
1
vote
0answers
12 views

While clipping a Raster generated from SCP plugin (classification) all the colors are vanished in the end output and the raster generated is in B/W

I have done all the LULC classification using SCP plugin. after completing my classification, I wanted to clip the raster using a Shape File. But when I do it, the colors are vanished in the output ...
0
votes
1answer
79 views

Handle Curvilinear/rotated grid NetCDF file in R

I have a NetCDF file with a curvilinear (rotated) grid that contains meteorological data. I am trying to crop the NetCDF based on a mask shapefile in R, but the rotated grid does project the data in ...
2
votes
2answers
68 views

Joining (merge, union) non-overlapping vector polygons with QGIS

I look for a solution how I can join several polygons that do not overlap with each other and have no common sides, by creating a new polygon. That is, it should be an output polygon covering the &...
3
votes
3answers
2k views

Clip a heatmap made from point layer (not heatmap plugin) in QGIS

So I'm just trying to make a heatmap based on 13 points I have which are the centroids for 13 regions in a country. The attribute of 'water percentage' is what I would like to base the heat map off of....
0
votes
0answers
27 views

Clipping rasters

If I have mosaic raster which I have run a Swiss hillshade model for and I want to clip to multiple different polygons on my map, will this affect the drawing of the raster? The reason I want to clip ...
1
vote
1answer
39 views

No data found in bounds using rioxarray to clip GeoTiff to shapefile

I get the following error when trying to clip a GeoTiff to a shapefile: "No data found in bounds." Steps to reproduce: import rioxarray as riox rain = riox.open_rasterio( "https://...
0
votes
0answers
22 views

Raster Clip interface

I have been using QGIS 1.8 Lisboa for some time now and would like to be using OSM for my base maps. I am aware this a very old version now and doesn't seem to support OSM anymore. I have upgraded to ...
4
votes
1answer
954 views

Clipping tiled raster with polygon using PostGIS?

I have a table in postgis with a tiled raster and a table with polygons overlaying the raster. I want to get the number of pixels for each category (pixel value) that fall inside a specific polygon. ...
0
votes
0answers
19 views

QGIS. Clipping raster layer(asc) with vector layer results in missed color information

I have an imported asc file, then I generate a vector layer in order to clip part of the raster with that polygon shape. The result is the correct clip but has lost the gray scale representing the ...
1
vote
0answers
36 views

Why does raster still have pixels around edge when clipped?

I am trying to clip a raster in ArcMap 10.6 (derived from 'make nedcdf raster') to the shape of the Ireland polygon and I keep getting back pixels around the edge: I have tried 'Clip' in 'Data ...
2
votes
2answers
1k views

Label Masking in ArcGIS Pro?

The data frame "Clip to Shape" feature, to hide both symbols and labels outside of a specified shape, seems to be gone from ArcGIS Pro. I'm able to use Masking (Feature Layer->Appearance->Drawing->...
0
votes
1answer
23 views

How to clip symmetric difference shapefiles in Google Earth Engine?

I need to clip symmetric difference two shapefiles in Google Earth Engine. How can I do this? I tried this code, but error: var a2 = ee.FeatureCollection(table2) var a1 = ee.FeatureCollection(...
19
votes
3answers
25k views

How to perform a true GIS clip of polygons layer using a polygon layer in R?

I would like to do a true GIS Clip in R of soils polygons using a series of single boundary polygons, but I cannot find an R function to properly do it. It should work just like the clip function in ...
1
vote
1answer
121 views

CRS mismatch - Geopandas.clip

I am working on a script that will iterate through a grid and clip out polygons that lay within their respective grid cell. I am running into a CRS mismatch error exclaiming that my left and right CRS'...
2
votes
0answers
43 views

Clipping multiple raster with multiple shapefiles in Python

I am trying to adopt existing code for clipping multiple rasters with multiple polygons based on this link: Subsetting multiple rasters with multiple shapefiles using Python I added the following ...
1
vote
1answer
26 views

Clipping/ Zooming in on shapefile using R

I'm working on a shapefile of all the villages of Portugal from this link. I've uploaded it to R: #read in shapefile of portugal portugal = readOGR(dsn = "./communities", layer = "...
0
votes
1answer
67 views

Clipping Shapefile to Raster Extent using GDAL with Python

I am trying to clip a shapefile (containing multiple polygons) to a raster's extent. A similar question was asked as Clipping polygon precisely to raster (extent) using GDAL?, with an answer that I ...
0
votes
1answer
46 views

Clip all files from multiple subfolders using multiple polygons that have the same attribute

I'd like to ask for your help completing this code since I'm new to Python. I have two dataset folders one with subfolders containing shapefiles and the other with subfolders containing raster. I'm ...
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
1answer
138 views

ERROR 999999 during clip, Coordinates or Measures are out of bounds

The Code it occurs on each of the following interchangable lines that I have tried: arcpy.Clip_analysis(dvof_input, feature_name, rwy_dvof_output_prefix + row['LOW_IDENT'] + rwy_dvof_output_suffix, ""...
8
votes
1answer
102 views

How to create mutually clipping polygons

Is it possible to create buffers (in my case, but polygons in general also) that would create a boundary at their point of contact ? (so that they don't overlap on each other). Like this (from left to ...
1
vote
1answer
23 views

Splitting a BigTIFF using tifffile

I am having trouble splitting a BigTIFF. I am orginally using @Ivan code from this question. I had to modify it a bit since I am using a .tif that was larger than 4GB. Pillow does not support BigTIFFs....

1
2 3 4 5
23