BHoM / OpenStreetMap_Toolkit

Tools for working with OpenStreetMap
GNU Lesser General Public License v3.0
4 stars 2 forks source link

ToUTMZone returns wrong zone. #72

Open rolyhudson opened 3 years ago

rolyhudson commented 3 years ago

Description:

ToUTMZone returns wrong zone. Zones are numbered from 1 furthest east to 60. The methods currently overlook the number starts at 1. Need to use (int)Math.Floor((longitude + 180) / 6)+1 in the method.

Steps to reproduce:

Expected behaviour:

Test file(s):