This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a change to branch geoapi-3.1
in repository https://gitbox.apache.org/repos/asf/sis.git
from a2c13a9421 Merge branch 'geoapi-4.0' into geoapi-3.1:
add cf0b508466 Replace the integer values in `Numbers` by a `NumberType`
enumeration.
add eebcfeeaab Refactor `org.apache.sis.filter.ArithmeticFunction` for
skipping the verifications of operand types when those types are known in
advance.
add e5f1abf3bd Fix wrong value of `ArithmeticFunction.getResultClass()`.
Minor code formatting (spaces).
add e9c3ce60ea Remove the `USE_FMA` internal flag. Was always on for last
years.
add 846d83107f When transforming a 0 coordinate, we need to get the origin
even if the scale factor is NaN.
add b2a2ac8d39 Fix to avoid decorating DisjointExtentException and
CannotEvaluateException in TiledGridCoverage.render()
add 1c135038b1 Make `DefaultEvaluator` more robust to the case where the
`gridToCRS` transform has a scale factor of NaN.
add fb3ce3c46e Replace the `-e` option by the more portable `-f` option in
`readlink`.
add 30bf8f0c40 Add a tolerance factor in `TranslatedTransform`. Fix a
missing computation of inverse transform.
add 575a9ed5be Add a `GridDerivation.project(Predicate)` method for
filtering the CRS axes of a grid geometry.
add c440daa7c2 Add `MissingSourceDimensionsException` telling which axes
of the target CRS cannot be mapped to a source CRS. Add
`CoordinateOperationContext.getConstantCoordinates()` as a public API in
replacement of `CoordinateOperations.CONSTANT_COORDINATES` internal
thread-local. Add `CRS.findOperation(…) expecting `CoordinateOperationContext`
argument for making possible to use the new API for constant coordinates.
Redirect some loggings to user-supplied filter, for future use by [...]
add 2cebe32d40 Refactor the code for filtering the dimensions of a CRS.
add e5e9520bce Rename `GridDerivation.selectDimensions(Predicate)` as
`selectAxes(int...)`.
add 4bfbc548af Improve documentations. There is no significant code change
except an adjustment of logging level.
new e0d696a63a Merge branch 'geoapi-4.0' into geoapi-3.1: * Refactoring of
arithmetic operations in filters. * New API for multi-dimensional coordinate
operations.
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.console/main/module-info.java | 14 +-
.../apache/sis/console/ResourcesDownloader.java | 6 +-
.../main/org/apache/sis/coverage/CategoryList.java | 2 +-
.../org/apache/sis/coverage/CoverageCombiner.java | 2 +-
.../org/apache/sis/coverage/SampleDimension.java | 28 +-
.../coverage/grid/CoordinateOperationFinder.java | 136 ++--
.../apache/sis/coverage/grid/DefaultEvaluator.java | 21 +-
.../apache/sis/coverage/grid/DimensionReducer.java | 105 ++-
.../sis/coverage/grid/DimensionalityReduction.java | 2 +-
.../apache/sis/coverage/grid/GridDerivation.java | 135 +++-
.../org/apache/sis/coverage/grid/GridExtent.java | 6 +-
.../org/apache/sis/coverage/grid/GridGeometry.java | 158 +++-
.../sis/coverage/grid/TranslatedTransform.java | 281 ++++++++
.../apache/sis/feature/StringJoinOperation.java | 2 +-
.../sis/feature/builder/FeatureTypeBuilder.java | 4 +-
.../org/apache/sis/feature/internal/Resources.java | 2 +-
.../sis/feature/internal/Resources.properties | 2 +-
.../sis/feature/internal/Resources_fr.properties | 2 +-
.../org/apache/sis/filter/ComparisonFilter.java | 6 +-
.../apache/sis/filter/DefaultFilterFactory.java | 3 +-
.../org/apache/sis/filter/IdentifierFilter.java | 2 +-
.../main/org/apache/sis/filter/PropertyValue.java | 10 +-
.../org/apache/sis/filter/base/BinaryFunction.java | 146 +---
.../sis/filter/base/BinaryFunctionWidening.java | 419 +++++++++++
.../apache/sis/filter/base/ConvertFunction.java | 9 +-
.../main/org/apache/sis/filter/base/Node.java | 12 +
.../sis/filter/{ => math}/ArithmeticFunction.java | 223 ++++--
.../org/apache/sis/filter/math/BinaryOperator.java | 10 +-
.../sis/filter/sqlmm/GeometryConstructor.java | 2 +-
.../apache/sis/filter/sqlmm/GeometryParser.java | 2 +-
.../org/apache/sis/filter/sqlmm/OneGeometry.java | 6 +-
.../main/org/apache/sis/filter/sqlmm/ST_Point.java | 2 +-
.../org/apache/sis/filter/sqlmm/ST_Transform.java | 4 +-
.../org/apache/sis/filter/sqlmm/TwoGeometries.java | 4 +-
.../main/org/apache/sis/image/AnnotatedImage.java | 4 +-
.../apache/sis/image/BandedSampleConverter.java | 4 +-
.../main/org/apache/sis/image/DataType.java | 28 +-
.../sis/image/internal/shared/ImageUtilities.java | 19 +-
.../sis/image/internal/shared/TileOpExecutor.java | 2 +-
.../sis/coverage/grid/GridCoverage2DTest.java | 24 +-
.../sis/coverage/grid/GridDerivationTest.java | 25 +
.../apache/sis/coverage/grid/GridGeometryTest.java | 37 +-
.../org/apache/sis/filter/LogicalFilterTest.java | 12 +-
.../sis/filter/visitor/FunctionNamesTest.java | 4 +-
.../image/internal/shared/ImageUtilitiesTest.java | 14 +-
.../org/apache/sis/metadata/PropertyAccessor.java | 8 +-
.../apache/sis/metadata/PropertyInformation.java | 4 +-
.../main/org/apache/sis/metadata/StateChanger.java | 2 +-
.../org/apache/sis/util/iso/RecordDefinition.java | 4 +-
.../main/org/apache/sis/util/iso/TypeNames.java | 6 +-
.../main/org/apache/sis/util/iso/Types.java | 2 +-
.../main/org/apache/sis/xml/LegacyCodes.java | 2 +-
.../main/org/apache/sis/xml/Pooled.java | 6 +-
.../apache/sis/xml/bind/FinalClassExtensions.java | 7 +-
.../sis/metadata/PropertyConsistencyCheck.java | 22 +-
.../org/apache/sis/metadata/iso/APIVerifier.java | 2 +-
.../apache/sis/metadata/iso/AllMetadataTest.java | 1 +
.../main/org/apache/sis/portrayal/Canvas.java | 2 +-
.../org/apache/sis/portrayal/CanvasContext.java | 6 +-
.../sis/geometry/AbstractDirectPosition.java | 34 +-
.../main/org/apache/sis/geometry/Envelopes.java | 55 +-
.../apache/sis/geometry/GeneralDirectPosition.java | 39 +-
.../sis/geometry/ImmutableDirectPosition.java | 161 +++++
.../org/apache/sis/geometry/ImmutableEnvelope.java | 15 +-
.../main/org/apache/sis/io/wkt/ElementKind.java | 4 +-
.../main/org/apache/sis/io/wkt/Formatter.java | 4 +-
.../org/apache/sis/io/wkt/MathTransformParser.java | 6 +-
.../main/org/apache/sis/io/wkt/StoredTree.java | 8 +-
.../main/org/apache/sis/io/wkt/WKTFormat.java | 4 +-
.../sis/parameter/DefaultParameterDescriptor.java | 3 +-
.../sis/parameter/DefaultParameterValue.java | 37 +-
.../org/apache/sis/parameter/MatrixParameters.java | 14 +-
.../main/org/apache/sis/parameter/Verifier.java | 15 +-
.../main/org/apache/sis/referencing/CRS.java | 677 ++++++++++++++----
.../sis/referencing/MultiRegisterOperations.java | 1 +
.../sis/referencing/cs/CoordinateSystems.java | 4 +-
.../apache/sis/referencing/internal/Resources.java | 2 +-
.../sis/referencing/internal/Resources.properties | 2 +-
.../referencing/internal/Resources_fr.properties | 2 +-
.../internal/shared/CoordinateOperations.java | 8 -
.../internal/shared/DirectPositionView.java | 3 +-
.../internal/shared/ExtendedPrecisionMatrix.java | 2 +-
.../sis/referencing/internal/shared/Formulas.java | 9 -
.../operation/CoordinateOperationContext.java | 257 +++++--
.../operation/CoordinateOperationFinder.java | 66 +-
.../operation/CoordinateOperationRegistry.java | 92 +--
.../operation/InverseOperationMethod.java | 6 +-
.../operation/MismatchedDatumException.java | 8 +-
.../MissingSourceDimensionsException.java | 121 ++++
.../referencing/operation/SubOperationInfo.java | 321 +++++----
.../operation/TransformedCoordinateSet.java | 5 +-
.../sis/referencing/operation/matrix/Matrices.java | 46 +-
.../referencing/operation/matrix/MatrixSIS.java | 7 +-
.../matrix/NoninvertibleMatrixException.java | 8 +-
.../matrix/UnderdeterminedMatrixException.java | 81 +++
.../referencing/operation/matrix/package-info.java | 2 +-
.../operation/projection/AuthalicConversion.java | 14 +-
.../operation/projection/ConformalProjection.java | 8 +-
.../operation/projection/MeridianArcBased.java | 33 +-
.../transform/AbstractLinearTransform.java | 69 +-
.../operation/transform/AbstractMathTransform.java | 5 +
.../operation/transform/ConcatenatedTransform.java | 1 +
.../operation/transform/CopyTransform.java | 16 +-
.../operation/transform/IdentityTransform.java | 1 -
.../operation/transform/LinearTransform1D.java | 49 +-
.../operation/transform/MathTransforms.java | 4 +-
.../operation/transform/ProjectiveTransform.java | 37 +-
.../operation/transform/ScaleTransform.java | 3 +-
.../operation/transform/TransformJoiner.java | 4 +-
.../operation/transform/TranslationTransform.java | 3 +-
.../sis/parameter/DefaultParameterValueTest.java | 2 +-
.../test/org/apache/sis/referencing/CRSTest.java | 11 +
.../referencing/operation/matrix/MatricesTest.java | 5 +-
.../transform/ProjectiveTransformTest.java | 13 +-
.../sis/storage/geotiff/MultiResolutionImage.java | 30 +-
.../apache/sis/storage/geotiff/NativeMetadata.java | 4 +-
.../apache/sis/storage/geotiff/reader/Type.java | 2 +-
.../apache/sis/storage/netcdf/base/Convention.java | 25 +-
.../apache/sis/storage/netcdf/base/DataType.java | 50 +-
.../sis/storage/netcdf/base/GridMapping.java | 6 +-
.../sis/storage/netcdf/base/RasterResource.java | 6 +-
.../apache/sis/storage/netcdf/base/Variable.java | 8 +-
.../sis/storage/netcdf/base/DataTypeTest.java | 25 +-
.../sis/storage/sql/feature/FeatureAnalyzer.java | 4 +-
.../sis/storage/sql/feature/ValueGetter.java | 8 +-
.../apache/sis/io/stream/HyperRectangleReader.java | 20 +-
.../org/apache/sis/storage/aggregate/Group.java | 2 +-
.../apache/sis/storage/base/MetadataBuilder.java | 2 +-
.../apache/sis/storage/base/TiledGridCoverage.java | 2 +
.../sis/io/stream/HyperRectangleReaderTest.java | 4 +-
.../org/apache/sis/converter/ArrayConverter.java | 6 +-
.../apache/sis/converter/ConverterRegistry.java | 6 +-
.../org/apache/sis/converter/NumberConverter.java | 10 +-
.../org/apache/sis/converter/StringConverter.java | 6 +-
.../org/apache/sis/converter/SystemRegistry.java | 5 +-
.../main/org/apache/sis/io/CompoundFormat.java | 4 +-
.../main/org/apache/sis/io/DefaultFormat.java | 29 +-
.../main/org/apache/sis/math/ArrayVector.java | 46 +-
.../org/apache/sis/math/ConcatenatedVector.java | 7 +-
.../main/org/apache/sis/math/Fraction.java | 6 +-
.../org/apache/sis/math/LinearlyDerivedVector.java | 5 +-
.../main/org/apache/sis/math/NumberType.java | 791 +++++++++++++++++++++
.../main/org/apache/sis/math/PackedVector.java | 3 +-
.../main/org/apache/sis/math/Statistics.java | 2 +-
.../main/org/apache/sis/math/Vector.java | 75 +-
.../org/apache/sis/measure/MeasurementRange.java | 18 +-
.../main/org/apache/sis/measure/NumberRange.java | 60 +-
.../main/org/apache/sis/measure/Range.java | 4 +-
.../main/org/apache/sis/measure/RangeFormat.java | 19 +-
.../main/org/apache/sis/measure/UnitRegistry.java | 4 +-
.../sis/pending/jdk/{JDK15.java => JDK12.java} | 30 +-
.../apache/sis/setup/InstallationResources.java | 7 +-
.../apache/sis/setup/OptionalInstallations.java | 60 +-
.../main/org/apache/sis/setup/package-info.java | 2 +-
.../main/org/apache/sis/util/Classes.java | 3 +-
.../main/org/apache/sis/util/Locales.java | 2 +-
.../main/org/apache/sis/util/Localized.java | 2 +-
.../main/org/apache/sis/util/Numbers.java | 427 ++++-------
.../main/org/apache/sis/util/collection/Cache.java | 4 +-
.../org/apache/sis/util/collection/Containers.java | 2 +-
.../org/apache/sis/util/collection/DerivedMap.java | 2 +-
.../org/apache/sis/util/collection/RangeSet.java | 16 +-
.../sis/util/collection/TreeTableFormat.java | 4 +-
.../sis/util/collection/WeakValueHashMap.java | 4 +-
.../sis/util/internal/shared/AbstractMap.java | 2 +-
.../apache/sis/util/internal/shared/Cloner.java | 2 +-
.../apache/sis/util/internal/shared/Strings.java | 18 +
.../main/org/apache/sis/util/logging/Logging.java | 2 +-
.../main/org/apache/sis/util/resources/Errors.java | 4 +-
.../apache/sis/util/resources/Errors.properties | 2 +-
.../apache/sis/util/resources/Errors_fr.properties | 2 +-
.../test/org/apache/sis/math/NumberTypeTest.java | 201 ++++++
.../test/org/apache/sis/test/Assertions.java | 2 +-
.../test/org/apache/sis/util/NumbersTest.java | 121 +---
.../org/apache/sis/geometries/math/DataType.java | 27 +-
.../org/apache/sis/storage/isobmff/Reader.java | 4 +-
.../apache/sis/storage/isobmff/gimi/ModelCRS.java | 2 +-
netbeans-project/nbproject/project.xml | 1 +
optional/src/org.apache.sis.gui/bundle/bin/sis | 2 +-
.../src/org.apache.sis.gui/bundle/bin/sis_shell | 2 +-
optional/src/org.apache.sis.gui/bundle/bin/sisfx | 2 +-
.../src/org.apache.sis.gui/bundle/conf/imports.jsh | 2 +-
.../org/apache/sis/gui/coverage/CellFormat.java | 4 +-
.../main/module-info.java | 11 +-
.../apache/sis/storage/gdal/GDALStoreProvider.java | 2 +
.../org/apache/sis/storage/gdal/package-info.java | 4 +-
186 files changed, 4750 insertions(+), 1960 deletions(-)
create mode 100644
endorsed/src/org.apache.sis.feature/main/org/apache/sis/coverage/grid/TranslatedTransform.java
create mode 100644
endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/base/BinaryFunctionWidening.java
rename endorsed/src/org.apache.sis.feature/main/org/apache/sis/filter/{ =>
math}/ArithmeticFunction.java (56%)
create mode 100644
endorsed/src/org.apache.sis.referencing/main/org/apache/sis/geometry/ImmutableDirectPosition.java
create mode 100644
endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/MissingSourceDimensionsException.java
create mode 100644
endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/operation/matrix/UnderdeterminedMatrixException.java
create mode 100644
endorsed/src/org.apache.sis.util/main/org/apache/sis/math/NumberType.java
copy
endorsed/src/org.apache.sis.util/main/org/apache/sis/pending/jdk/{JDK15.java =>
JDK12.java} (65%)
create mode 100644
endorsed/src/org.apache.sis.util/test/org/apache/sis/math/NumberTypeTest.java