odc.geo.crs.CRS.transformer_to_crs

CRS.transformer_to_crs(other, always_xy=True)[source]

Build coordinate transformer to other projection.

Returns a function that maps x, y -> x', y' where x, y are coordinates in this CRS, stored either as scalars or numpy.ndarray objects, and x', y' are the same points in the other CRS.

Parameters:
  • other (CRS) – Destination CRS

  • always_xy (bool) – If true, the transform method will accept as input and return as output coordinates using the traditional GIS order, that is longitude, latitude for geographic CRS and easting, northing for most projected CRS.

Return type:

Callable[[Any, Any], Tuple[Any, Any]]