Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [clip]

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

1
vote
1answer
18 views

Clipping images using GDAL

I would like to clip some tiff files using cutline from kml file. .\gdalwarp.exe -of GTiff -co COMPRESS=LZW -cutline boundingbox.kml source.tif result.tif It works quite well but as a result I have ...
0
votes
1answer
21 views

Clip Data Layer to only include continental United States

I'm very much a beginner to ArcMap. Is there an easy way I can clip the Continental United States from this data layer and get rid of Alaska, Hawaii, and the other islands. I saw some tutorials ...
1
vote
0answers
18 views

Trouble matching SRTM data clip to slippy tile extents

I'm trying to extract the SRTM data for some slippy tile in QGIS, and it doesn't seem clipping to the right extents. Here are some of the data for the tiles that I'm using to test (this data comes ...
3
votes
2answers
41 views

Create a bounding box from point shapefile

I have a BigTiff image and an associate point shapefile with features. I would like to know how can I create a bounding box from that shapefile to create/clip images around that points to train a ...
0
votes
1answer
27 views

Clip tool in ArcGIS Pro not working?

I'm trying to clip "Terrain" raster I downloaded from the portal (https://www.arcgis.com/home/item.html?id=58a541efc59545e6b7137f961d7de883) in the shape of a polygon (a country's boundaries) by using ...
0
votes
0answers
17 views

How to mask a raster layer (interpolated surface) onto a polygon layer? [duplicate]

I have performed interpolation (IDW) for average monthly precipitation and temperature values for Europe. For my project, I'm focusing on the UK and Sweden so I'm wondering can I clip or mask the ...
0
votes
1answer
22 views

Reading raster in Python to Clip USGS 3DEM?

I want to clip the elevation data (3DEM) downloaded from USGS website. The raster-clip tool "Clip (data management)" in ArcGIS Pro works very well. However, I cannot clip it using the python function "...
0
votes
0answers
17 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
0answers
26 views

PyQGIS clip results in empty layers

I am creating a Python/PyQGIS tool in QGIS 2.18 which combines a few functions: Extract several attributes from source layer Redefine a coordinate system Optional: clip the source layer with a ...
0
votes
1answer
31 views

Clip bathymetry raster file from vector mask layer its not working in QGIS 3.4.3

I'm trying to extract bathymetry of Mediterranean Sea raster GeoTIFF file (downloaded from https://www.bodc.ac.uk/data/hosted_data_systems/gebco_gridded_bathymetry_data/gebco_30_second_grid/) from ...
0
votes
0answers
9 views

Clip the underlying map into several separate layers at once based on the rectangular fishnet

This is the final map of yield data. In order to see the details at a finer level, I want to cut the sections of the map overlain by the rectangular grid and display them as separate maps. Is it ...
1
vote
0answers
17 views

Polygon Clip While mainting Ratio Policy

In my project, I am using drivetime polygons to clip block group data to get the population in that drive time. The drive time shapefile I am testing on has 5 polygons. I want to update the population ...
1
vote
0answers
60 views

Rasterizing shapefile with rasterio and gdal gives all cells 0 values [closed]

I am trying to rasterize my shapefile (20 polygons) with rasterio and fiona and turn the new raster into a mask for clipping. I need to rasterize my all polygons in my shapefile and turn on mask ...
2
votes
0answers
28 views

How to export a single feature (line) from multiple layers and export to individual layers?

I have multiple vector layers representing a time series. Each layer contains many lines each. I want to select a single specific line from each of these these layers and save it to another layer. ...
0
votes
1answer
31 views

Clip Raster by Mask Layer to jpg not tiff

Is it possible to set your output file for the Clip Raster by Mask Layer tool as a jpg and not a tiff? Are there extra parameters or commands I can use to do this? I can export as tiff and convert ...
0
votes
1answer
41 views

QGIS: Clip a shapefile based on values in a raster

I would like to clip a shapefile based on the values of a raster file beneath it, using QGIS. The specific context is a shapefile of Local Government Areas overlaid onto a population density raster. ...
0
votes
0answers
20 views

R Clip Simple Features Multiple Polygons with a Polygon (or another multi-polygon)

I have two polygon layers, a set of aquifer polygons and a set of district boundaries. I'm trying to clip the aquifer layers to be in only the districts that I want. From examining the other posts ...
2
votes
0answers
31 views

Error when clipping raster in QGIS

I have done it many times (clipping a raster with a polygon layer or by extension) but today I got an error for the first time and I don't know how to solve it. I am always using the same type of ...
0
votes
0answers
43 views

Looping through Clip Raster By Mask function

I created a script to loop through the Clip Raster By Mask function. I assign my personal files to the variables and use a nested for loop to iterate through the feature ID numbers in my selected ...
1
vote
1answer
32 views

Clipping multi-band Sentinel-2 composites in ArcMap?

I am using Sentinel-2 images and I want to clip the image with a shape file I made. (The shape file was smoothed with Smooth polygon with a 10m PAEK tolerance). I have tried the Raster clip tool and ...
0
votes
0answers
14 views

Clipping raster image in ArcGIS problem column and row

I am using ArcMap 10.6. Imagine I have x.tif (100x100 pixels) and Y.tif(10x10 pixels). If I have to clip x.tif with the extent of Y.tif, the result of Z.tif should be 10x10 pixels. but the result of ...
0
votes
1answer
16 views

How to determine the average NDVI value of a selected area?

I'm new to ArcMap 10.2 and trying to get NDVI data of city centers. So my problem is, after I'm calculating the NDVI and getting the result raster, I would like to get a mean (average) value of ...
2
votes
0answers
47 views

Load images into a multi-band raster in R?

I have a Landsat image with 11 bands. I need to run k means classification in R. But I do not need the whole of the image as my study area is much smaller. So I have created shapefile of the Region of ...
0
votes
1answer
54 views

Clip raster by raster in ArcMap?

How can I get two different raster layers in ArcMap, that have exact the same edge? I tried clipping or extract by mask but the output looks exactly like the input. I only want to have these ...
1
vote
1answer
39 views

Errors in QGIS (about clip, editing shape etc.) [closed]

1) A few days ago, I run "clip" tool on some shapefile. Green shapefile was obviously full of the area, but after clip process, some regions are lose their area... Why does this error occur? 2) I ...
0
votes
1answer
32 views

Resample rasters after buffering in R

I have a raster stack that has NULL values from applying a focal buffer. They're not NA values but 0. Each layer shares the same extent, but the layers with the larger buffer widths have more 0 values ...
1
vote
1answer
19 views

Keep only one geometry type when clipping polygons to sqlite with ogr2ogr

I have a regular grid of polygons and want to clip them using ogr2ogr. While using sqlite files as destination I stumbled over some wierd behavior: When clipping polygons exactly at their borders, a ...
0
votes
1answer
52 views

Adding xy data to ArcGIS Desktop and converting it to grid that is clippable?

I have an Excel file with x, y coordinates (lat, lon) and also a value column for my index of interest. I added the data using file->Add data->Add xy data Then I want to produce a 'grid' of this ...
0
votes
1answer
30 views

Clip OL TileLayer by Vector AND stop it from fetching the tiles

I'm trying to clip a layer by vector in OpenLayers 5. I've found this answer that kind of works, but it does not solve my specific problem, namely bandwidth. I'm combining WMTS services from two ...
2
votes
1answer
40 views

Export shapefile to CSV files by a grid I drew in a image

The shapefile is in orange and I need to export them into (1.csv and 2.csv etc...) corresponding to each grid I drew in the map. Is there any way this can be done in a single process?
0
votes
1answer
71 views

Creating automated clipping in QGIS

I want to clip out 500 - 1000 cut-outs of 500px*500px of an image (a city area) (.tiff) and a shapefile layer above it (.json or .csv). These files are big for a manual process as I have to select the ...
0
votes
1answer
20 views

Capturing data in clip from smaller extent

What I am trying to perform is a clip what captures the shoreline on a town in CT. I have the town boundary and I can use the buffer to extrude the polygon but I have wondering if there was an easier ...
0
votes
0answers
56 views

Clip all layers of a GeoPackage (GPKG) in one step

I would like to clip all layers of a GPKG-File to a given extend (canvas, mask layer, rectangle...) in one step. I could use clipping in batch mode but isn't there a nicer solution doing this in one ...
2
votes
1answer
46 views

Error when clipping raster with vector layer

I'm trying to clip a raster (GeoTIFF) with a vector layer in QGIS (version 2.18). I get the error "ERROR 1: Attempt to create 0x0 dataset is illegal,sizes must be larger than zero." when I changed ...
0
votes
1answer
79 views

Extract Raster to Multiple Rasters by List of Values in R?

I'd like to use the Raster package in R to process a single DEM. I'd like to use a pre-determined list of elevation values to extract multiple raster datasets from this DEM. Not all values are of ...
1
vote
1answer
103 views

Splitting LAS file into smaller LAS files by shapefile geometry boundaries - using PDAL or Global Mapper. [duplicate]

I've looked up pdal documentation on how to clip LAS point cloud files:- https://pdal.io/workshop/exercises/analysis/clipping/clipping.html Referencing this example, and having a quick look around, ...
0
votes
2answers
41 views

Creating empty geodatabase with all feature datasets according to another geodatabase structure using ArcPy?

I have a file geodatabase which includes a lot of feature datasets and each feature dataset has lots of Features. I am going to do clipping through all the Features using ArcPy Code. However, the ...
1
vote
2answers
52 views

Checking for already done process for clipping features using ArcPy?

I have Python code for clipping Features in a File GDB which is basically correct and works nicely. However, I have a big File GDB in which there are a lot of featuredatsets including many Features. ...
1
vote
1answer
50 views

Using iteration in Model Builder for Clipping features in an ArcGIS File Geodatabase

I have to Clip the data in a file Geodatabase in which there are about 80 Feature Datasets which includes about 20 feature classes in each one of the Feature Datasets. I have created the model once ...
0
votes
1answer
89 views

How to crop TIFF image without losing classes in QGIS 3.2?

I am trying to crop a TIFF file in QGIS 3.2. What I am currently doing is going to Raster -> Extraction -> Clip Raster by Extent... . Then I type in my min and max x,y values. The new raster layer is ...
1
vote
0answers
20 views

Cannot clip a raster excluding dataset

I'm tryng to clip a raster with a shapefile using the tool in QGIS 2.18: Raster--> Extraction--> Clip. Since I want not only to clip the raster layer, but also clip the dataset in order to have a ...
0
votes
1answer
50 views

Using Google Earth Engine to clip images according to region polygon shape when exporting to Drive?

Normally, I do export images which are rectangles whatever the shape of the region is, then I clip them on a GIS software. Is there a way to do it directly in GEE? This is the code I use for ...
1
vote
1answer
52 views

Crop a raster layer given lat/lon ranges in QGIS 3.2?

I uploaded a landsat raster layer in QGIS 3.2 and I need to crop it. I noticed that for every pixel QGIS knows the lat/lon value (as expected). Since each pixel has its associated lat/lon coordinate, ...
1
vote
0answers
32 views

Discrepancy in values between Summed Line Lengths and Clip in QGIS

I have a polygon vector layer containing four polygons, corresponding to four Protected Areas in a state in India. a line vector corresponding to all the rivers in that state. Desired output: I want ...
1
vote
1answer
138 views

Subarea download vs Clip to AOI?

I have seen Downloading Subarea vs Clipping Images to AOI using Planet API? and I still do not feel satisfied with the answer so raise this again. So what is really the difference between them? @...
1
vote
2answers
71 views

Cropping in a shape of catchment area (not rectangular) in R

I have daily rainfall values in a NetCDF (.nc) file which is of larger extent covering a catchment area of a river basin. I want to crop it and extract the rainfall values that are within the ...
0
votes
1answer
30 views

Clipping raster with shapefile

I have the following script that reclassifies rasters and then combines them into one. I am trying to clip the final raster to a shapefile I have. All my research shows that I need to clip it to the ...
2
votes
1answer
47 views

Working with NaN values in channel network in QGIS?

I have downloaded the conditioned 15s HYDROSHEDS dem of asia and after clipping the desired extent proceeded to evaluate the catchment area. However the next step of channel extraction renders NaN ...
1
vote
1answer
31 views

Clipped raster not retained when saved

I have clipped a raster to exact polygon outline using image analysis (ArcMap 10). The resulting temporary clip layer is exactly how I want it to be. However, when I export/save the temporary clip ...
3
votes
1answer
57 views

Clipping polygon layer to another polygon layer based on matching attributes using QGIS?

Working in QGIS, I have two polygon layers: Building Footprint Polygon Layer Parcel Polygon Layer These two layers have a matching field in the attributes known as "Parcel Number". I would like to ...