Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

geodataframe and geoseries

import sys
import geopandas as gpd

shp = (sys.argv[1])

gdf = gpd.read_file(shp)

union = gdf.unary_union

env = union.envelope

envgdf = gpd.GeoDataFrame()

envgdf['geometry'] = env
envgdf.geometry.name

print("
GeoDataFrame :
", envgdf)
Source by gis.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #geodataframe #geoseries
ADD COMMENT
Topic
Name
5+7 =