-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: cuspatial.core._column.geocolumn.GeoColumn._from_points_xy
has some type issue
#888
Comments
I would assume you don't want to construct a coordinate array with integers. We should raise an error if the input is an integer column. |
I know that downstream types will be safely converted to the proper type for use with point-in-polygon, I'm not strongly opinionated about this. |
I admit I don't know enough about coordinate representation in GIS applications. Are there any application/coordinate system/storage system that adopts integer to store coordinates? I know morton code is used as a compression technique in some cases but we don't expose them in user code space. Libgeos uses a precision grid to store coordinates, but representation is still is floating point numbers (?). So I'm not sure about supporting additional dtypes in cuSpatial. Reducing the number of dtypes supported also reduces the cost of maintenance. |
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
Version
23.04
On which installation method(s) does this occur?
Rapids-Compose
Describe the issue
This private helper method needs to have some more careful type enumeration taking place. If you create a column using this method from a column of type
int64
, the resulting column contains all zeros.Minimum reproducible example
Relevant log output
Environment details
Other/Misc.
No response
The text was updated successfully, but these errors were encountered: