public class DefaultUnitParser extends GeoToolsUnitFormat.BaseGT2Format
Modifier and Type | Field and Description |
---|---|
protected HashMap<DefaultUnitParser.UnitWrapper,Unit<?>> |
unitWrapperToUnitMap |
Modifier and Type | Method and Description |
---|---|
protected void |
addUnit(Unit<?> unit)
Defaults to being a no-op, subclasses can override
|
protected static void |
epsgLabelsAndAliases(GeoToolsCRSUnitFormat.BaseGT2Format format) |
protected static void |
esriLabelsAndAliases(GeoToolsCRSUnitFormat.BaseGT2Format format) |
<Q extends Quantity<Q>> |
getEquivalentUnit(Unit<Q> unit)
Returns an equivalent unit instance based on the provided unit.
|
static DefaultUnitParser |
getInstance(SimpleUnitFormat.Flavor flavour) |
format, initUnits, label, nameFor
protected HashMap<DefaultUnitParser.UnitWrapper,Unit<?>> unitWrapperToUnitMap
public static DefaultUnitParser getInstance(SimpleUnitFormat.Flavor flavour)
protected void addUnit(Unit<?> unit)
GeoToolsUnitFormat.BaseGT2Format
addUnit
in class GeoToolsUnitFormat.BaseGT2Format
public <Q extends Quantity<Q>> Unit<Q> getEquivalentUnit(Unit<Q> unit)
unit
- protected static void esriLabelsAndAliases(GeoToolsCRSUnitFormat.BaseGT2Format format)
protected static void epsgLabelsAndAliases(GeoToolsCRSUnitFormat.BaseGT2Format format)
Copyright © 1996–2019 Geotools. All rights reserved.