Input / Output |
|
|
read_file |
Read OGR supported file format into a GeoDataFrame. |
root |
write_file |
Write the GeoDataFrame to an OGR supported file format. |
DataFrame |
write_geojson |
Serialize to GeoJSON FeatureCollection representation. |
DataFrame |
write_geojsonseq |
Serialize to newline delimited GeoJSON FeatureCollection representation. |
DataFrame |
Parsing |
|
|
from_wkb |
Parse geometries from Well-Known Binary (WKB) representation |
root |
from_wkt |
Parse geometries from Well-Known Text (WKT) representation |
root |
from_ewkt |
Parse geometries from Extended Well-Known Text (EWKT) representation |
root |
from_geojson |
Parse geometries from GeoJSON representation. |
root |
from_xy |
Create points from x, y (, z) coordinates |
root |
from_shapely |
Parse geometries from shapely objects |
root |
from_geopandas |
Create GeoDataFrame or GeoSeries from Geopandas equivalent. |
root |
Serialization |
|
|
to_wkt |
Serialize each geometry as WKT (Well-Known Text). |
root , Expr , Series , DataFrame |
to_ewkt |
Serialize each geometry as EWKT (Extended Well-Known Text). |
root , Expr , Series , DataFrame |
to_wkb |
Serialize each geometry as WKB (Well-Known Binary). |
root , Expr , Series , DataFrame |
to_geojson |
Serialize each geometry as GeoJSON. |
root , Expr , Series , DataFrame |
to_dict |
Convert each geometry to a GeoJSON-like Python dict object. |
root , Expr , Series , DataFrame |
to_shapely |
Convert each geometry to a Shapely object. |
root , Expr , Series , DataFrame |
to_geopandas |
Convert DataFrame or Series to GeoPandas equivalent. |
Series , DataFrame |
__geo_interface__ |
Return a dict representation of a GeometryCollection or FeatureCollection |
Series , DataFrame |
General operations |
|
|
geometry_type |
Return the type ID of each geometry.. |
root , Expr , Series |
dimensions |
Return the inherent dimensionality of each geometry.. |
root , Expr , Series |
coordinate_dimension |
Return the coordinate dimension of each geometry.. |
root , Expr , Series |
area |
Return the area of each geometry. |
root , Expr , Series |
bounds |
Return the bounds of each geometry. |
root , Expr , Series |
length |
Return the length of each geometry. |
root , Expr , Series |
minimum_clearance |
Return the minimum clearance of each geometry.. |
root , Expr , Series |
x |
Return the x value of Point geometries. |
root , Expr , Series |
y |
Return the y value of Point geometries. |
root , Expr , Series |
z |
Return the z value of Point geometries. |
root , Expr , Series |
m |
Return the m value of Point geometries. |
root , Expr , Series |
count_coordinates |
Return the number of coordinates in each geometry. |
root , Expr , Series |
coordinates |
Return the coordinates of each geometry. |
root , Expr , Series |
count_geometries |
Return the number of parts in multipart geometries. |
root , Expr , Series |
get_geometry |
Return the nth part of multipart geometries. |
root , Expr , Series |
count_points |
Return the number of points in LineString geometries. |
root , Expr , Series |
get_point |
Return the nth point of LineString geometries. |
root , Expr , Series |
count_interior_rings |
Return the number of interior rings in Polygon geometries. |
root , Expr , Series |
get_interior_ring |
Return the nth ring of Polygon geometries. |
root , Expr , Series |
exterior_ring |
Return the exterior ring of Polygon geometries. |
root , Expr , Series |
interior_rings |
Return the list of interior rings for Polygon geometries. |
root , Expr , Series |
parts |
Return a list of parts for multipart geometries. |
root , Expr , Series |
precision |
Return the precision of each geometry. |
root , Expr , Series |
set_precision |
Set the precision of each geometry to a certain grid size. |
root , Expr , Series |
distance |
Return the distance of each geometry to other. |
Expr , Series |
hausdorff_distance |
Return the geometries hausdorff distance to other geometries. |
Expr , Series |
frechet_distance |
Return the geometries frechet distance to other geometries. |
Expr , Series |
Projection operations |
|
|
srid |
Return the SRID of each geometry. |
root , Expr , Series |
set_srid |
Set the SRID of each geometry to a given value. |
root , Expr , Series |
to_srid |
Transform the coordinates of each geometry into a new CRS. |
root , Expr , Series |
Unary predicates |
|
|
has_z |
Return True for geometries that has z coordinate values. |
root , Expr , Series |
has_m |
Return True for geometries that has m coordinate values. |
root , Expr , Series |
is_ccw |
Return True for linear geometries with counter-clockwise coord sequence. |
root , Expr , Series |
is_closed |
Return True for closed linear geometries. |
root , Expr , Series |
is_empty |
Return True for empty geometries. |
root , Expr , Series |
is_ring |
Return True for ring geometries. |
root , Expr , Series |
is_simple |
Return True for simple geometries. |
root , Expr , Series |
is_valid |
Return True for valid geometries. |
root , Expr , Series |
is_valid_reason |
Return an explanation string for the invalidity of each geometry. |
root , Expr , Series |
Binary predicates |
|
|
crosses |
Return True when each geometry crosses other. |
Expr , Series |
contains |
Return True when each geometry contains other. |
Expr , Series |
contains_properly |
Return True when each geometry properly crosses other. |
Expr , Series |
covered_by |
Return True when each geometry is covered by other. |
Expr , Series |
covers |
Return True when each geometry covers other. |
Expr , Series |
disjoint |
Return True when each geometry is disjoint from other. |
Expr , Series |
dwithin |
Return True when each geometry is within given distance to other. |
Expr , Series |
intersects |
Return True when each geometry intersects other. |
Expr , Series |
overlaps |
Return True when each geometry overlaps other. |
Expr , Series |
touches |
Return True when each geometry touches other. |
Expr , Series |
within |
Return True when each geometry is within other. |
Expr , Series |
equals |
Return True when each geometry is equal to other. |
Expr , Series |
equals_exact |
Return True when each geometry is equal to other. |
Expr , Series |
equals_identical |
Return True when each geometry is equal to other. |
Expr , Series |
relate |
Return the DE-9IM intersection matrix of each geometry with other. |
Expr , Series |
relate_pattern |
Return True when the DE-9IM intersection matrix matches a given pattern. |
Expr , Series |
Set operations |
|
|
union |
Return the union of each geometry with other. |
Expr , Series |
unary_union |
Return the unary union of each geometry. |
Expr , Series |
coverage_union |
Return the coverage union of each geometry with other. |
Expr , Series |
intersection |
Return the intersection of each geometry with other. |
Expr , Series |
difference |
Return the difference of each geometry with other. |
Expr , Series |
symmetric_difference |
Return the symmetric difference of each geometry with other. |
Expr , Series |
Constructive operations |
|
|
boundary |
Return the topological boundary of each geometry. |
root , Expr , Series |
buffer |
Return a buffer around each geometry. |
root , Expr , Series |
offset_curve |
Return a line at a given distance of each geometry. |
root , Expr , Series |
centroid |
Return the centroid of each geometry. |
root , Expr , Series |
center |
Return the center of each geometry. |
root , Expr , Series |
clip_by_rect |
Clips each geometry by a bounding rectangle. |
root , Expr , Series |
convex_hull |
Return the convex hull of each geometry. |
root , Expr , Series |
concave_hull |
Return the concave hull of each geometry. |
root , Expr , Series |
segmentize |
|
root , Expr , Series |
envelope |
Return the envelope of each geometry. |
root , Expr , Series |
extract_unique_points |
|
root , Expr , Series |
build_area |
|
root , Expr , Series |
make_valid |
|
root , Expr , Series |
normalize |
|
root , Expr , Series |
node |
|
root , Expr , Series |
point_on_surface |
Return a point that intersects each geometry. |
root , Expr , Series |
remove_repeated_points |
Remove the repeated points for each geometry. |
root , Expr , Series |
reverse |
Reverse the coordinates order of each geometry. |
root , Expr , Series |
simplify |
Simplify each geometry with a given tolerance. |
root , Expr , Series |
flip_coordinates |
Flip the x and y coordinates of each geometry. |
root , Expr , Series |
minimum_rotated_rectangle |
|
root , Expr , Series |
snap |
|
Expr , Series |
shortest_line |
Return the shortest line between each geometry and other. |
Expr , Series |
sjoin |
Perform a spatial join operation with another DataFrame. |
DataFrame , LazyFrame |
Affine transforms |
|
|
affine_transform |
|
root , Expr , Series |
translate |
|
root , Expr , Series |
rotate |
|
root , Expr , Series |
scale |
|
root , Expr , Series |
LineString operations |
|
|
interpolate |
|
root , Expr , Series |
line_merge |
|
root , Expr , Series |
shared_paths |
|
Expr , Series |
Aggregation |
|
|
total_bounds |
Return the total bounds of all geometries. |
root , Expr , Series |
multipoint |
Aggregate Point geometries into a single MultiPoint. |
root , Expr , Series |
multilinestring |
Aggregate LineString geometries into a single MultiLineString. |
root , Expr , Series |
multipolygon |
Aggregate Polygon geometries into a single MultiPolygon. |
root , Expr , Series |
geometrycollection |
Aggregate geometries into a single GeometryCollection. |
root , Expr , Series |
collect |
Aggregate geometries into a single MultiPart geometry or GeometryCollection. |
root , Expr , Series |
union_all |
Return the union of all geometries. |
root , Expr , Series |
coverage_union_all |
Return the coverage union of all geometries. |
root , Expr , Series |
intersection_all |
Return the intersection of all geometries. |
root , Expr , Series |
difference_all |
Return the difference of all geometries |
root , Expr , Series |
symmetric_difference_all |
Return the symmetric difference of all geometries. |
root , Expr , Series |
polygonize |
|
root , Expr , Series |
voronoi_polygons |
Return a Voronoi diagram of all geometries vertices. |
root , Expr , Series |
delaunay_triangles |
Return a Delaunay triangulation of all geometries vertices. |
root , Expr , Series |
Plotting |
|
|
plot |
Create a map plot of a GeoSeries or GeoDataFrame. |
Series , DataFrame |