Loading...
Searching...
No Matches
Files | Functions
Projections

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::device_async_resource_ref mr=rmm::mr::get_current_device_resource())
 Sinusoidal projection of longitude/latitude relative to origin to Cartesian (x/y) coordinates in km.
 

Detailed Description

APIs to project coordinates between coordinate reference systems.

This module contains APIs that transforms cartesian and geodesic coordinates.

Function Documentation

◆ sinusoidal_projection()

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::device_async_resource_ref 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.

Parameters
origin_lonlongitude of origin
origin_latlatitude of origin
input_lonlongitudes to transform
input_latlatitudes to transform
mrThe optional resource to use for output device memory allocations.
Returns
a pair of columns containing cartesian coordinates in kilometers