PEF Element: location

Description:

The PEF location element has subelements corresponding to the structure of an Epicentre location datatype. These include a reference to a coordinate_system, an optional reference to a vertex, and a list of coordinates.

Proposed Usage:

This datatype was developed to support the Epicentre location data types. It is intended as a direct mapping from Epicentre to an XML file. The OGC is developing its GML with industry standard ways for giving locations. It is expected that applications outside of Epicentre mappings will use the GML methodology.

XML Schema:

  • The schema and examples do not explicitly show the lines that set the namespaces.
  • All schema examples will use xsd: as the namespace for the schema tags and datatypes, and null for all the locally generated namespaces.
  • The defining file, either peftypes_u.xsd or peftypes_q.xsd, must be imported into the document building the application schema.
  • It is recommended that these elements and their subelements have a namespace qualifier. The recommended qualifier is 'pef'.
  • <xsd:element name="location" type="simplelocation"/>
    

    Sample Usage Schema:

  • The element is globally defined. It is recommended that elementFormDefault be "qualified."
  •   <element name="data_value">
       <complexType>
        <sequence>
         <element ref="pef:location"/>
        </sequence>
       </complexType>
      </element>
    

    Sample XML:

    The example will show namespace of 'pef'

      <data_value>
        <pef:location>
          <pef:coordinate_system-ref refTo="#NAD27"/>
          <pef:coordinate unit="#dega">30.279553</pef:coordinate>
          <pef:coordinate unit="#dega">-98.199500</pef:coordinate>
        </pef:location>
      </data_value>
    

    Last Modified: March 21, 2001
    ©Copyright 2001 POSC. All rights reserved.