<?xml version='1.0' encoding="UTF-8" ?>
<schema
   targetNamespace="http://www.magadb.net" 
   xmlns:maga="http://www.magadb.net" 
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns="http://www.w3.org/2001/XMLSchema"
   xmlns:gml="http://www.opengis.net/gml"
   elementFormDefault="qualified" version="0.1" >

  <import namespace="http://www.opengis.net/gml"
          schemaLocation="http://schemas.opengis.net/gml/2.1.2/feature.xsd" />

  <element name="locations" 
           type="maga:locationsType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="locationsType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="maga_loc_id" minOccurs="0" type="integer"/>
          <element name="name" minOccurs="0" type="string"/>
          <element name="description" minOccurs="0" type="string"/>
          <element name="hazard_description" minOccurs="0" type="string"/>
          <element name="type" minOccurs="0" type="string"/>
          <element name="humansinjuried" minOccurs="0" type="boolean"/>
          <element name="animalsinjuried" minOccurs="0" type="boolean"/>
          <element name="region" minOccurs="0" type="string"/>
          <element name="country" minOccurs="0" type="string"/>
          <element name="volcanic_complex" minOccurs="0" type="string"/>
          <element name="si_volcano_code" minOccurs="0" type="integer"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="gas_concentration" 
           type="maga:gas_concentrationType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="gas_concentrationType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="maga_meas_name" minOccurs="0" type="string"/>
          <element name="date" minOccurs="0" type="date"/>
          <element name="maga_loc_id" minOccurs="0" type="integer"/>
          <element name="maga_loc" minOccurs="0" type="string"/>
          <element name="maga_meas_id" minOccurs="0" type="integer"/>
          <element name="weblink" minOccurs="0" type="string"/>
          <element name="meas_conc_id" minOccurs="0" type="integer"/>
          <element name="specie" minOccurs="0" type="string"/>
          <element name="concentration" minOccurs="0" type="double"/>
          <element name="uom" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="gas_isotope" 
           type="maga:gas_isotopeType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="gas_isotopeType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="maga_meas_name" minOccurs="0" type="string"/>
          <element name="date" minOccurs="0" type="date"/>
          <element name="maga_loc_id" minOccurs="0" type="integer"/>
          <element name="maga_loc" minOccurs="0" type="string"/>
          <element name="weblink" minOccurs="0" type="string"/>
          <element name="isotope" minOccurs="0" type="string"/>
          <element name="aboundance" minOccurs="0" type="double"/>
          <element name="uom" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="gas_flux" 
           type="maga:gas_fluxType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="gas_fluxType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="maga_meas_name" minOccurs="0" type="string"/>
          <element name="date" minOccurs="0" type="date"/>
          <element name="maga_loc_id" minOccurs="0" type="integer"/>
          <element name="maga_loc" minOccurs="0" type="string"/>
          <element name="weblink" minOccurs="0" type="string"/>
          <element name="specie" minOccurs="0" type="string"/>
          <element name="flux" minOccurs="0" type="double"/>
          <element name="std_dev" minOccurs="0" type="double"/>
          <element name="uom" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="gas_temperature" 
           type="maga:gas_temperatureType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="gas_temperatureType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="maga_meas_name" minOccurs="0" type="string"/>
          <element name="date" minOccurs="0" type="date"/>
          <element name="maga_loc_id" minOccurs="0" type="integer"/>
          <element name="maga_loc" minOccurs="0" type="string"/>
          <element name="weblink" minOccurs="0" type="string"/>
          <element name="temp" minOccurs="0" type="string"/>
          <element name="uom" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

</schema>
