rnet.coordinates.transform_coords#

rnet.coordinates.transform_coords(*args, src, dst, copy=False)#

Transform two- or three-dimensional coordinates from one CRS to another.

Parameters
*argstuple

Either of the following:

  • ndarray of coordinates, or

  • 2-tuple containing DataFrame and list of column names containing coordinates to be transformed.

src, dstint

EPSG codes of source and destination CRSs.

Returns
transformedndarray or DataFrame

Transformed coordinates.

Other Parameters
copybool, optional

If True, then a copy of the DataFrame is returned. Otherwise, the given DataFrame is updated in place. The default is False.