GeoDataFrame Accessor#

General methods and attributes#

xy(df, /[, reverse, frame, drop, name])

Return the x and y location of Point geometries in a GeoDataFrame.

radius(df, /)

Return the radius of geometry.

geoarea(df, /)

Returns a Series containing the geographic area (m2) of each geometry.

geodistance(df, /, other[, align, radius])

Returns a Series containing the `great-circle`__ distance to aligned other via haversine formula.

geodistance_matrix(df, /[, other, radius])

Returns a DataFrame containing the `great-circle`__ distances matrix between in s and other via haversine formula.

geobuffer(df, distance, /, **kwargs)

Creates geographic buffers for GeoDataFrame.

geocentroid(df, /[, weights, max_iter, tol])

Return the centroid of all points via the center of gravity method.

coordinates(df, /, **kwargs)

Gets coordinates from each geometry of GeoDataFrame.

count_coordinates(df, /)

Counts the number of coordinate pairs in each geometry of GeoDataFrame.

has_hole(df, /)

Check if each Polygon geometries have holes.

hole_counts(df, /)

Return the number of holes in each Polygon geometries.

toposimplify(df, /, tolerance[, ...])

Returns a GeoDataFrame containing a simplified representation of each geometry.

Conversion#

to_h3(df, /, resolution[, int_dtype])

Convert Point or Polygon to H3 cell index.

voronoi(df, /[, boundary, only_edges])

Computes a Voronoi diagram from Point geometry.

Projection handling#

cncrs_offset(df, /, from_crs, to_crs)

Fix the offset of the coordinates in China.

Active geometry handling#

drop_geometry(df, /)

Drop the activate geometry column from the GeoDataFrame to return a normal DataFrame.

drop_duplicates_geometry(df, /[, predicate, ...])

Remove duplicate geometry rows.

duplicated_geometry(df, /[, predicate, keep])

Return boolean Series denoting duplicate geometries.

duplicated_geometry_groups(df, /[, predicate])

Labels of duplicate geometries.

Selection#

select_geom_type(df, geom_type, /[, complement])

Binary operator functions#

filter_geometry(df, /, other, predicate[, ...])

Filter GeoDataFrame via the spatial relationship between GeoDataFrame and geometry.

Address handling#

reverse_geocode(df, /[, address, provider, ...])

Reverse geocode Point type GeoDataFrame and get the corresponding addresses.