Finding UTM zones based on given latitude and longitude
UTM (Universal Transverse Mercator) is a projected coordinate system. Its a meter based coordinate system which gives where earth is divided into 60 longitudinal zones and the coordinate values in each zone is in meters within that zone. The origin of each zone is located at the intersection of intersection of the equator and a longitudinal boundaries of each zone. Very often the WGS84 coordinates which are expressed in longitude and latitude and are referred as EPSG:4326 coordinates are converted to UTM to do several geospatial operations where a meter based distance is used or expected as an output of that geospatial operations. Since UTM is more accurate than other meter based counter parts its becomes a good choice to convert the WGS84, EPSG:4326 coordinates to meters using UTM. Given below is a method to get the EPSG code of UTM zones which I often use on a day to day basis for my geospatial work. The method findEPSG calls the method getZones which internally uses...