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 b6025b282d Remove an identifier wrongly associated to format
specification in metadata.
b6025b282d is described below
commit b6025b282ddc662f9a2fc8d5000d473a673f5d53
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Tue Jan 7 19:24:36 2025 +0100
Remove an identifier wrongly associated to format specification in metadata.
---
.../test/org/apache/sis/storage/netcdf/MetadataReaderTest.java | 2 --
.../main/org/apache/sis/storage/base/MetadataBuilder.java | 1 -
2 files changed, 3 deletions(-)
diff --git
a/endorsed/src/org.apache.sis.storage.netcdf/test/org/apache/sis/storage/netcdf/MetadataReaderTest.java
b/endorsed/src/org.apache.sis.storage.netcdf/test/org/apache/sis/storage/netcdf/MetadataReaderTest.java
index e9ce2f1d81..689854ae78 100644
---
a/endorsed/src/org.apache.sis.storage.netcdf/test/org/apache/sis/storage/netcdf/MetadataReaderTest.java
+++
b/endorsed/src/org.apache.sis.storage.netcdf/test/org/apache/sis/storage/netcdf/MetadataReaderTest.java
@@ -133,8 +133,6 @@ public final class MetadataReaderTest extends TestCase {
entry("identificationInfo[0].resourceFormat[0].formatSpecificationCitation.title",
"NetCDF Classic and 64-bit Offset Format"),
entry("identificationInfo[0].resourceFormat[0].formatSpecificationCitation.citedResponsibleParty[0].party[0].name",
"Open Geospatial Consortium"),
entry("identificationInfo[0].resourceFormat[0].formatSpecificationCitation.citedResponsibleParty[0].role",
Role.PRINCIPAL_INVESTIGATOR),
-
entry("identificationInfo[0].resourceFormat[0].formatSpecificationCitation.identifier[0].codeSpace",
ucar ? "UCAR" : "SIS"),
-
entry("identificationInfo[0].resourceFormat[0].formatSpecificationCitation.identifier[0].code",
"NetCDF"),
// Read from the file
entry("dateInfo[0].date",
actual(LocalDateTime.of(2018, 5, 15, 13, 1), ucar)),
diff --git
a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/base/MetadataBuilder.java
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/base/MetadataBuilder.java
index 9d5f24b289..21b5586427 100644
---
a/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/base/MetadataBuilder.java
+++
b/endorsed/src/org.apache.sis.storage/main/org/apache/sis/storage/base/MetadataBuilder.java
@@ -3131,7 +3131,6 @@ public class MetadataBuilder {
}
}
final DefaultCitation c = getFormatCitation();
- addIfNotPresent(c.getIdentifiers(), driver);
addIfNotPresent(c.getOtherCitationDetails(),
Resources.formatInternational(Resources.Keys.ReadBy_2, (title
!= null) ? title : driver.getCodeSpace(),
(version != null) ? version :
Vocabulary.formatInternational(Vocabulary.Keys.Unspecified)));