sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1832808 - /sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
Date Mon, 04 Jun 2018 10:28:05 GMT
Author: desruisseaux
Date: Mon Jun  4 10:28:04 2018
New Revision: 1832808

URL: http://svn.apache.org/viewvc?rev=1832808&view=rev
Log:
Add abbreviations for all sub-interfaces found in ISO 19115 except quality package.

Modified:
    sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java

Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java?rev=1832808&r1=1832807&r2=1832808&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/sql/TableHierarchy.java
[UTF-8] Mon Jun  4 10:28:04 2018
@@ -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.
     }
 
     /**



Mime
View raw message