Class UTMFinder

java.lang.Object
repast.simphony.space.gis.UTMFinder

public class UTMFinder extends Object
Finds the UTM CRS appropriate to a specified lon, lat location.
Author:
Michelle Kelherer
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static short
    determineZone(double lat, double lon)
    Determine the zone for the given lat/lon
    static org.opengis.referencing.crs.CoordinateReferenceSystem
    getUTMfor(double lat, double lon)
    Gets the UTM CRS for the specified lat and lon.
    static org.opengis.referencing.crs.CoordinateReferenceSystem
    getUTMfor(short zone)
     
    static org.opengis.referencing.crs.CoordinateReferenceSystem
    getUTMFor(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
    Gets the UTM appropriate for the specified geometry in the specified CoordinateReferenceSystem.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UTMFinder

      public UTMFinder()
  • Method Details

    • determineZone

      public static short determineZone(double lat, double lon)
      Determine the zone for the given lat/lon
      Parameters:
      lat - The Latitude
      lon - The Longitude
      Returns:
      The zone
    • getUTMFor

      public static org.opengis.referencing.crs.CoordinateReferenceSystem getUTMFor(org.locationtech.jts.geom.Geometry geom, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
      Gets the UTM appropriate for the specified geometry in the specified CoordinateReferenceSystem. The UTM will be for the coordinate that is returned by geom.getCoordinate().
      Parameters:
      geom - the geometry
      crs - the geometry's coordinate reference system
      Returns:
      the appropriate UTM.
    • getUTMfor

      public static org.opengis.referencing.crs.CoordinateReferenceSystem getUTMfor(double lat, double lon)
      Gets the UTM CRS for the specified lat and lon.
      Parameters:
      lat - the latitude
      lon - the longitude
      Returns:
      Gets the UTM CRS for the specified lat and lon.
    • getUTMfor

      public static org.opengis.referencing.crs.CoordinateReferenceSystem getUTMfor(short zone)