odc.geo.XY
- class odc.geo.XY(x, y)[source]
Immutable container for anything X/Y.
This class is used as a replacement for a plain tuple of two values that could be in X/Y or Y/X order.
- Parameters
x (~T) – Value of type
T
for xy (~T) – Value of type
T
for y
Methods
__init__
(x, y)map
(op)Apply function to x and y and return new XY value.
Attributes
Access Latitude value (Y).
Convert to tuple in Latitude,Longitude order.
Access Longitude value (X).
Convert to tuple in Longitude,Latitude order.
Interpret as
shape
(Y, X) order.Interpret as
width, height
, (X, Y) order.Access X value.
Convert to tuple in X,Y order.
Access Y value.
Convert to tuple in Y,X order.