This is an automated email from the ASF dual-hosted git repository. desruisseaux pushed a commit to branch geoapi-3.1 in repository https://gitbox.apache.org/repos/asf/sis.git
commit f1b755d4c71544a0376b176f896fb5aae6c933ca Author: Martin Desruisseaux <[email protected]> AuthorDate: Tue Sep 2 16:31:01 2025 +0200 Upgrade the GeoAPI dependency. --- .../referencing/factory/GeodeticAuthorityFactory.java | 16 ++++++++++++++++ geoapi/snapshot | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java index c684889ab8..c60d32a692 100644 --- a/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java +++ b/endorsed/src/org.apache.sis.referencing/main/org/apache/sis/referencing/factory/GeodeticAuthorityFactory.java @@ -173,6 +173,22 @@ public abstract class GeodeticAuthorityFactory extends AbstractFactory implement return Optional.ofNullable(IdentifiedObjects.getDisplayName(createObject(type, code))); } + /** + * Returns a description of the object corresponding to a code. + * + * @param code value allocated by authority. + * @return a description of the object, or empty if the object corresponding to the specified code has no description. + * @throws FactoryException if an error occurred while fetching the description. + * + * @deprecated Replaced by {@link #getDescriptionText(Class, String)} because authority code without type are ambiguous. + */ + @Override + @Deprecated(since="1.5") + @SuppressWarnings("removal") // Cannot be removed before a migration to GeoAPI 4.0. + public InternationalString getDescriptionText(final String code) throws FactoryException { + return getDescriptionText(CoordinateReferenceSystem.class, code).orElse(null); + } + /** * Returns an object of the specified type from a code. This implementation forwards * the method call to the most specialized methods determined by the given type. diff --git a/geoapi/snapshot b/geoapi/snapshot index 8170551f45..ec781af595 160000 --- a/geoapi/snapshot +++ b/geoapi/snapshot @@ -1 +1 @@ -Subproject commit 8170551f45eac993404798f839e9cc5e5cbf8f75 +Subproject commit ec781af595a5b8a234550237ea5d6f4e4eb876f8
