Hello Michael
Le 2024-03-22 à 18 h 18, Michael Arneson a écrit :
I was using the following code to in Apache 1.3 to convert a geog2D
transformation to a geog3D transformation.
(…snip…)
MathTransformFactory mtFactory =
DefaultFactories.forClass(MathTransformFactory.class);
(…snip…)
Since DefaultFactories has been removed in Apache SIS 1.4, what would
be the best way to modify this code to work with Apache SIS 1.4?
It can be done as below:
MathTransformFactory mtFactory = DefaultMathTransformFactory.provider();
The "provider" method name is mandated by the Java Module System (a.k.a.
"Jigsaw"). The replacement of the `DefaultFactories` class by
`provider()` static methods was part of the SIS modularization work.
Note that `DefaultFactories` was an internal class, while those new
`provider()` methods are in public API, so they are not expected to change.
Martin
P.S.: the work for upgrading to ISO 19111:2019 is in progress right now.
First on GeoAPI, SIS will follow next. If you are curious, the work can
be seen at [1]. Once completed, SIS will be able (at last) to upgrade to
latest EPSG dataset versions.
[1]https://github.com/opengeospatial/geoapi/commits/master/