Package org.apache.sis.referencing.cs
Class AxisName
java.lang.Object
org.apache.sis.referencing.cs.AxisName
Pattern of
CoordinateSystemAxis
together with resource to use for localized axis name.- Since:
- 1.3
- Version:
- 1.3
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
KEYWORDS
Regular expressions for matching axis names. -
pattern
The pattern to compare with an axis name. -
word
private final short wordKey of localized word for the axis.
-
-
Constructor Details
-
AxisName
Creates a new pattern for axis name.
-
-
Method Details
-
find
Returns a short (if possible) localized name for the given axis. This method replaces names such as "Geodetic latitude" or "Geocentric latitude" by a simple "Latitude" word. This method can be used for example in column or row headers when the context is known and the space is rare.- Parameters:
axis
- the axis for which to get a short label.locale
- desired locale for the label.- Returns:
- a relatively short axis label, in the desired locale if possible.
-