GeoDataFrame.
from_postgis
Alternate constructor to create a GeoDataFrame from a sql query containing a geometry column in WKB representation.
GeoDataFrame
column name to convert to shapely geometries
Coordinate reference system to use for the returned GeoDataFrame
Column(s) to set as index(MultiIndex)
Attempt to convert values of non-string, non-numeric objects (like decimal.Decimal) to floating point, useful for SQL result sets
List of column names to parse as dates.
Dict of {column_name: format string} where format string is strftime compatible in case of parsing string times, or is one of (D, s, ns, ms, us) in case of parsing integer timestamps.
{column_name: format string}
Dict of {column_name: arg dict}, where the arg dict corresponds to the keyword arguments of pandas.to_datetime(). Especially useful with databases without native Datetime support, such as SQLite.
{column_name: arg dict}
pandas.to_datetime()
List of parameters to pass to execute method.
If specified, return an iterator where chunksize is the number of rows to include in each chunk.
Examples
>>> sql = "SELECT geom, highway FROM roads" SpatiaLite >>> sql = "SELECT ST_Binary(geom) AS geom, highway FROM roads" >>> df = geopandas.GeoDataFrame.from_postgis(sql, con)