How do I instantiate a Universal Transverse Mercator (UTM) projection?
The easiest way is to use the “EPSG” or “AUTO” authority factory. The EPSG code of some UTM projections can be determined as below, where zone is a number from 1 to 60 inclusive (unless otherwise specified): • WGS 84 (northern hemisphere): 32600 + zone • WGS 84 (southern hemisphere): 32700 + zone • WGS 72 (northern hemisphere): 32200 + zone • WGS 72 (southern hemisphere): 32300 + zone • NAD 83 (northern hemisphere): 26900 + zone (zone 1 to 23 only) • NAD 27 (northern hemisphere): 26700 + zone (zone 1 to 22 only) Note that the above list is incomplete. See the EPSG database for additional UTM definitions (WGS 72BE, SIRGAS 2000, SIRGAS 1995, SAD 69, ETRS 89, etc., most of them defined only for a few zones). Once the EPSG code of the UTM projection has been determined, the CRS can be obtained as in the example below: int code = 32600 + zone; CoordinateReferenceSystem crs = CRS.decode(“EPSG:” + code); The above approach requires the EPSG database to be installed. If installing the EPSG dat