Details
-
Type:
Sub-task
-
Status:
Reopened
-
Priority:
Blocker
-
Resolution: Unresolved
-
Affects Version/s: 2.3-M7
-
Component/s: metadata, parameter, referencing
-
Labels:None
-
Number of attachments :
Description
The JSR-275 effort terminated without success. The javax.measure packages will not exist anymore in the near future. Consequently, the javax.measure.unit.Unit dependency needs to be replaced by something else.
There is an effort currently ongoing on http://www.unitsofmeasure.org. Proposed interfaces are available there:
- http://kenai.com/projects/jscience/sources/subversion/show/jscience/src/main/java/org/unitsofmeasure
Interfaces using Unit are: Band, CoordinateSystemAxis, CSAuthorityFactory, CSFactory, DatumFactory, Ellipsoid, Medium, ParameterDescriptor, ParameterValue, PrimeMeridian and QuantitativeResult.
Related methods to keep in mind if a new unit framework is used:
- Band.getNominalSpatialResolution()
- Dimension.getResolution()
- EnvironmentalRecord.getAverageAirTemperature()
- EnvironmentalRecord.getMaxAltitude()
- EnvironmentalRecord.getMaxRelativeHumidity()
- NominalResolution.getGroundResolution()
- NominalResolution.getScanningResolution()
- Resolution.getDistance()
Recent email exchanges suggest that a new JSR may be started. In such event, the javax.measure package name would continue to exist. Consequently keeping the JSR-275 dependency for now seems safer than switching to org.unitsofmeasurement.
Nevertheless, warnings were added to the methods listed in this JIRA task, in order to eventually replace them by the appropriate quantity interface in GeoAPI 3.1.