GeoDataFrame#
A GeoDataFrame
is a tabular data structure that contains at least
one GeoSeries
column storing geometry.
Constructor#
|
A GeoDataFrame object is a pandas.DataFrame that has one or more columns containing geometry. |
Serialization / IO / conversion#
|
Alternate constructor to create a |
|
Alternate constructor to create GeoDataFrame from an iterable of features or a feature collection. |
|
Alternate constructor to create a |
|
Construct a GeoDataFrame from a Arrow table object based on GeoArrow extension types. |
|
Write the |
|
Returns a GeoJSON representation of the |
|
Returns a python feature collection representation of the GeoDataFrame as a dictionary with a list of features based on the |
|
Write a GeoDataFrame to the Parquet format. |
|
Encode a GeoDataFrame to GeoArrow format. |
|
Write a GeoDataFrame to the Feather format. |
|
Upload GeoDataFrame into PostGIS database. |
|
Encode all geometry columns in the GeoDataFrame to WKB. |
|
Encode all geometry columns in the GeoDataFrame to WKT. |
Projection handling#
The Coordinate Reference System (CRS) represented as a |
|
|
Set the Coordinate Reference System (CRS) of the |
|
Transform geometries to a new coordinate reference system. |
|
Returns the estimated UTM CRS based on the bounds of the dataset. |
Active geometry handling#
|
Renames the GeoDataFrame geometry column to the specified name. |
|
Set the GeoDataFrame geometry using either an existing column or the specified input. |
Return the name of the active geometry column |
Aggregating and exploding#
|
Dissolve geometries within groupby into single observation. |
|
Explode multi-part geometries into multiple single geometries. |
Spatial joins#
|
Spatial join of two GeoDataFrames. |
|
Spatial join of two GeoDataFrames based on the distance between their geometries. |
Overlay operations#
|
Clip points, lines, or polygon geometries to the mask extent. |
|
Perform spatial overlay between GeoDataFrames. |
Plotting#
|
Interactive map based on GeoPandas and folium/leaflet.js |
alias of |
Spatial index#
Generate the spatial index |
|
Check the existence of the spatial index without generating it. |
Indexing#
Coordinate based indexer to select by intersection with bounding box. |
Interface#
Returns a |
|
|
Returns an iterator that yields feature dictionaries that comply with __geo_interface__ |
All pandas DataFrame
methods are also available, although they may
not operate in a meaningful way on the geometry
column. All methods
listed in GeoSeries work directly on an active geometry column of GeoDataFrame.