Turbo87 / utm

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

Converting using negative out of bounds eastings #6

Closed exfizik closed 10 years ago

exfizik commented 10 years ago

I ran into a problem when one of the points I need to use is outside the UTM zone I do other calculations in. http://gis.stackexchange.com/questions/80680/negative-utm-easting

Is there any way your library could handle a case like this? Pyproj doesn't seem to have a problem with this. But I'd prefer a simple solution like this library. My calculations are quite primitive and having pyproj as a dependency feels like an overkill.

Turbo87 commented 10 years ago

This looks quite complicated to be honest and I'm not sure if it fits the purpose of this library. If you find a solution I'd be happy to merge it, but it's unlikely I'll work on that myself.

exfizik commented 10 years ago

I'm just wondering if the out of bounds check is really that necessary for this case. Unfortunately, I have little background in GIS so I can't justify my opinion... Maybe it's worth compare the numbers I get from Pyproj and utm and see if utm works for negative eastings without the out of bounds check.

Turbo87 commented 10 years ago

that sounds like a good idea. please verify the results and then we can introduce an optional validate parameter that disables the checks

Turbo87 commented 10 years ago

@exfizik did you get any results yet?

Turbo87 commented 10 years ago

Let me know if this becomes relevant again. I'll close this issue for now.