A GeoDataFrame is a tabular data structure that contains a column which contains a GeoSeries storing geometry.
GeoDataFrame
GeoSeries
GeoDataFrame(*args, **kwargs)
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(self, filename[, …])
GeoDataFrame.to_file
Write the GeoDataFrame to a file.
GeoDataFrame.to_json(self[, na, show_bbox])
GeoDataFrame.to_json
Returns a GeoJSON representation of the GeoDataFrame as a string.
GeoDataFrame.to_parquet(self, path[, index, …])
GeoDataFrame.to_parquet
Write a GeoDataFrame to the Parquet format.
GeoDataFrame.to_feather(self, path[, index, …])
GeoDataFrame.to_feather
Write a GeoDataFrame to the Feather format.
GeoDataFrame.to_postgis(self, name, con[, …])
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(self[, crs, epsg, …])
GeoDataFrame.set_crs
Set the Coordinate Reference System (CRS) of the GeoDataFrame.
GeoDataFrame.to_crs(self[, crs, epsg, inplace])
GeoDataFrame.to_crs
Transform geometries to a new coordinate reference system.
GeoDataFrame.rename_geometry(self, col[, …])
GeoDataFrame.rename_geometry
Renames the GeoDataFrame geometry column to the specified name.
GeoDataFrame.set_geometry(self, col[, drop, …])
GeoDataFrame.set_geometry
Set the GeoDataFrame geometry using either an existing column or the specified input.
GeoDataFrame.dissolve(self[, by, aggfunc, …])
GeoDataFrame.dissolve
Dissolve geometries within groupby into single observation.
GeoDataFrame.explode(self)
GeoDataFrame.explode
Explode muti-part geometries into multiple single geometries.
GeoDataFrame.plot(self, \*args, \*\*kwargs)
GeoDataFrame.plot
Plot a GeoDataFrame.
GeoDataFrame.sindex
GeoDataFrame.__geo_interface__
Returns a GeoDataFrame as a python feature collection.
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