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
0 answers
17 views

Convert worldclim .tif to .asc and clip using ArcMap [closed]

I need ArcMap to do two related things, I've never used it and won't need it after I accomplish the following: I am trying to prepare Bioclim layers in asc for use in Maxent to do niche modeling. I ...
user avatar
0 votes
1 answer
29 views

QGIS clip tool error non-point (MULTIPOINT) geometry to point shapefile

I'm using QGIS 3.22.4 then tried 3.22.7. I am using the clip tool. The input layer is a point(point) shapefile (verified in layer properties under information-geometry section). I have tried this ...
user avatar
  • 1
0 votes
0 answers
10 views

Cutting Lines By Set Amount in QGIS

I have a large set of lines in a rough grid formation which run in a N/S and E/W direction and fill an irregular shaped polygon from edge to edge. I need ideally to cut 1500m from the end and start of ...
user avatar
  • 1
0 votes
0 answers
43 views

Why do clip and intersect give different results (geometry)?

I have a boundary (clipper) and street data (lines, clipee). I calculate the sum of the street length within the boundary for communities. From a performance perspective this is faster to do over many ...
user avatar
2 votes
0 answers
44 views

Raster values ​changed after clipping with polygon [closed]

The procedure went well. Image 1 represents the raster (Chelsa) of annual mean temperature (bio1). I clipped it using a shapefile of country boundaries and the resulting image is image 2. As you can ...
user avatar
0 votes
1 answer
26 views

Clipping a raster converted to a polygon with a polygon [closed]

I have a task to figure out how many agricultural areas are located in a defined altitude. The agricultural areas were a polygon, while the altitude/DMNV was a raster. I converted it to a polygon and ...
user avatar
  • 9
0 votes
1 answer
36 views

Clipping features in a polygon from another feature in the same layer

I have a polygon layer with a number of features which overlap (in my case this wildfires in an area over time). I would like to clip the underlying features so there is no overlap. To elaborate I ...
user avatar
0 votes
2 answers
34 views

Clip NetCDF files by shapefile

I have 7000 nc4 files and I need to clip netCDF files based on a shapefile, but I have a problem with rasterio. After I run this code, I got the error: #AttributeError: module 'rasterio' has no ...
user avatar
  • 17
5 votes
1 answer
91 views

Clipping road network that within polygon using QGIS

There are two layers in the QGIS project: the first contains the road network for a geographical area. CRS: OGC:CRS84 the second contains polygons that collectively cover the geographical area. CRS: ...
user avatar
0 votes
2 answers
49 views

Clipping dataframe (spatial data) to area of interest using R

I have Global Fishing Watch data for the whole world in a dataframe with columns being Lon, Lat, fishing_hours, gear type. How do I crop the data to my area of interest? I have tried the following: # ...
user avatar
0 votes
0 answers
41 views

Use of ratio in ImageWMS in OpenLayers

I am trying to understand the setting of ratio in ol.source.ImageWMS but I am not succeeding. I already understand the ratio: 1, as there is not much to understand there. ratio: 1 = browser viewbox. I ...
user avatar
  • 81
0 votes
0 answers
30 views

Cropping tile map into raster using QGIS

I want to create a layer background for my data map. I am using a WMTS layer or a mbtile file (layer B), it could be an OpenStreetMap. My plan is to merge this layer with a data layout which has holes ...
user avatar
  • 799
0 votes
2 answers
41 views

ArcGIS clip raster with polygon - keep only cells that are fully within the polygon

I am trying to clip a raster with a polygon. The raster has a very coarse resolution of 10m (and must remain with that). I would like to keep only the raster cells that are fully within the polygon (...
user avatar
-1 votes
1 answer
63 views

Clip Line Layer to Polygon but retain the Lines outside the polygons

I want to clip a line layer to a polygon layer, but retain the lines outside the polygons. Can anybody assist me in doing this please? On the image included, the lines are in red and the polygon in ...
user avatar
1 vote
1 answer
53 views

Clipping large shapefile using QGIS

I am working on a large shapefile sourced from https://www.iucnredlist.org/resources/spatial-data-download . I am not able to clip Fish and Plants (global file) in Fresh water groups species to a ...
user avatar
  • 85
2 votes
2 answers
85 views

Clip features of lines based on parameter from another shapefile (Polygon)

I want to clip each line feature that is falling inside the polygons and want to save the line files with the name of ID which is in the polygon layer. Output:
user avatar
  • 385
2 votes
1 answer
78 views

Clip a line that overlaps two polygons in QGIS

Is there a way to clip a line that overlaps two polygons in QGIS? The line needs to be resized to either the poly/line intersection on the inside of the polygons or the poly/line intersection on the ...
user avatar
  • 105
0 votes
1 answer
31 views

Wrong polygons displayed in QGIS spatial query

I have two polygons, one is a virtual layer that generates a buffer around a site, the other is a set of polygons representing locations of interest. I have tried to create a query that gives me only ...
user avatar
0 votes
1 answer
61 views

Inconsistent results between gdalWarp (with cutline) and rasterio.mask

Cropping with GDAL cutline vs Rasterio.mask with crop=True results in arrays with different sizes (by one row). I've tested the different Rasterio options but no luck. I'm hoping to match the GDAL ...
user avatar
  • 399
1 vote
1 answer
29 views

Rule based symbology after clip in Qgis

I tried clipping Vector layer by Vector-Geoprocessing tools-Clip but when I clip it seems that Rule based symbology of the Vector layer is not kept. Is there a way to clip and to keep rule based ...
user avatar
1 vote
1 answer
120 views

Python cropping a TIFF with shapefile shifts the output slightly to the East

I have a shapefile that I use to crop GeoTIFFs. However everytime I use my code to do that, it slightly shifts my entire cropped TIFF to the East and I have no idea why. The pictures below show how ...
user avatar
  • 113
1 vote
0 answers
24 views

DEM loses data after clip raster

I'm working on a project in ArcGIS Pro in which I need to use DEMs and LiDAR data to estimate tree heights. Unfortunately, some of the DEMs I have to use are at 10-meter resolution, and they cover ...
user avatar
2 votes
1 answer
26 views

How to find which raster cells are overlapped by polygons

(QGIS 3.22) I'm trying to compare a raster layer with a vector layer and find all the raster cells overlapped by a vector. Unfortunately, the polygons are much smaller than the pixels of the raster, ...
user avatar
1 vote
0 answers
16 views

Trimming bad data around border of NAIP imagery using ArcGIS Pro [closed]

I am working with NAIP imagery from various years. Several of the images have bad data around the borders, see image. This is what it looks like without the no data values being shown. I need to trim ...
user avatar
  • 11
1 vote
1 answer
130 views

Clipping shapefile with MultiPolygon shapefile in GeoPandas

I have a shapefile (will be called source-file hereafter), which I need to clip by a MultiPolygon shapefile so that I can have a clipped shapefile for each polygon. I tried the GeoPandas, though I am ...
user avatar
0 votes
0 answers
49 views

QGIS WMS clipping issue

I'm using QGIS 3.22.5 Version Białowieża and I am having troubles in clipping a WMS raster with level curves. When I use the function for clipping rasters by polygon (draw area on map) or by a layer ...
user avatar
1 vote
1 answer
27 views

GDAL Clip raster by mask layer can't see files on external drive

So I am using GDAL Clip raster by mask area. I tried clipping a temporary raster to mask area and started getting errors that an error had occurred creating the output file. It seems that the issue ...
user avatar
3 votes
1 answer
118 views

Changing of pixel values when clipping raster by mask in QGIS

I am using 'Clip raster by mask layer' in QGIS to clip a raster temperature layer down to the size of the area I'm interested in using a polygon. The resulting clipped layer is a raster that has pixel ...
user avatar
2 votes
1 answer
39 views

Vector Difference Multistring lines doesn't work 100% (QGIS)

I'm trying to substract one layer with multilinestring lines from another one. However, the layer that I get does have some (parts of) lines substracted, but not all. Does anyone know another tool ...
user avatar
0 votes
0 answers
103 views

Clip data while reading file into Python with GeoPandas

Geopandas is able to read in only part of a file using: roi= geopandas.GeoDataFrame(geometry) indexed_data = geopandas.read_file("path-to-file", mask=roi) or geopandas.read_file("path-...
user avatar
  • 71
0 votes
0 answers
76 views

How to overlay a shapefile with an interpolated python map?

I am new to using python for processing rasters. I have an interpolated map that I have divided into a grid system. I need to overlay a field boundary (shapefile) and clip it to be within the boundary....
user avatar
  • 463
0 votes
1 answer
25 views

Failing to clip Corine land cover to a 3km buffer zone

I am trying to clip a Corine land cover shapefile to a 3km buffer zone so I can get the land use types + hectare amounts of that 3km radius. Firstly, it fails to clip the pastures attribute to the ...
user avatar
  • 1
2 votes
2 answers
123 views

Problem with CRS re-projection for a clipping a vector layer (EPSG 3035 to 4326) in QGIS

I want to clip my vector layers depicting species occurrences in a german area with a polygon that I drew from a previous project. Here is my problem, species layers are in EPSG 4326 and my polygon (...
user avatar
  • 399
4 votes
1 answer
92 views

Raster pixel values changing when raster is clipped

I have downloaded a couple of (Sentinel-2) raster files and would like to clip them down to be a smaller size. However, when I clip them the output file has a wider range of pixel values than the ...
user avatar
  • 85
0 votes
1 answer
133 views

Multiprocessing clipping Python rasterio/rioxarray

Clipping a raster often takes a larger percentage of my computation time, therefore I want to try it in parallel. I tried multiprocessing with Python's multiprocessing or pathos. But I often either ...
user avatar
1 vote
1 answer
250 views

Google Earth Engine: Clip ImageCollection with a grid (FeatureCollection) into several segments

I want to clip an ImageCollection with a grid (FeatureCollection) in Google Earth Engine. Every image in the ImageCollection should be clipped with every feature in the FeatureCollection. I need all ...
user avatar
  • 127
0 votes
0 answers
36 views

How to clip custom area from raster data?

I need to cut out the area from the raster data. The method in qgis(Clip by Extent > Draw on canvas) is only selecting a strict rectangle, while my raster rotated. For example, I need to cut out ...
user avatar
0 votes
1 answer
36 views

Using Raster Clip

I’m not super experienced in ArcMap, but I’m trying to clip an IDW to the outline of a grid of my study area in Mobile Bay (and the Mississippi Sound). Problem is that when I clip it, it looks weird. ...
user avatar
3 votes
1 answer
45 views

Gdalwarp clip with negative buffer

Is there any simple way to change this command: gdalwarp -tr 10 10 -cutline "shape.shp" -crop_to_cutline -of GTiff "S1A_IW_GRDH_1SDV_20200719T161950_20200719T162015_033526_03E28C_C720....
user avatar
0 votes
0 answers
55 views

Removing features from the attribute table that were deleted from the map via vector overlay

I am trying to do some mapping of precinct level voter analysis in new US districts. In order to do so, I have precincts overlay the district shape, and then I clip so the precincts match the district ...
user avatar
1 vote
1 answer
85 views

Cropping with GDAL python outputs a black section in the image

I am trying to crop an image using GDAL python. I have tried using both gdal.Warp and gdal.Translate, and both keep bringing the same result. I have an image that I have orthorectified using gdal.Warp ...
user avatar
1 vote
1 answer
38 views

Clip a vector without losing geometries - QGIS 3.22

I experienced a lot of issues trying to keep only a German region from the vector I have of Europe. I've tried everything, using mask+clip with my shapefile of the German region, using "Select by ...
user avatar
  • 399
1 vote
1 answer
28 views

Clip vector with ogr2ogr by reprojecting geometries on the fly

I have two vector geometries which I want to clip using ogr2ogr Geopackage with buildings in EPSG:28992 Shapefile with a neighborhood in EPSG:4326 I managed to clip the buildings using the ...
user avatar
  • 11
1 vote
0 answers
43 views

Layer extent value not matching with CRS extent

I want to clip a polygon layer to an extent of another polyline layer. I want to use extract layer by extent processing tool, I want to automatically fetch the extent of my polyline layer along with ...
user avatar
0 votes
1 answer
313 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 ...
user avatar
0 votes
1 answer
15 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 ...
user avatar
1 vote
1 answer
38 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 ...
user avatar
  • 21
1 vote
1 answer
73 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. ...
user avatar
  • 21
0 votes
0 answers
119 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,...
user avatar
  • 1
0 votes
1 answer
101 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 ...
user avatar

1
2 3 4 5
25