applyCrs

fun applyCrs(targetCrs: CoordinateReferenceSystem): GeoDataFrame<T>

Transforms the geometries to a specified Coordinate Reference System (CRS).

This function reprojects the geometry data from the current CRS to a target CRS. If no target CRS is specified and the GeoDataFrame has no CRS, WGS 84 is used by default.

Return

A new GeoDataFrame with reprojected geometries and the specified CRS.

Parameters

targetCrs

The target CRS for transformation.