This is an automated email from the ASF dual-hosted git repository.
asf-gitbox-commits 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 dd9e89caa2 Add missing getter for reference system type.
dd9e89caa2 is described below
commit dd9e89caa21bde9e67cb768f0d225a382dabeea0
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Fri Nov 6 16:41:09 2026 +0100
Add missing getter for reference system type.
---
.../xml/bind/metadata/replace/ReferenceSystemMetadata.java | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git
a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/metadata/replace/ReferenceSystemMetadata.java
b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/metadata/replace/ReferenceSystemMetadata.java
index dd7f011bf5..85fd851038 100644
---
a/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/metadata/replace/ReferenceSystemMetadata.java
+++
b/endorsed/src/org.apache.sis.metadata/main/org/apache/sis/xml/bind/metadata/replace/ReferenceSystemMetadata.java
@@ -16,6 +16,7 @@
*/
package org.apache.sis.xml.bind.metadata.replace;
+import java.util.Optional;
import java.lang.reflect.Type;
import jakarta.xml.bind.Marshaller;
import jakarta.xml.bind.annotation.XmlType;
@@ -119,6 +120,16 @@ public class ReferenceSystemMetadata extends
SimpleIdentifiedObject implements R
return ReferenceSystem.class;
}
+ /**
+ * Returns the type of this reference system.
+ *
+ * @return the type of this reference system.
+ */
+ @Override
+ public Optional<ReferenceSystemType> getReferenceSystemType() {
+ return Optional.ofNullable(referenceSystemType);
+ }
+
/**
* Invoked by JAXB {@code Marshaller} before this object is marshalled to
XML.
*