Class DefinitionXml

java.lang.Object
ch.so.agi.filegdb.catalog.DefinitionXml

public final class DefinitionXml extends Object
Tolerant reader for the XML definitions stored in GDB_Items.

The geodatabase stores spatial references, field metadata, domains and relationship classes as XML documents. The parser matches element names without namespace prefixes, mirroring the behaviour of GDAL's CPL XML parser.

  • Method Details

    • contains

      public static boolean contains(String xml, String marker)
    • crs

      public static CrsDefinition crs(String xml)
      Spatial reference of a dataset definition.
    • fieldInfo

      public static Map<String,FieldMetadata> fieldInfo(String xml)
      Field metadata from the GPFieldInfoExs section of a dataset definition, keyed by field name.
    • unsupportedEditingReason

      public static String unsupportedEditingReason(String xml)
      Editing rules whose side effects this library cannot maintain.
    • withStorageExtent

      public static String withStorageExtent(String xml, ch.so.agi.filegdb.geometry.Envelope bounds, boolean indexed)
      Updates only storage extent and index metadata, retaining other XML elements.
    • domain

      public static Domain domain(String xml)
      Parses a coded value or range domain definition, or returns null.
    • relationship

      public static RelationshipClass relationship(String xml)
      Parses a relationship class definition, or returns null.