A GeoDataFrame is a tabular data structure that contains a column which contains a GeoSeries storing geometry.
GeoDataFrame
GeoSeries
GeoDataFrame(*args[, geometry, crs])
A GeoDataFrame object is a pandas.DataFrame that has a column with geometry.
GeoDataFrame.from_file(filename, **kwargs)
GeoDataFrame.from_file
Alternate constructor to create a GeoDataFrame from a file.
GeoDataFrame.from_features(features[, crs, …])
GeoDataFrame.from_features
Alternate constructor to create GeoDataFrame from an iterable of features or a feature collection.
GeoDataFrame.from_postgis(sql, con[, …])
GeoDataFrame.from_postgis
Alternate constructor to create a GeoDataFrame from a sql query containing a geometry column in WKB representation.
GeoDataFrame.to_file(filename[, driver, …])
GeoDataFrame.to_file
Write the GeoDataFrame to a file.
GeoDataFrame.to_json([na, show_bbox, drop_id])
GeoDataFrame.to_json
Returns a GeoJSON representation of the GeoDataFrame as a string.
GeoDataFrame.to_parquet(path[, index, …])
GeoDataFrame.to_parquet
Write a GeoDataFrame to the Parquet format.
GeoDataFrame.to_feather(path[, index, …])
GeoDataFrame.to_feather
Write a GeoDataFrame to the Feather format.
GeoDataFrame.to_postgis(name, con[, schema, …])
GeoDataFrame.to_postgis
Upload GeoDataFrame into PostGIS database.
GeoDataFrame.crs
The Coordinate Reference System (CRS) represented as a pyproj.CRS object.
pyproj.CRS
GeoDataFrame.set_crs([crs, epsg, inplace, …])
GeoDataFrame.set_crs
Set the Coordinate Reference System (CRS) of the GeoDataFrame.
GeoDataFrame.to_crs([crs, epsg, inplace])
GeoDataFrame.to_crs
Transform geometries to a new coordinate reference system.
GeoDataFrame.estimate_utm_crs([datum_name])
GeoDataFrame.estimate_utm_crs
Returns the estimated UTM CRS based on the bounds of the dataset.
GeoDataFrame.rename_geometry(col[, inplace])
GeoDataFrame.rename_geometry
Renames the GeoDataFrame geometry column to the specified name.
GeoDataFrame.set_geometry(col[, drop, …])
GeoDataFrame.set_geometry
Set the GeoDataFrame geometry using either an existing column or the specified input.
GeoDataFrame.dissolve([by, aggfunc, …])
GeoDataFrame.dissolve
Dissolve geometries within groupby into single observation.
GeoDataFrame.explode([column])
GeoDataFrame.explode
Explode muti-part geometries into multiple single geometries.
GeoDataFrame.plot
alias of geopandas.plotting.GeoplotAccessor
geopandas.plotting.GeoplotAccessor
GeoDataFrame.sindex
Generate the spatial index
GeoDataFrame.has_sindex
Check the existence of the spatial index without generating it.
GeoDataFrame.cx
Coordinate based indexer to select by intersection with bounding box.
GeoDataFrame.__geo_interface__
Returns a GeoDataFrame as a python feature collection.
GeoDataFrame.iterfeatures([na, show_bbox, …])
GeoDataFrame.iterfeatures
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.
DataFrame
geometry