This is an automated email from the ASF dual-hosted git repository.
desruisseaux pushed a commit to branch geoapi-4.0
in repository https://gitbox.apache.org/repos/asf/sis.git
The following commit(s) were added to refs/heads/geoapi-4.0 by this push:
new d2eca32ddb Set the type of "North/South Pole Rotation" operation
method, which is `Conversion`.
d2eca32ddb is described below
commit d2eca32ddb8b3d0c6d50c0571f0aae70f5baec77
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Mon May 9 16:50:47 2022 +0200
Set the type of "North/South Pole Rotation" operation method, which is
`Conversion`.
---
.../internal/referencing/provider/NorthPoleRotation.java | 12 ++++++++++++
.../internal/referencing/provider/SouthPoleRotation.java | 16 +++++++++++++++-
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git
a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/NorthPoleRotation.java
b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/NorthPoleRotation.java
index a1ca56f8e8..1298e9dfa7 100644
---
a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/NorthPoleRotation.java
+++
b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/NorthPoleRotation.java
@@ -21,6 +21,7 @@ import org.opengis.util.FactoryException;
import org.opengis.parameter.ParameterValueGroup;
import org.opengis.parameter.ParameterDescriptor;
import org.opengis.parameter.ParameterDescriptorGroup;
+import org.opengis.referencing.operation.Conversion;
import org.opengis.referencing.operation.MathTransform;
import org.opengis.referencing.operation.MathTransformFactory;
import org.apache.sis.referencing.operation.transform.PoleRotation;
@@ -40,6 +41,7 @@ import org.apache.sis.measure.Units;
* @author Martin Desruisseaux (Geomatys)
* @version 1.2
*
+ * @see SouthPoleRotation
* @see <a
href="https://cfconventions.org/cf-conventions/cf-conventions.html#_rotated_pole">Rotated
pole in CF-conventions</a>
*
* @since 1.2
@@ -139,6 +141,16 @@ public final class NorthPoleRotation extends
AbstractProvider {
super(2, 2, PARAMETERS);
}
+ /**
+ * Returns the operation type for this map projection.
+ *
+ * @return {@code Conversion.class} or a sub-type.
+ */
+ @Override
+ public Class<? extends Conversion> getOperationType() {
+ return Conversion.class;
+ }
+
/**
* Creates a coordinate operation from the specified group of parameter
values.
*
diff --git
a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/SouthPoleRotation.java
b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/SouthPoleRotation.java
index bd737b566f..72452c7185 100644
---
a/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/SouthPoleRotation.java
+++
b/core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/provider/SouthPoleRotation.java
@@ -21,6 +21,7 @@ import org.opengis.util.FactoryException;
import org.opengis.parameter.ParameterValueGroup;
import org.opengis.parameter.ParameterDescriptor;
import org.opengis.parameter.ParameterDescriptorGroup;
+import org.opengis.referencing.operation.Conversion;
import org.opengis.referencing.operation.MathTransform;
import org.opengis.referencing.operation.MathTransformFactory;
import org.apache.sis.referencing.operation.transform.PoleRotation;
@@ -43,7 +44,10 @@ import org.apache.sis.measure.Units;
*
* @author Martin Desruisseaux (Geomatys)
* @version 1.2
- * @since 1.2
+ *
+ * @see NorthPoleRotation
+ *
+ * @since 1.2
* @module
*/
@XmlTransient
@@ -148,6 +152,16 @@ public final class SouthPoleRotation extends
AbstractProvider {
super(2, 2, PARAMETERS);
}
+ /**
+ * Returns the operation type for this map projection.
+ *
+ * @return {@code Conversion.class} or a sub-type.
+ */
+ @Override
+ public Class<? extends Conversion> getOperationType() {
+ return Conversion.class;
+ }
+
/**
* Creates a coordinate operation from the specified group of parameter
values.
*