public class CoordSysInfo
extends java.lang.Object
implements java.io.Serializable
Spherical coordinate systems return an inverse flattening of POSITIVE_INFINITY. Projected coordinate systems return NaN for semi-major axis and inverse flattening.
This class knows the geodetic coordinate systems distributed with the Oracle database; any other SRID is treated as projected by default.
SRID values can be customized before first use, overriding the database defaults. Once used, the definition of a SRID can not be changed.
Modifier and Type | Method and Description |
---|---|
static CoordSysInfo |
createCoordSysInfo(int srid)
Define a SRID to be a projected coordinate system, overriding the default values.
|
static CoordSysInfo |
createCoordSysInfo(int srid, double smax, double iflat)
Define a SRID to be a geodetic coordinate system (longitude/latitude), overriding the default values.
|
boolean |
equals(java.lang.Object obj) |
static CoordSysInfo |
getCoordsys(int srid)
Return the CoordSysInfo for the given srid.
|
int |
hashCode() |
double |
iflat() |
boolean |
isGeodetic() |
double |
smax() |
int |
srid() |
public int srid()
public boolean isGeodetic()
public double smax()
public double iflat()
public static CoordSysInfo createCoordSysInfo(int srid)
srid
- SRID of projected coordinate system.public static CoordSysInfo createCoordSysInfo(int srid, double smax, double iflat)
srid
- SRID of a geodetic coordinate system.smax
- semi-major axis of ellipsoidiflat
- inverse flatteningpublic static CoordSysInfo getCoordsys(int srid)
srid
- the SRID to search forpublic boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object