hydromt.DataArray.vector.to_crs#

DataArray.vector.to_crs(dst_crs) DataArray | Dataset#

Transform spatial coordinates to a new coordinate reference system.

The crs attribute on the current GeoDataArray must be set.

Parameters:

dst_crs (int, dict, or str, optional) – Accepts EPSG codes (int or str); proj (str or dict) or wkt (str)

Returns:

DataArray with transformed geospatial coordinates

Return type:

xr.DataArray