libcuspatial
24.02.00
|
APIs to project coordinates between coordinate reference systems. More...
Files | |
file | projection.hpp |
file | projection.cuh |
Functions | |
std::pair< std::unique_ptr< cudf::column >, std::unique_ptr< cudf::column > > | cuspatial::sinusoidal_projection (double origin_lon, double origin_lat, cudf::column_view const &input_lon, cudf::column_view const &input_lat, rmm::mr::device_memory_resource *mr=rmm::mr::get_current_device_resource()) |
Sinusoidal projection of longitude/latitude relative to origin to Cartesian (x/y) coordinates in km. | |
APIs to project coordinates between coordinate reference systems.
This module contains APIs that transforms cartesian and geodesic coordinates.
std::pair< std::unique_ptr< cudf::column >, std::unique_ptr< cudf::column > > cuspatial::sinusoidal_projection | ( | double | origin_lon, |
double | origin_lat, | ||
cudf::column_view const & | input_lon, | ||
cudf::column_view const & | input_lat, | ||
rmm::mr::device_memory_resource * | mr = rmm::mr::get_current_device_resource() ) |
Sinusoidal projection of longitude/latitude relative to origin to Cartesian (x/y) coordinates in km.
Can be used to approximately convert longitude/latitude coordinates to Cartesian coordinates given that all points are near the origin. Error increases with distance from the origin. See Sinusoidal Projection for more detail.
origin_lon | longitude of origin |
origin_lat | latitude of origin |
input_lon | longitudes to transform |
input_lat | latitudes to transform |
mr | The optional resource to use for output device memory allocations. |