Package org.apache.sis.internal.metadata
Class AxisNames
java.lang.Object
org.apache.sis.internal.metadata.AxisNames
Constants for axis names specified by ISO 19111 and ISO 19162.
Contains also some extensions used in astronomy.
- Since:
- 0.6
- Version:
- 1.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The ISO 19111 "depth" name.static final String
The ISO 19111 "easting" name.static final String
The ISO 19111 "ellipsoidal height" name.static final String
The ISO 19111 "geocentric radius" name.static final String
The ISO 19111 "Geocentric X" name.static final String
The ISO 19111 "Geocentric Y" name.static final String
The ISO 19111 "Geocentric Z" name.static final String
The ISO 19111 "geodetic latitude" name.static final String
The ISO 19111 "geodetic longitude" name.static final String
The ISO 19111 "gravity-related height" name.static final String
The ISO 19162 "Latitude" name.static final String
The ISO 19162 "Longitude" name.static final String
The ISO 19111 "northing" name.static final String
The "planetodetic latitude" name used in astronomy.static final String
The "planetodetic longitude" name used in astronomy.static final String
The ISO 19111 "southing" name.static final String
The ISO 19111 "spherical latitude" name, also called "polar (zenith) angle".static final String
The ISO 19111 "spherical longitude" name, also called "azimuthal angle".static final String
A ISO 19162 frequently used name.The map of all of the above values, used for fixing the case.static final String
The ISO 19111 "westing" name. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
toCamelCase
(String name) Returns the given name in camel case if it is one of the know names.private static String
toUpperCase
(String name, StringBuilder buffer) Returns the given axis name in upper case without punctuation characters.
-
Field Details
-
LONGITUDE
The ISO 19162 "Longitude" name.- See Also:
-
LATITUDE
The ISO 19162 "Latitude" name.- See Also:
-
GEODETIC_LONGITUDE
The ISO 19111 "geodetic longitude" name. Abbreviation is "λ" (lambda).- See Also:
-
GEODETIC_LATITUDE
The ISO 19111 "geodetic latitude" name. Abbreviation is "φ" (phi).- See Also:
-
PLANETODETIC_LONGITUDE
The "planetodetic longitude" name used in astronomy.- See Also:
-
PLANETODETIC_LATITUDE
The "planetodetic latitude" name used in astronomy.- See Also:
-
SPHERICAL_LONGITUDE
The ISO 19111 "spherical longitude" name, also called "azimuthal angle". Abbreviation used by SIS is "θ" (theta) for consistency with ISO 19111 and ISO 19162 Axis name and abbreviation section, but some other conventions use φ or Ω instead. Direction in the EPSG database is "East", but "counterClockwise" may also be used.Axis name "Geocentric longitude" can also be used. In astronomy, "Planetocentric longitude" is sometimes used.
- See Also:
-
SPHERICAL_LATITUDE
The ISO 19111 "spherical latitude" name, also called "polar (zenith) angle". Abbreviation used by SIS is "Ω" (omega) for consistency with ISO 19111 Axis name and abbreviation section, but some other conventions use θ, Ω or Ψ instead. Direction in the EPSG database is "North", but the "Up" direction may also be used with a similar axis named "elevation".Axis name "Geocentric latitude" can also be used. In astronomy, "Planetocentric latitude" is sometimes used.
- See Also:
-
ELLIPSOIDAL_HEIGHT
The ISO 19111 "ellipsoidal height" name. Abbreviation is lower case "h".- See Also:
-
GRAVITY_RELATED_HEIGHT
The ISO 19111 "gravity-related height" name. Abbreviation is upper case "H".- See Also:
-
DEPTH
The ISO 19111 "depth" name.- See Also:
-
GEOCENTRIC_X
The ISO 19111 "Geocentric X" name. Abbreviation is upper case "X".- See Also:
-
GEOCENTRIC_Y
The ISO 19111 "Geocentric Y" name. Abbreviation is upper case "Y".- See Also:
-
GEOCENTRIC_Z
The ISO 19111 "Geocentric Z" name. Abbreviation is upper case "Z".- See Also:
-
GEOCENTRIC_RADIUS
The ISO 19111 "geocentric radius" name. Abbreviation is lower case "r" for consistency with ISO 19111.Note:Lower case "r" is also used for non-geocentric radius or axes named "distance" with "awayFrom" direction.- See Also:
-
EASTING
The ISO 19111 "easting" name. Abbreviation is upper case "E".- See Also:
-
WESTING
The ISO 19111 "westing" name. Abbreviation is upper case "W".- See Also:
-
NORTHING
The ISO 19111 "northing" name. Abbreviation is upper case "N".- See Also:
-
SOUTHING
The ISO 19111 "southing" name. Abbreviation is upper case "S".- See Also:
-
TIME
A ISO 19162 frequently used name.- See Also:
-
VALUES
The map of all of the above values, used for fixing the case. Shall not be modified after construction.
-
-
Constructor Details
-
AxisNames
private AxisNames()Do not allow instantiation of this class.
-
-
Method Details
-
toUpperCase
Returns the given axis name in upper case without punctuation characters.- Parameters:
name
- the axis name to return in upper-case.buffer
- a temporary buffer to use. Must be initially empty.- Returns:
- the given name converted to upper-case.
-
toCamelCase
Returns the given name in camel case if it is one of the know names. This method canonicalizes also the use of'_'
,'-'
and' '
.Rational: Axis names are not really free text. They are specified by ISO 19111 and ISO 19162. SIS does not put restriction on axis names, but we nevertheless try to use a unique name when we recognize it.- Parameters:
name
- the name in any case.- Returns:
- the given name in camel case.
-