Skip to main content

Questions tagged [clip]

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

0 votes
0 answers
12 views

Google Earth Engine script for cropping land use Image collection to shp and producing csv aggregate output

I'm new to Google Earth Engine and hoping to get some help. I'm using ee.ImageCollection("GOOGLE/DYNAMICWORLD/V1") to look at land use types (specifically tree cover - band 1) within a ...
0 votes
1 answer
33 views

Clip polygon with vector points freehand

I am trying to crop/clip a polygon with overlapping vector data points in QGIS, so that I can extract all points from a certain area. However, I want to clip not based on the polygon but on a freehand ...
0 votes
1 answer
209 views

Crop a large point cloud with GeoJSON defining the geometries of sub point cloud

I have a large point cloud (a city model) and would like to get the point clouds of every building in the city. I already have the GeoJSON file with the geometries of every single building in the city....
3 votes
2 answers
472 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 ...
0 votes
1 answer
398 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? ...
9 votes
3 answers
2k views

Can ogr2ogr "reverse clip" (or "clip out" or "erase" or "difference") one shapefile from another?

Is there a means in ogr2ogr to "clip out" one shapefile from another? I know ogr2ogr -clipsrc B.shp out.shp A.shp will remove any part of A.shp that is NOT in B.shp. Is there an ogr2ogr command to ...
2 votes
2 answers
343 views

Clipping raster image using coordinates from CSV file with Python

I am trying to clip a raster image into a small image using coordinates in a CSV file. In the CSV file, I have minx,maxx,miny,maxy as the coordinates which makes the bounding box and clips the images. ...
0 votes
1 answer
19 views

How to Output Singlepart features When Clipping in ArcGIS Pro

I'm trying to clip two different layers together in ArcGIS Pro but I just discovered it seems like all the clip tools I've tried (clip, pairwise clip, clip layer, intersect) will condense the ...
0 votes
0 answers
50 views

How to keep attributes after a clipping operation in PyQGIS?

I'm trying to do a spatial clipping operation between 2 point layers, representing buildings and earthquakes, and a buffer area created by the user. The problem is that after operation, all attributes ...
2 votes
2 answers
2k views

Highlighting area of map in QGIS

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, ...
3 votes
2 answers
135 views

Clip data in GeoPandas to keep everything not in polygons

I have two shapefiles. One is Point Data (Call it Adj). The other is a polygon(s) shape file. I want to clip the data to keep only the points that are not in the polygons. Is there an easy way to do ...
3 votes
2 answers
1k views

QGIS Clipping raster with vector-getting all touching pixels

Is there a setting I can change in order to get all the pixels of the raster layer which are touched by the vector boundary in the clipped image? Right now, only those pixels which lie completely ...
0 votes
2 answers
24 views

How to use ogr2ogr -clipdstsql?

This works (A), $ ogrinfo -dialect SQLITE -sql "SELECT ST_Buffer(ST_GeomFromText('POLYGON ((120.81313 24.18337 ... Layer name: SELECT OGRFeature(SELECT):0 POLYGON ((120.702569638856 24....
0 votes
2 answers
1k views

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=...
3 votes
1 answer
489 views

Cropping osm.pbf data without missing overlapping features?

for our offline maps tool we use *.osm.pbf data for input. As we often need cross border selections or just a country with some "buffer" around borders we use cropped osm data using osmctools. ...

15 30 50 per page
1
2 3 4 5
92