Details
-
Type:
Task
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.2.1, 2.3.0, 2.4-M0
-
Fix Version/s: 2.5-M2
-
Component/s: main, referencing
-
Labels:None
Description
Except for the GridCoverage implementation, the JAI dependency in the main module is very small. The only JAI class used is:
javax.media.jai.util.Range
It would be easy to provide our own Range implementation in the org.geotools.util package. The proposed transition path is:
- Create an org.geotools.util.Range class which extends javax.media.jai.util.Range for now (for a smooth transition).
- Put a clear warning saying that the JAI Range inheritance will be removed in a future release.
- Wait for users to replace "import javax.media.jai.util.Range" by "import org.geotools.util.Range". No more change required.
- After the 2.2 release, remove the "extends javax.media.jai.util.Range" clause in the org.geotools.util.Range class.
Issue Links
- depends upon
-
GEOT-745
Move the coverage implementation in its module
-
Here is my idea:
* create org.geotools.measure.Range, using test case to ensure coformance with javax.media.jai.util.Range
* create an additional "setter" accept org.geotools.measure.Range and transition the geotools library to use it
* I am not aware of much use of javax.media.jair.util.Range outside the library?