Skip to main content

All Questions

Tagged with
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 ...
Ekkehardt Rosasee's user avatar
0 votes
0 answers
17 views

Clipping MODIS HDF file in Python

I am trying to clip MODIS Land Surface Temperature in Python for a defined extent. Even though the files have been clipped, the size (X x Y) of the new file is changed. So when I plot the new data, ...
Ashish Ganesh's user avatar
0 votes
1 answer
51 views

Rasterio ValueError

I am trying to clip a bunch of Landsat images with vector mask, but the Rasterio keeps hitting me with following error: ValueError: min() arg is an empty sequence I have not been able to resolve it....
Catallena's user avatar
1 vote
0 answers
69 views

Crop Sentinel-2 raster using a geometry leaves pixels around the edges

I want to crop Sentinel-2 images using a geometry. However, whenever I crop my image, there are some pixels around the border of the raster. For example, the image below is the band 2 of sentinel-2 ...
rrwork___'s user avatar
0 votes
0 answers
69 views

Getting max value of "HeightAboveGround" inside polygons from point cloud

I have geojson file with polygons of tree locations and labels "Tree" (~5,300 polygons). And point cloud made from aerial images and points have extra information "HeightAboveGround&...
fvwVV's user avatar
  • 1
0 votes
2 answers
152 views

Access window out of range in RasterIO(). Requested (0,0) of size 232x608 on raster of 231x608

I'm trying to clip one raster by the other to have the same size. I use this code to do so : IMG1 = gdal.Open("C:/Users/aurel/Downloads/2013-10-26.tif") IMG2 = gdal.Open("C:/Users/aurel/...
Aurélien Lengrand's user avatar
0 votes
0 answers
42 views

Python OGR error when intesecting line by polygon

When I try to find the intersection of a line gdb layer with a polygon layer I get the following error: Can only insert a LineString/MultiLineString/CircularString/CompoundCurve/MultiCurve in a ...
Robert Thomas Almodovar's user avatar
0 votes
1 answer
184 views

Passing geometry dataset type to gdal.Warp() for a clip operation - order of operations and file type confusion

Trying to wrap my head around the correct order of operations and file type(s) required by gdal.Warp(). I have a valid geometry object created from the shapely object.unary_union.convex_hull method. ...
bashity's user avatar
  • 109
0 votes
1 answer
27 views

Clipping a raster via mask on runtime before uploading into GeoServer

I have point data which is being interpolated and a raster is generated. The raster is a rectangular grid and I need the raster of Pakistan only. I'm using shapefile of Pakistan to specify the bounds ...
Hayat Ullah Abid's user avatar
1 vote
1 answer
2k views

Clipping a raster with a multipolygon using rasterio in Python

I'm trying to write a function to clip rasters by a multi-polygon shapefile or GeoJSON in Python using rasterio. So far, I found a good article that I've implemented, but it doesn't seem to work on ...
user2031's user avatar
  • 221
0 votes
2 answers
199 views

Add a polygon as a clip parameter for WMS and WCS layer in Datacube OWS

I am trying to add a clip as a parameter for a WMS and WCS URL end point, but couldn't clip based on a polygon. Adding bbox for WCS endpoint returns the bounding box, not the exact polygon as the name ...
Praj's user avatar
  • 1
0 votes
2 answers
389 views

Clipping with Python gdal warp gives no output

I clipped a TIFF file using gdal warp, but it is not giving out any output clipped raster. I need help in finding why it does this and how to correct this. import gdal ras_in=gdal.Open('C:/Users/Lake....
SVpk's user avatar
  • 1
0 votes
1 answer
2k views

Using gdal warp to clip raster

I am trying to clip a raster data with GDAL warp. I want data values of raster within the buffer. import rasterio as rio import shapely as shp import geopandas as gp import numpy as np raster=rio....
SVpk's user avatar
  • 1
0 votes
1 answer
137 views

GEE clip image with another image generates new shape

Edit: I have changed the clip to updateMask function. when I print the image dimensions it seems to be ok with size, but when I export image GCS and then open again, it adds empty row /column to the ...
ReutKeller's user avatar
  • 2,169
0 votes
1 answer
454 views

Extract data for aoi from preprocessed Landsat CCDC ImageCollection using GEE Python API

I try to extract for a collection of 1 ha square polygons the bands coefficients from a preprocessed Landsat CCDC Google Earth Engine Asset ee.ImageCollection('projects/CCDC/v3'). My plan is the ...
TmtStss's user avatar
  • 23

15 30 50 per page
1
2 3 4 5
8