You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2018/08/15 15:40:46 UTC
[sis] branch master updated (f221355 -> 4eb01b7)
This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sis.git.
from f221355 Merge branch 'geoapi-3.1'.
add 6e2dfa0 Partial compatibility with JDK9 in root pom.xml, NetBeans configuration and doclet.
add 4c685b5 Add a Units.converter(scale, offset) method.
add 6da08c0 Edit short license header statements for making them compliant with http://www.apache.org/legal/src-headers.html#is-a-short-form-of-the-source-header-available
add 56effd8 Update Maven plugins, void deprecated Proxy.getProxyClass method, documentation fixes.
add 29c7885 Merge branch 'geoapi-4.0' into JDK9.
add 3244fc9 Allow the build to pass (including tests) with JDK 9 and JDK 10. The project is not yet modularized however.
add 6276d6c Merge branch 'JDK9' into geoapi-4.0: require JDK 9 or 10 for building, but not for running. At runtime, JDK 8 is still sufficient.
add 3663f58 Documentation fixes, and class names of taglet to load.
add 7327706 Documentation fixes, addition of more metadata (to be used later by sis-earthobservation module), and first step toward a https://issues.apache.org/jira/browse/SIS-395 fix.
add b572c7f Spelling fixes (no significant code change in this commit).
add 744a5ef Fix an issue that prevent the NetBeans project to compile after a fresh checkout from Git repository.
add 879060d Documentation updates.
add 6277ad7 Merge branch 'geoapi-4.0' into geoapi-3.1.
new 4eb01b7 Merge branch 'geoapi-3.1'.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../org.apache.sis.setup.InstallationResources | 3 +-
.../org/apache/sis/console/Commands.properties | 3 +-
.../org/apache/sis/console/Commands_fr.properties | 3 +-
.../apache/sis/console/IdentifierState.properties | 3 +-
.../sis/console/IdentifierState_fr.properties | 3 +-
.../org/apache/sis/console/Messages.properties | 3 +-
.../org/apache/sis/console/Messages_fr.properties | 3 +-
.../org/apache/sis/console/Options.properties | 3 +-
.../org/apache/sis/console/Options_fr.properties | 3 +-
application/sis-javafx/pom.xml | 11 ++
core/sis-build-helper/pom.xml | 59 ++-----
.../apache/sis/internal/book/CodeColorizer.java | 32 ++--
.../org/apache/sis/internal/doclet/Doclet.java | 105 +++++++++---
.../sis/internal/{taglet => doclet}/Include.java | 42 ++---
.../apache/sis/internal/doclet/InlineTaglet.java | 158 ++++++++++++++++++
.../org/apache/sis/internal/doclet/Module.java | 113 +++++++++++++
.../sis/internal/{taglet => doclet}/Preformat.java | 50 ++----
.../org/apache/sis/internal/doclet/Rewriter.java | 2 +-
.../apache/sis/internal/doclet/package-info.java | 5 +-
.../apache/sis/internal/taglet/InlineTaglet.java | 170 -------------------
.../org/apache/sis/internal/taglet/Module.java | 182 ---------------------
.../apache/sis/internal/taglet/package-info.java | 27 ---
.../org/apache/sis/feature/DefaultFeatureType.java | 2 +-
.../apache/sis/internal/jaxb/gco/PropertyType.java | 2 +-
.../sis/internal/metadata/sql/Initializer.java | 55 ++++++-
.../org/apache/sis/metadata/sql/Installer.java | 13 +-
.../org/apache/sis/metadata/sql/Contents.sql | 36 ++++
.../org/apache/sis/metadata/sql/Metadata.sql | 15 ++
.../org/apache/sis/metadata/sql/Referencing.sql | 25 +++
.../internal/jaxb/cat/CodeListMarshallingTest.java | 18 +-
.../sis/internal/jaxb/cat/EnumMarshallingTest.java | 6 +-
.../sis/internal/jaxb/lan/LanguageCodeTest.java | 2 +-
.../sis/internal/jaxb/lan/PT_LocaleTest.java | 2 +-
.../extent/DefaultGeographicBoundingBoxTest.java | 2 +-
.../gazetteer/MilitaryGridReferenceSystem.java | 6 +-
.../gazetteer/MilitaryGridReferenceSystemTest.java | 2 +-
.../apache/sis/referencing/IdentifiedObjects.java | 4 +-
.../apache/sis/referencing/cs/AxesConvention.java | 7 +-
.../sis/referencing/datum/BursaWolfParameters.java | 8 +-
.../sis/referencing/datum/DefaultEllipsoid.java | 2 +-
.../factory/ConcurrentAuthorityFactory.java | 2 +-
.../factory/IdentifiedObjectFinder.java | 8 +-
.../referencing/factory/sql/EPSGDataAccess.java | 2 +-
.../operation/CoordinateOperationRegistry.java | 2 +-
.../operation/builder/LinearTransformBuilder.java | 2 +-
.../operation/builder/TransformBuilder.java | 2 +-
.../operation/matrix/GeneralMatrix.java | 2 +-
.../operation/projection/ConformalProjection.java | 2 +-
.../referencing/operation/projection/Mercator.java | 2 +-
.../operation/projection/NormalizedProjection.java | 2 +-
.../transform/AbstractLinearTransform.java | 2 +-
.../operation/transform/AbstractMathTransform.java | 2 +-
.../operation/transform/ConcatenatedTransform.java | 2 +-
.../transform/EllipsoidToCentricTransform.java | 2 +-
.../operation/transform/MathTransforms.java | 4 +-
...org.apache.sis.internal.jaxb.AdapterReplacement | 3 +-
.../org.apache.sis.internal.jaxb.TypeRegistration | 3 +-
...rg.apache.sis.internal.metadata.sql.Initializer | 3 +-
...org.opengis.referencing.crs.CRSAuthorityFactory | 3 +-
.../org.opengis.referencing.crs.CRSFactory | 3 +-
.../services/org.opengis.referencing.cs.CSFactory | 3 +-
.../org.opengis.referencing.datum.DatumFactory | 3 +-
...eferencing.operation.CoordinateOperationFactory | 3 +-
...ngis.referencing.operation.MathTransformFactory | 3 +-
...g.opengis.referencing.operation.OperationMethod | 5 +-
.../datum/DefaultVerticalDatumTest.java | 2 +-
.../operation/CoordinateOperationFinderTest.java | 2 +-
.../builder/LocalizationGridBuilderTest.java | 2 +-
.../operation/matrix/MatrixTestCase.java | 6 +-
.../projection/MercatorMethodComparison.java | 2 +-
.../projection/ObliqueStereographicTest.java | 2 +-
.../projection/ProjectionResultComparator.java | 4 +-
.../operation/transform/CoordinateDomainTest.java | 4 +-
.../operation/transform/CopyTransformTest.java | 2 +-
.../transform/InterpolatedTransformTest.java | 2 +-
.../transform/MolodenskyTransformTest.java | 38 ++++-
.../sis/test/integration/ConsistencyTest.java | 2 +-
...g.opengis.referencing.operation.OperationMethod | 3 +-
.../sis/referencing/operation/Conversion.xml | 4 +-
.../sis/internal/converter/FractionConverter.java | 14 +-
.../org/apache/sis/internal/system/Loggers.java | 2 +-
.../apache/sis/internal/util/CollectionsExt.java | 2 +
.../org/apache/sis/internal/util/DoubleDouble.java | 6 +-
.../org/apache/sis/internal/util/Numerics.java | 6 +-
.../java/org/apache/sis/math/DecimalFunctions.java | 6 +-
.../main/java/org/apache/sis/math/Statistics.java | 2 +-
.../src/main/java/org/apache/sis/math/Vector.java | 2 +-
.../java/org/apache/sis/measure/AbstractUnit.java | 3 +
.../java/org/apache/sis/measure/DerivedScalar.java | 31 ++--
.../org/apache/sis/measure/LinearConverter.java | 34 +++-
.../main/java/org/apache/sis/measure/Prefixes.java | 2 +-
.../java/org/apache/sis/measure/Quantities.java | 1 -
.../org/apache/sis/measure/ScalarFallback.java | 26 +--
.../java/org/apache/sis/measure/UnitFormat.java | 4 +-
.../main/java/org/apache/sis/measure/Units.java | 29 +++-
.../java/org/apache/sis/measure/package-info.java | 33 ++++
.../java/org/apache/sis/util/ComparisonMode.java | 4 +-
.../main/java/org/apache/sis/util/Utilities.java | 6 +-
.../apache/sis/util/collection/CodeListSet.java | 2 +-
.../org/apache/sis/util/collection/DerivedMap.java | 21 ++-
.../org/apache/sis/util/collection/DerivedSet.java | 2 +-
.../apache/sis/util/logging/MonolineFormatter.java | 2 +-
.../sis/util/resources/IndexedResourceBundle.java | 2 +-
.../services/javax.measure.spi.ServiceProvider | 3 +-
.../services/org.apache.sis.util.ObjectConverter | 5 +-
.../META-INF/services/org.opengis.util.NameFactory | 3 +-
.../sis/internal/system/Descriptions.properties | 3 +-
.../sis/internal/system/Descriptions_fr.properties | 3 +-
.../org/apache/sis/measure/UnitAliases.properties | 3 +-
.../org/apache/sis/measure/UnitNames.properties | 3 +-
.../apache/sis/measure/UnitNames_en_US.properties | 3 +-
.../org/apache/sis/measure/UnitNames_fr.properties | 3 +-
.../apache/sis/internal/util/DoubleDoubleTest.java | 4 +-
.../apache/sis/measure/LinearConverterTest.java | 10 ++
.../org/apache/sis/measure/RangeFormatTest.java | 18 +-
.../src/test/java/org/apache/sis/test/Assert.java | 12 +-
.../sis/util/collection/WeakValueHashMapTest.java | 2 +-
ide-project/NetBeans/build.xml | 10 ++
ide-project/NetBeans/nbproject/project.properties | 2 +-
pom.xml | 71 ++++----
.../org/apache/sis/storage/geotiff/CRSBuilder.java | 2 +-
.../apache/sis/storage/netcdf/MetadataReader.java | 2 +-
.../shapefile/jdbc/connection/DBFConnection.java | 2 +-
.../jdbc/resultset/AbstractResultSet.java | 2 +-
.../shapefile/jdbc/statement/DBFStatement.java | 4 +-
.../sis/internal/storage/MetadataBuilder.java | 2 +-
126 files changed, 974 insertions(+), 775 deletions(-)
rename core/sis-build-helper/src/main/java/org/apache/sis/internal/{taglet => doclet}/Include.java (75%)
create mode 100644 core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/InlineTaglet.java
create mode 100644 core/sis-build-helper/src/main/java/org/apache/sis/internal/doclet/Module.java
rename core/sis-build-helper/src/main/java/org/apache/sis/internal/{taglet => doclet}/Preformat.java (86%)
delete mode 100644 core/sis-build-helper/src/main/java/org/apache/sis/internal/taglet/InlineTaglet.java
delete mode 100644 core/sis-build-helper/src/main/java/org/apache/sis/internal/taglet/Module.java
delete mode 100644 core/sis-build-helper/src/main/java/org/apache/sis/internal/taglet/package-info.java
create mode 100644 core/sis-metadata/src/main/resources/org/apache/sis/metadata/sql/Metadata.sql
create mode 100644 core/sis-metadata/src/main/resources/org/apache/sis/metadata/sql/Referencing.sql
[sis] 01/01: Merge branch 'geoapi-3.1'.
Posted by de...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sis.git
commit 4eb01b7059569f9543822f24fd613ea200e8fe8e
Merge: f221355 6277ad7
Author: Martin Desruisseaux <ma...@geomatys.com>
AuthorDate: Wed Aug 15 17:39:54 2018 +0200
Merge branch 'geoapi-3.1'.
.../org.apache.sis.setup.InstallationResources | 3 +-
.../org/apache/sis/console/Commands.properties | 3 +-
.../org/apache/sis/console/Commands_fr.properties | 3 +-
.../apache/sis/console/IdentifierState.properties | 3 +-
.../sis/console/IdentifierState_fr.properties | 3 +-
.../org/apache/sis/console/Messages.properties | 3 +-
.../org/apache/sis/console/Messages_fr.properties | 3 +-
.../org/apache/sis/console/Options.properties | 3 +-
.../org/apache/sis/console/Options_fr.properties | 3 +-
application/sis-javafx/pom.xml | 11 ++
core/sis-build-helper/pom.xml | 59 ++-----
.../apache/sis/internal/book/CodeColorizer.java | 32 ++--
.../org/apache/sis/internal/doclet/Doclet.java | 105 +++++++++---
.../sis/internal/{taglet => doclet}/Include.java | 42 ++---
.../apache/sis/internal/doclet/InlineTaglet.java | 158 ++++++++++++++++++
.../org/apache/sis/internal/doclet/Module.java | 113 +++++++++++++
.../sis/internal/{taglet => doclet}/Preformat.java | 50 ++----
.../org/apache/sis/internal/doclet/Rewriter.java | 2 +-
.../apache/sis/internal/doclet/package-info.java | 5 +-
.../apache/sis/internal/taglet/InlineTaglet.java | 170 -------------------
.../org/apache/sis/internal/taglet/Module.java | 182 ---------------------
.../apache/sis/internal/taglet/package-info.java | 27 ---
.../org/apache/sis/feature/DefaultFeatureType.java | 2 +-
.../apache/sis/internal/jaxb/gco/PropertyType.java | 2 +-
.../sis/internal/metadata/sql/Initializer.java | 55 ++++++-
.../org/apache/sis/metadata/sql/Installer.java | 13 +-
.../org/apache/sis/metadata/sql/Contents.sql | 36 ++++
.../org/apache/sis/metadata/sql/Metadata.sql | 15 ++
.../org/apache/sis/metadata/sql/Referencing.sql | 25 +++
.../internal/jaxb/cat/CodeListMarshallingTest.java | 18 +-
.../sis/internal/jaxb/cat/EnumMarshallingTest.java | 6 +-
.../sis/internal/jaxb/lan/LanguageCodeTest.java | 2 +-
.../sis/internal/jaxb/lan/PT_LocaleTest.java | 2 +-
.../extent/DefaultGeographicBoundingBoxTest.java | 2 +-
.../gazetteer/MilitaryGridReferenceSystem.java | 6 +-
.../gazetteer/MilitaryGridReferenceSystemTest.java | 2 +-
.../apache/sis/referencing/IdentifiedObjects.java | 4 +-
.../apache/sis/referencing/cs/AxesConvention.java | 7 +-
.../sis/referencing/datum/BursaWolfParameters.java | 8 +-
.../sis/referencing/datum/DefaultEllipsoid.java | 2 +-
.../factory/ConcurrentAuthorityFactory.java | 2 +-
.../factory/IdentifiedObjectFinder.java | 8 +-
.../referencing/factory/sql/EPSGDataAccess.java | 2 +-
.../operation/CoordinateOperationRegistry.java | 2 +-
.../operation/builder/LinearTransformBuilder.java | 2 +-
.../operation/builder/TransformBuilder.java | 2 +-
.../operation/matrix/GeneralMatrix.java | 2 +-
.../operation/projection/ConformalProjection.java | 2 +-
.../referencing/operation/projection/Mercator.java | 2 +-
.../operation/projection/NormalizedProjection.java | 2 +-
.../transform/AbstractLinearTransform.java | 2 +-
.../operation/transform/AbstractMathTransform.java | 2 +-
.../operation/transform/ConcatenatedTransform.java | 2 +-
.../transform/EllipsoidToCentricTransform.java | 2 +-
.../operation/transform/MathTransforms.java | 4 +-
...org.apache.sis.internal.jaxb.AdapterReplacement | 3 +-
.../org.apache.sis.internal.jaxb.TypeRegistration | 3 +-
...rg.apache.sis.internal.metadata.sql.Initializer | 3 +-
...org.opengis.referencing.crs.CRSAuthorityFactory | 3 +-
.../org.opengis.referencing.crs.CRSFactory | 3 +-
.../services/org.opengis.referencing.cs.CSFactory | 3 +-
.../org.opengis.referencing.datum.DatumFactory | 3 +-
...eferencing.operation.CoordinateOperationFactory | 3 +-
...ngis.referencing.operation.MathTransformFactory | 3 +-
...g.opengis.referencing.operation.OperationMethod | 5 +-
.../datum/DefaultVerticalDatumTest.java | 2 +-
.../operation/CoordinateOperationFinderTest.java | 2 +-
.../builder/LocalizationGridBuilderTest.java | 2 +-
.../operation/matrix/MatrixTestCase.java | 6 +-
.../projection/MercatorMethodComparison.java | 2 +-
.../projection/ObliqueStereographicTest.java | 2 +-
.../projection/ProjectionResultComparator.java | 4 +-
.../operation/transform/CoordinateDomainTest.java | 4 +-
.../operation/transform/CopyTransformTest.java | 2 +-
.../transform/InterpolatedTransformTest.java | 2 +-
.../transform/MolodenskyTransformTest.java | 38 ++++-
.../sis/test/integration/ConsistencyTest.java | 2 +-
...g.opengis.referencing.operation.OperationMethod | 3 +-
.../sis/referencing/operation/Conversion.xml | 4 +-
.../sis/internal/converter/FractionConverter.java | 14 +-
.../org/apache/sis/internal/system/Loggers.java | 2 +-
.../apache/sis/internal/util/CollectionsExt.java | 2 +
.../org/apache/sis/internal/util/DoubleDouble.java | 6 +-
.../org/apache/sis/internal/util/Numerics.java | 6 +-
.../java/org/apache/sis/math/DecimalFunctions.java | 6 +-
.../main/java/org/apache/sis/math/Statistics.java | 2 +-
.../src/main/java/org/apache/sis/math/Vector.java | 2 +-
.../java/org/apache/sis/measure/AbstractUnit.java | 3 +
.../java/org/apache/sis/measure/DerivedScalar.java | 31 ++--
.../org/apache/sis/measure/LinearConverter.java | 34 +++-
.../main/java/org/apache/sis/measure/Prefixes.java | 2 +-
.../java/org/apache/sis/measure/Quantities.java | 1 -
.../org/apache/sis/measure/ScalarFallback.java | 26 +--
.../java/org/apache/sis/measure/UnitFormat.java | 4 +-
.../main/java/org/apache/sis/measure/Units.java | 29 +++-
.../java/org/apache/sis/measure/package-info.java | 33 ++++
.../java/org/apache/sis/util/ComparisonMode.java | 4 +-
.../main/java/org/apache/sis/util/Utilities.java | 6 +-
.../apache/sis/util/collection/CodeListSet.java | 2 +-
.../org/apache/sis/util/collection/DerivedMap.java | 21 ++-
.../org/apache/sis/util/collection/DerivedSet.java | 2 +-
.../apache/sis/util/logging/MonolineFormatter.java | 2 +-
.../sis/util/resources/IndexedResourceBundle.java | 2 +-
.../services/javax.measure.spi.ServiceProvider | 3 +-
.../services/org.apache.sis.util.ObjectConverter | 5 +-
.../META-INF/services/org.opengis.util.NameFactory | 3 +-
.../sis/internal/system/Descriptions.properties | 3 +-
.../sis/internal/system/Descriptions_fr.properties | 3 +-
.../org/apache/sis/measure/UnitAliases.properties | 3 +-
.../org/apache/sis/measure/UnitNames.properties | 3 +-
.../apache/sis/measure/UnitNames_en_US.properties | 3 +-
.../org/apache/sis/measure/UnitNames_fr.properties | 3 +-
.../apache/sis/internal/util/DoubleDoubleTest.java | 4 +-
.../apache/sis/measure/LinearConverterTest.java | 10 ++
.../org/apache/sis/measure/RangeFormatTest.java | 18 +-
.../src/test/java/org/apache/sis/test/Assert.java | 12 +-
.../sis/util/collection/WeakValueHashMapTest.java | 2 +-
ide-project/NetBeans/build.xml | 10 ++
ide-project/NetBeans/nbproject/project.properties | 2 +-
pom.xml | 71 ++++----
.../org/apache/sis/storage/geotiff/CRSBuilder.java | 2 +-
.../apache/sis/storage/netcdf/MetadataReader.java | 2 +-
.../shapefile/jdbc/connection/DBFConnection.java | 2 +-
.../jdbc/resultset/AbstractResultSet.java | 2 +-
.../shapefile/jdbc/statement/DBFStatement.java | 4 +-
.../sis/internal/storage/MetadataBuilder.java | 2 +-
126 files changed, 974 insertions(+), 775 deletions(-)
diff --cc core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/transform/MolodenskyTransformTest.java
index d1a4457,ae994d9..157db04
--- a/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/transform/MolodenskyTransformTest.java
+++ b/core/sis-referencing/src/test/java/org/apache/sis/referencing/operation/transform/MolodenskyTransformTest.java
@@@ -16,20 -16,30 +16,24 @@@
*/
package org.apache.sis.referencing.operation.transform;
+ import java.util.Arrays;
-import java.io.IOException;
import org.opengis.util.FactoryException;
import org.opengis.referencing.datum.Ellipsoid;
-import org.opengis.referencing.operation.MathTransform;
import org.opengis.referencing.operation.MathTransformFactory;
import org.opengis.referencing.operation.TransformException;
import org.opengis.parameter.ParameterValueGroup;
+ import org.apache.sis.internal.referencing.provider.FranceGeocentricInterpolation;
-import org.apache.sis.internal.referencing.provider.AbridgedMolodensky;
import org.apache.sis.internal.referencing.provider.Molodensky;
import org.apache.sis.internal.system.DefaultFactories;
import org.apache.sis.internal.referencing.Formulas;
import org.apache.sis.referencing.CommonCRS;
-import org.apache.sis.math.StatisticsFormat;
-import org.apache.sis.math.Statistics;
import static java.lang.StrictMath.*;
-import static org.apache.sis.internal.metadata.ReferencingServices.NAUTICAL_MILE;
// Test dependencies
+ import org.apache.sis.internal.referencing.provider.FranceGeocentricInterpolationTest;
import org.apache.sis.internal.referencing.provider.GeocentricTranslationTest;
+ import org.apache.sis.referencing.datum.HardCodedDatum;
import org.apache.sis.test.DependsOnMethod;
import org.apache.sis.test.DependsOn;
import org.apache.sis.test.TestUtilities;
@@@ -39,10 -54,10 +43,10 @@@ import static org.apache.sis.test.Asser
/**
- * Tests {@link MolodenskyTransform}. The {@link #compareWithGeocentricTranslation()}
+ * Tests {@link MolodenskyTransform}. The {@code compareWithGeocentricTranslation()}
* method uses {@link EllipsoidToCentricTransform} as a reference implementation.
* The errors compared to geocentric translations should not be greater than
- * approximatively 1 centimetre.
+ * approximately 1 centimetre.
*
* @author Tara Athan
* @author Martin Desruisseaux (Geomatys)
@@@ -182,6 -254,81 +186,38 @@@ public final strictfp class MolodenskyT
}
/**
+ * Tests the point used in {@link FranceGeocentricInterpolationTest}. We use this test for measuring the
+ * errors induced by the use of the Molodensky approximation instead than a real geocentric translation.
+ * The error is approximately 1 centimetre, which is about 6 times more than the accuracy of the point
+ * given in {@code FranceGeocentricInterpolationTest}.
+ *
+ * @throws FactoryException if an error occurred while creating the transform.
+ * @throws TransformException if transformation of a point failed.
- *
- * @see GeocentricTranslationTest#testFranceGeocentricInterpolationPoint()
+ */
+ @Test
+ @DependsOnMethod("testMolodensky")
+ public void testFranceGeocentricInterpolationPoint() throws FactoryException, TransformException {
+ transform = MolodenskyTransform.createGeodeticTransformation(
+ DefaultFactories.forBuildin(MathTransformFactory.class),
+ HardCodedDatum.NTF.getEllipsoid(), true, // Clarke 1880 (IGN)
+ CommonCRS.ETRS89.ellipsoid(), true, // GRS 1980 ellipsoid
+ -FranceGeocentricInterpolation.TX,
+ -FranceGeocentricInterpolation.TY,
+ -FranceGeocentricInterpolation.TZ,
+ false);
+ /*
+ * Code below is a copy-and-paste of GeocentricTranslationTest.testFranceGeocentricInterpolationPoint(),
+ * but with the tolerance threshold increased. We do not let the error goes beyond 1 cm however.
+ */
- tolerance = min(Formulas.ANGULAR_TOLERANCE, FranceGeocentricInterpolationTest.ANGULAR_TOLERANCE * 6);
++ tolerance = Formulas.LINEAR_TOLERANCE; // Other SIS branches use a stricter threshold.
+ final double[] source = Arrays.copyOf(FranceGeocentricInterpolationTest.samplePoint(1), 3);
+ final double[] expected = Arrays.copyOf(FranceGeocentricInterpolationTest.samplePoint(2), 3);
+ expected[2] = 43.15; // Anti-regression (this value is not provided in NTG_88 guidance note).
+ verifyTransform(source, expected);
+ validate();
+ }
+
+ /**
- * Compares the Molodensky (non-abridged) transforms with geocentric translations.
- * Molodensky is an approximation of geocentric translation, so we test here how good this
- * approximation is. This test performs the comparison for the following transformations:
- *
- * <ul>
- * <li>Transformation from NTF to RGF93. Those CRS are the source and target of <cite>"France geocentric
- * interpolation"</cite> (ESPG:9655). This test allows us to verify the accuracy documented in
- * {@link InterpolatedGeocentricTransform}.</li>
- * <li>(More areas may be added later).</li>
- * </ul>
- *
- * If {@link TestCase#VERBOSE} is {@code true}, then this method will print error statistics.
- *
- * @throws FactoryException if an error occurred while creating a transform step.
- * @throws TransformException if a transformation failed.
- * @throws IOException should never happen.
- *
- * @see #testFranceGeocentricInterpolationPoint()
- */
- @Test
- @DependsOnMethod("testFranceGeocentricInterpolationPoint")
- public void compareWithGeocentricTranslation() throws FactoryException, TransformException, IOException {
- /*
- * Disable the test for inverse transformations because they are not the purpose of this test.
- * Errors of inverse transformations are added to the error of forward transformations, which
- * would force us to double the tolerance threshold.
- */
- isInverseTransformSupported = false;
- tolerance = 3*Formulas.LINEAR_TOLERANCE; // To be converted in degrees by ToleranceModifier.GEOGRAPHIC
- zTolerance = 4*Formulas.LINEAR_TOLERANCE;
- toleranceModifier = ToleranceModifiers.concatenate(ToleranceModifier.GEOGRAPHIC, toleranceModifier);
- compareWithGeocentricTranslation(HardCodedDatum.NTF.getEllipsoid(), // Clarke 1880 (IGN)
- CommonCRS.ETRS89.ellipsoid(), // GRS 1980 ellipsoid
- FranceGeocentricInterpolation.TX,
- FranceGeocentricInterpolation.TY,
- FranceGeocentricInterpolation.TZ,
- -5.5, 41.0, -200, // Geographic area of GR2DF97A datum shift grid.
- 10.0, 52.0, +200);
- }
-
- /**
* Tests conversion of random points. The test is performed with the Molodensky transform,
* not the abridged one, because the errors caused by the abridged Molodensky method are
* too high for this test.
diff --cc ide-project/NetBeans/nbproject/project.properties
index 4e54ea4,a40f6b7..80eef75
--- a/ide-project/NetBeans/nbproject/project.properties
+++ b/ide-project/NetBeans/nbproject/project.properties
@@@ -123,9 -123,9 +123,9 @@@ icons.version = 3.0.
# The dependencies are read directy from the local Maven directory.
#
maven.repository = ${user.home}/.m2/repository
- endorsed.classpath=
+ endorsed.classpath =
javac.classpath=\
- ${maven.repository}/org/opengis/geoapi-pending/${geoapi.version}/geoapi-pending-${geoapi.version}.jar:\
+ ${maven.repository}/org/opengis/geoapi/${geoapi.version}/geoapi-${geoapi.version}.jar:\
${maven.repository}/javax/measure/unit-api/${jsr363.version}/unit-api-${jsr363.version}.jar:\
${maven.repository}/com/esri/geometry/esri-geometry-api/${esri.api.version}/esri-geometry-api-${esri.api.version}.jar:\
${maven.repository}/org/locationtech/jts/jts-core/${jts.version}/jts-core-${jts.version}.jar:\
diff --cc pom.xml
index 39bbe3e,2be7b00..9e559e7
--- a/pom.xml
+++ b/pom.xml
@@@ -510,11 -510,11 +510,11 @@@
<website.locale>en</website.locale>
<!-- Following properties are branch-specific -->
- <maven.compile.source>1.8</maven.compile.source>
- <maven.compile.target>1.8</maven.compile.target>
+ <maven.compiler.source>8</maven.compiler.source>
+ <maven.compiler.target>8</maven.compiler.target>
<sis.plugin.version>${project.version}</sis.plugin.version>
<sis.non-free.version>0.8</sis.non-free.version>
- <geoapi.version>3.1-SNAPSHOT</geoapi.version>
+ <geoapi.version>3.0.1</geoapi.version>
</properties>
<profiles>