sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject [sis] 19/31: Add abbreviations for all sub-interfaces found in ISO 19115 except quality package.
Date Mon, 18 Jun 2018 09:44:30 GMT
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

commit df7c8b202ab704e55f7fd32f7f18ed747e500772
Author: Martin Desruisseaux <desruisseaux@apache.org>
AuthorDate: Mon Jun 4 10:28:04 2018 +0000

    Add abbreviations for all sub-interfaces found in ISO 19115 except quality package.
    
    
    git-svn-id: https://svn.apache.org/repos/asf/sis/branches/JDK8@1832808 13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/sis/metadata/sql/TableHierarchy.java    | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
b/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
index 41374f2..f601c5d 100644
--- a/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
+++ b/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
@@ -43,24 +43,34 @@ final class TableHierarchy {
      * {@code "MD_VectorSpatialRepresentation"} consume a lot of space, which leave few spaces
left
      * for actual identifiers when we want to limit the length to a relatively small value.
      */
-    private static final Map<String,String> ABBREVIATIONS = new HashMap<>(16);
+    private static final Map<String,String> ABBREVIATIONS = new HashMap<>(25);
 
     /**
      * The reverse of {@link #ABBREVIATIONS}.
      */
-    private static final Map<String,String> TABLES = new HashMap<>(16);
+    private static final Map<String,String> TABLES = new HashMap<>(25);
     static {
+        add("CI_Individual",                  "ind");
+        add("CI_Organisation",                "org");
         add("MD_VectorSpatialRepresentation", "vec");
         add("MD_GridSpatialRepresentation",   "grd");
         add("MD_Georectified",                "rtf");
         add("MD_Georeferenceable",            "cbl");
-        add("MD_DataIdentification",          "dat");
+        add("MD_DataIdentification",          "data");
         add("SV_ServiceIdentification",       "srv");
         add("MD_FeatureCatalogueDescription", "cat");
         add("MD_CoverageDescription",         "cov");
         add("MD_ImageDescription",            "img");
         add("MD_SampleDimension",             "sd");
-        add("MD_Band",                        "bd");
+        add("MD_Band",                        "band");
+        add("MD_LegalConstraints",            "legal");
+        add("MD_SecurityConstraints",         "secu");
+        add("EX_GeographicBoundingBox",       "bbox");
+        add("EX_BoundingPolygon",             "poly");
+        add("EX_GeographicDescription",       "gdsc");
+        add("EX_SpatialTemporalExtent",       "ste");
+        add("MI_GCPCollection",               "gcp");
+        // TODO: missing quality package.
     }
 
     /**

-- 
To stop receiving notification emails like this one, please contact
desruisseaux@apache.org.

Mime
View raw message