rapidsai / cuspatial

CUDA-accelerated GIS and spatiotemporal algorithms
https://docs.rapids.ai/api/cuspatial/stable/
Apache License 2.0
616 stars 154 forks source link

[QST]Do all coordinates for points/polygons/lines need to be in WGS84 lat/lon prior to being used by cuSpatial? #78

Closed yidong72 closed 2 years ago

yidong72 commented 5 years ago

• Is there any requirement for “OGC validity” of polygons? Issues such as self-intersections, “back tracking”, repeating points, etc. can be problematic at times. https://www.opengeospatial.org/standards/sfa • Are there any min/max latitude ranges? Sometimes things go bad if approaching either north or south pole. • Are there any special considerations for polygons or lines that cross the +/- 180 degree longitude line? For example, hurricane tracks/windfields near Fiji and New Zealand or the Aleutian Islands of Alaska (Attu), or the coastline of Russia. • Winding order of exterior/interior rings? Thanks

zhangjianting commented 5 years ago

Currently cuSpatial is designed as a set of APIs to speed up certain geospatial operations instead of a complete framework/platform to replace existing ones. As such, cuSpatial assumes the inputs are valid which can be checked by existing third-party packages. With more resources available and more community contributions, it is possible to add new modules/features for robustness. for the last question, cuSpatial follows ESRI shapefile standard on vertex orientation and supports multi-polygons and/or polygons with multiple rings. For polygons with multiple rings, the first ring is the exterior ring and the others are interior rings. Please also see discussions at https://github.com/rapidsai/cuspatial/issues/51

github-actions[bot] commented 3 years ago

This issue has been marked stale due to no recent activity in the past 30d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be marked rotten if there is no activity in the next 60d.

github-actions[bot] commented 3 years ago

This issue has been marked rotten due to no recent activity in the past 90d. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed.

harrism commented 2 years ago

Do all coordinates for points/polygons/lines need to be in WGS84 lat/lon prior to being used by cuSpatial?

No. Generally the APIs apply to Cartesian coordinates, except lonlat_to_cartesian. If the documentation for a specific function is not clear on this, please open a doc issue.

cuSpatial doesn't currently support coordinate reference systems and does not currently provide projection between coordinate systems, but this is something we are starting to explore.

Closing this now as answered.