New answers tagged extents
1
vote
Artificially extend a DEM to clip it
I found a way to do it on Python: (PS: I USED A DIFFERENT DEM FOR THE EXAMPLE, TO DEMONSTRATE HOW TO DEAL WITH BORDERS)
# Open the DEM and extract all the info about it
src = rio.open('IfSAR_merged....
3
votes
Accepted
Converting extent to int is changing value
Rounding before integer worked.
print int(round(extent.YMin)), int(round(extent.XMin)), int(round(extent.YMax)), int(round(extent.XMax))
-46 -90 -45 -89
1
vote
Filter by bounding box in GeoPandas
A quick solution to this if the shape you want to clip by is a box:
from shapely.geometry import box
bbox = box(*df_sussex.total_bounds)
df_clipped = gpd.mask(df, mask=bbox)
It uses the shapely....
Top 50 recent answers are included
Related Tags
extents × 755qgis × 111
raster × 89
arcgis-desktop × 86
coordinate-system × 86
python × 59
openlayers × 58
postgis × 53
r × 53
arcpy × 46
pyqgis × 36
geoserver × 36
arcmap × 29
polygon × 27
arcgis-javascript-api × 25
gdal × 24
wms × 23
coordinates × 23
clip × 23
shapefile × 17
leaflet × 17
qgis-3 × 17
layers × 17
postgresql × 16
arcgis-10.0 × 16