當前位置: 首頁>>編程示例 >>用法及示例精選 >>正文


Python cuspatial.GeoSeries用法及代碼示例

用法:

class cuspatial.GeoSeries(data: geopandas.geoseries.GeoSeries, index: Optional[Union[cudf.core.index.Index, pandas.core.indexes.base.Index]] = None, dtype=None, name=None, nan_as_null=True)

基礎:cudf.core.series.Series

cuspatial GeoSeries 啟用 GPU-backed 存儲和計算 shapely-like 對象。我們的目標是提供與GeoPandas 相同的函數,此時僅直接支持from_geopandas 和to_geopandas。 cuspatial GIS、索引和軌跡函數取決於存儲在 GeoArrowBuffers 對象中的數組,可通過 pointsmultipointslinespolygons 訪問器訪問。

>>> cuseries.points
    xy:
    0   -1.0
    1    0.0
    dtype: float64

屬性

lines

訪問底層 GeoArrowBuffersLineArray

multipoints

訪問底層 GeoArrowBuffersMultiPointArray

points

訪問底層 GeoArrowBuffersPointsArray

polygons

訪問底層 GeoArrowBuffersPolygonArray

相關用法


注:本文由純淨天空篩選整理自rapids.ai大神的英文原創作品 cuspatial.GeoSeries。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。