com.mizar.metadata.utils
Class MdsysUtils

java.lang.Object
  extended by com.mizar.metadata.utils.MdsysUtils

public class MdsysUtils
extends java.lang.Object


Field Summary
protected static org.apache.commons.logging.Log _Logger
           
static int FT_UNITS
           
static java.util.HashMap<java.lang.Long,MdsysCoordConversions> idMap
           
static int KM_UNITS
           
static int METER_UNITS
           
static int METRE_UNITS
           
static int MILE_UNITS
           
static java.util.HashMap<java.lang.String,MdsysCoordConversions> nameMap
           
 
Method Summary
static double convert(long fromUnits, long toUnits, double fromDistance)
           
static java.lang.Double convert(java.lang.Long fromUnits, java.lang.Long toUnits, java.lang.Double fromDistance)
           
static java.lang.String getRefSysKind(javax.persistence.EntityManager em, int srid)
           
static java.lang.String getRefSysName(javax.persistence.EntityManager em, int srid)
           
static int getSrid(javax.persistence.EntityManager em, java.lang.Class beanClass)
           
static java.lang.Long getUnitId(javax.persistence.EntityManager em, java.lang.Long srid)
           
static java.lang.String getUnitName(javax.persistence.EntityManager em, java.lang.Long srid)
           
static java.lang.String getUnitShortName(javax.persistence.EntityManager em, java.lang.Long srid)
           
static SdoUnitsOfMeasure getUOM(javax.persistence.EntityManager em, java.lang.Long srid)
           
static int[] getUtmNorthSrids()
           
static int[] getUtmSouthSrids()
           
static boolean isFootUnits(javax.persistence.EntityManager em, int srid)
           
static boolean isFootUnits(javax.persistence.EntityManager em, java.lang.Long srid)
           
static boolean isGeographic(int srid)
           
static boolean isMeterUnits(javax.persistence.EntityManager em, int srid)
           
static boolean isMeterUnits(javax.persistence.EntityManager em, java.lang.Long srid)
           
static void main(java.lang.String[] args)
           
static double uomInOneMeter(javax.persistence.EntityManager em, int srid)
           
static double uomInOneMeter(javax.persistence.EntityManager em, java.lang.Long srid)
           
static int utmSridFromGeographic(double latitude, double longitude)
           
static int utmZoneFromLongitude(double longitude)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_Logger

protected static org.apache.commons.logging.Log _Logger

idMap

public static final java.util.HashMap<java.lang.Long,MdsysCoordConversions> idMap

nameMap

public static final java.util.HashMap<java.lang.String,MdsysCoordConversions> nameMap

KM_UNITS

public static final int KM_UNITS
See Also:
Constant Field Values

FT_UNITS

public static final int FT_UNITS
See Also:
Constant Field Values

METER_UNITS

public static final int METER_UNITS
See Also:
Constant Field Values

METRE_UNITS

public static final int METRE_UNITS
See Also:
Constant Field Values

MILE_UNITS

public static final int MILE_UNITS
See Also:
Constant Field Values
Method Detail

uomInOneMeter

public static double uomInOneMeter(javax.persistence.EntityManager em,
                                   java.lang.Long srid)

uomInOneMeter

public static double uomInOneMeter(javax.persistence.EntityManager em,
                                   int srid)

convert

public static double convert(long fromUnits,
                             long toUnits,
                             double fromDistance)

convert

public static java.lang.Double convert(java.lang.Long fromUnits,
                                       java.lang.Long toUnits,
                                       java.lang.Double fromDistance)

isMeterUnits

public static boolean isMeterUnits(javax.persistence.EntityManager em,
                                   int srid)

isMeterUnits

public static boolean isMeterUnits(javax.persistence.EntityManager em,
                                   java.lang.Long srid)

isFootUnits

public static boolean isFootUnits(javax.persistence.EntityManager em,
                                  int srid)

isFootUnits

public static boolean isFootUnits(javax.persistence.EntityManager em,
                                  java.lang.Long srid)

getUnitName

public static java.lang.String getUnitName(javax.persistence.EntityManager em,
                                           java.lang.Long srid)

getUnitShortName

public static java.lang.String getUnitShortName(javax.persistence.EntityManager em,
                                                java.lang.Long srid)

getUnitId

public static java.lang.Long getUnitId(javax.persistence.EntityManager em,
                                       java.lang.Long srid)

getUOM

public static SdoUnitsOfMeasure getUOM(javax.persistence.EntityManager em,
                                       java.lang.Long srid)

getSrid

public static int getSrid(javax.persistence.EntityManager em,
                          java.lang.Class beanClass)

getRefSysKind

public static java.lang.String getRefSysKind(javax.persistence.EntityManager em,
                                             int srid)

getRefSysName

public static java.lang.String getRefSysName(javax.persistence.EntityManager em,
                                             int srid)

isGeographic

public static boolean isGeographic(int srid)

utmZoneFromLongitude

public static int utmZoneFromLongitude(double longitude)

utmSridFromGeographic

public static int utmSridFromGeographic(double latitude,
                                        double longitude)

getUtmSouthSrids

public static int[] getUtmSouthSrids()

getUtmNorthSrids

public static int[] getUtmNorthSrids()

main

public static void main(java.lang.String[] args)