bigframes.geopandas.GeoSeries#
- class bigframes.geopandas.GeoSeries(data=None, index=None, **kwargs)[source]#
A Series object designed to store geometry objects.
Examples:
>>> import bigframes.geopandas >>> import bigframes.pandas as bpd >>> from shapely.geometry import Point
>>> s = bigframes.geopandas.GeoSeries([Point(1, 1), Point(2, 2), Point(3, 3)]) >>> s 0 POINT (1 1) 1 POINT (2 2) 2 POINT (3 3) dtype: geometry
- Parameters:
data (array-like, dict, scalar value, bigframes.pandas.Series) – The geometries to store in the GeoSeries.
index (array-like, pandas.Index, bigframes.pandas.Index) – The index for the GeoSeries.
kwargs (dict) – Additional arguments passed to the Series constructor, e.g.
name.
Attributes
[Not Implemented] Use
bigframes.bigquery.st_area(series), instead to return the area in square meters.Returns a GeoSeries of lower dimensional objects representing each geometry's set-theoretic boundary.
[Not Implemented] Use
bigframes.bigquery.st_isclosed(series)instead to return a boolean indicating if a shape is closed.Return the x location of point geometries in a GeoSeries
Return the y location of point geometries in a GeoSeries
Methods
__init__([data, index])buffer(distance)difference(other)Returns a GeoSeries of the points in each aligned geometry that are not in other.
distance(other)[Not Implemented] Use
bigframes.bigquery.st_distance(series, other)instead to return the shorted distance between twoGEOGRAPHYobjects in meters.from_wkt(data[, index, session])from_xy(x, y[, index, session])intersection(other)Returns a GeoSeries of the intersection of points in each aligned geometry with other.
simplify(tolerance[, preserve_topology])[Not Implemented] Use
bigframes.bigquery.st_simplify(series, tolerance_meters), instead to set the tolerance in meters.to_wkt()Convert GeoSeries geometries to WKT