BHoM / BHoM/OpenStreetMap_Toolkit

ToUTMZone returns wrong zone.

Open
#72 0 comments 0 reactions 1 assignee Claimed by @rolyhudson View on GitHub
type:bug
Dominant language
C#
Stars
4
Forks
2
Avg merge
10d 18h
Merged PRs (30d)
1

Description

#### 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):

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.