Turbo87 / utm

Bidirectional UTM-WGS84 converter for python
http://pypi.python.org/pypi/utm
MIT License
486 stars 101 forks source link

Unexpected behavior when using np.arrays #92

Open SimoneRaponi opened 1 year ago

SimoneRaponi commented 1 year ago

I am using conda-forge's utm v. 0.7.0.

It seems that utm.from_latlon function, when given as input a np.array, considers all the coordinates within the same zone as the first coordinate.

To clarify,

array( [[55. , 30. ], [x. , y. ], [w. , z. ])

provides for [55, 30], [x,y], and [w,z] UTM coordinates as if all of them were within the [55, 30] zone, even if they actually do not.

bartvanandel commented 7 months ago

This is currently intended behavior, I assume for performance reasons, see also #94. But I agree it's counter-intuitive.