-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR fixes #888, raises when input is not an integer array. This PR also fixes a bug in `_from_point_xy` where empty series other than points are incorrectly constructed. An empty linestring array should be properly nested with the leaf column containing 0 elements. Currently it is constructed as a flat array, resulting in a ill-constructed geocolumn. Authors: - Michael Wang (https://github.com/isVoid) Approvers: - H. Thomson Comer (https://github.com/thomcom) URL: #905
- Loading branch information
Showing
3 changed files
with
57 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright (c) 2023, NVIDIA CORPORATION. | ||
|
||
from cudf.core.dtypes import ListDtype | ||
|
||
|
||
def point_dtype(base_dtype): | ||
return ListDtype(base_dtype) | ||
|
||
|
||
def multipoint_dtype(base_dtype): | ||
return ListDtype(ListDtype(base_dtype)) | ||
|
||
|
||
def linestring_dtype(base_dtype): | ||
return ListDtype(ListDtype(ListDtype(base_dtype))) | ||
|
||
|
||
def polygon_dtype(base_dtype): | ||
return ListDtype(ListDtype(ListDtype(ListDtype(base_dtype)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters