project_lnglat  type: project_lnglat#

class lumen.transforms.base.project_lnglat(*, latitude, longitude, controls, name)#

project_lnglat projects the given longitude/latitude columns to Web Mercator.

Converts latitude and longitude values into WGS84 (Web Mercator) coordinates (meters East of Greenwich and meters North of the Equator).


Parameters#

latitude

type: str
default: 'longitude'
Latitude column

longitude

type: str
default: 'longitude'
Longitude column


Methods#

project_lnglat.apply(table: DataFrame) DataFrame#

Given a table transform it in some way and return it.

Parameters:

table (DataFrame) – The queried table as a DataFrame.

Returns:

A DataFrame containing the transformed data.

Return type:

DataFrame

project_lnglat.to_spec(context: Dict[str, Any] | None = None) Dict[str, Any]#

Exports the full specification to reconstruct this component.

Return type:

Resolved and instantiated Component object