|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
ObjectEnum<Convention>
Convention
public enum Convention
The convention used for WKT formatting. This enumeration exists as an attempt to address some of the problems documented in the Frank Warmerdam's OGC WKT Coordinate System Issues page.
The various conventions differ mostly in parameter names, and sometime in WKT syntax. For
example the Mercator projection has a parameter named "Longitude of natural origin"
by EPSG, "central_meridian" by OGC and "NatOriginLong"
by GEOTIFF. In addition the unit of the prime meridian shall be the angular unit
of the enclosing geographic CRS according the OGC
standard, but is restricted to decimal degrees by ESRI. Other differences are
documented in the javadoc of each enum value.
WKTFormat.getConvention(),
WKTFormat.setConvention(Convention)
| referencing/geotk-referencing (download) | View source code for this class |
| Enum Constant Summary | |
|---|---|
EPSG
The European Petroleum Survey Group convention. |
|
ESRI
The ESRI convention. |
|
GEOTIFF
The GeoTIFF convention. |
|
INTERNAL
A special convention for formatting objects as stored internally by Geotk. |
|
NETCDF
The NetCDF convention. |
|
OGC
The Open Geospatial consortium convention. |
|
ORACLE
The Oracle convention. |
|
PROJ4
The Proj.4 convention. |
|
| Field Summary | |
|---|---|
Unit<Angle> |
forcedAngularUnit
If non-null, forces PRIMEM and PARAMETER angular units to this field
value instead than inferring it from the context. |
| Method Summary | |
|---|---|
static Convention |
forCitation(Citation citation,
Convention defaultConvention)
Returns the convention for the given citation. |
static Convention |
forIdentifier(String identifier,
Convention defaultConvention)
Returns the convention for the given identifier. |
Citation |
getCitation()
Returns the citation for this enumeration. |
CoordinateSystem |
toConformCS(CoordinateSystem cs)
Makes the given coordinate system conform to this convention. |
static Convention |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Convention[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Convention OGC
Spacial case
For GeocentricCRS, this convention uses the legacy set of Cartesian axes.
Those axes were defined in OGC 01-009 as Other,
Easting and
Northing
in metres, where the "Other" axis is toward prime meridian.
Citations.OGC,
toConformCS(CoordinateSystem)public static final Convention EPSG
Spacial case
For GeocentricCRS, this convention uses the new set of Cartesian axes.
Those axes are defined in ISO 19111 as
Geocentric X,
Geocentric Y and
Geocentric Z in metres.
Citations.EPSG,
toConformCS(CoordinateSystem)public static final Convention ESRI
OGC convention except in four aspects:
PRIMEM and PARAMETER elements are always degrees,
no matter the units of the enclosing GEOGCS element.AXIS elements are ignored at parsing time.AXIS elements are ignored.
Citations.ESRIpublic static final Convention ORACLE
OGC convention except in three aspects:
DATUM element,
without enclosing them in a TOWGS84 element.PROJECTION names are Coordinate
Operation names rather than Operation Method names.
Citations.ORACLEpublic static final Convention NETCDF
OGC convention except for parameter and
projection names.
Citations.NETCDFpublic static final Convention GEOTIFF
OGC convention except for parameter and
projection names.
Citations.GEOTIFFpublic static final Convention PROJ4
PRIMEM and PARAMETER elements are always degrees,
no matter the units of the enclosing GEOGCS element.
Citations.PROJ4@Debug public static final Convention INTERNAL
OGC
convention. However in the particular case of map projections, the result may be quite
different because of the way Geotk separates the linear from the non-linear parameters.
This convention is used only for debugging purpose.
Formatter#isInternalWKT()| Field Detail |
|---|
public final Unit<Angle> forcedAngularUnit
PRIMEM and PARAMETER angular units to this field
value instead than inferring it from the context. The standard value is null,
which mean that the angular units are inferred from the context as required by the
WKT specification.
ReferencingParser.getForcedAngularUnit()| Method Detail |
|---|
public static Convention[] values()
for (Convention c : Convention.values()) System.out.println(c);
public static Convention valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic Citation getCitation()
Citations
constant of the same name than this enum.
WKTFormat.getAuthority()
public static Convention forCitation(Citation citation,
Convention defaultConvention)
citation - The citation for which to get the convention, or null.defaultConvention - The default convention to return if none where found for
the given citation. May be null.
null if no matching convention were found and the
defaultConvention argument is null.
public static Convention forIdentifier(String identifier,
Convention defaultConvention)
identifier - The identifier for which to get the convention, or null.defaultConvention - The default convention to return if none where found for
the given identifier. May be null.
null if no matching convention were found and the
defaultConvention argument is null.public CoordinateSystem toConformCS(CoordinateSystem cs)
GeocentricCRS axis directions, and
the new (ISO 19111) directions. Those directions are:
cs - The coordinate system.
cs if no change apply to the given coordinate system.OGC,
EPSG
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||