<?xml version='1.0' encoding="UTF-8" ?>
<schema
   targetNamespace="http://mapserver.gis.umn.edu/mapserver" 
   xmlns:ms="http://mapserver.gis.umn.edu/mapserver" 
   xmlns:ogc="http://www.opengis.net/ogc"
   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="https://schemas.opengis.net/gml/3.1.1/base/gml.xsd" />

  <element name="route" 
           type="ms:routeType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="routeType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="wkb_geometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="identificateur_canton" minOccurs="0" type="string"/>
          <element name="typ_d_itineraire" minOccurs="0" type="string"/>
          <element name="largeur_de_chaussee" minOccurs="0" type="double"/>
          <element name="hauteure_libre" minOccurs="0" type="double"/>
          <element name="poids_total" minOccurs="0" type="integer"/>
          <element name="charge_par_essieu" minOccurs="0" type="integer"/>
          <element name="canton" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="obstacle" 
           type="ms:obstacleType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="obstacleType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="wkb_geometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="description" minOccurs="0" type="string"/>
          <element name="restriction_largeur_chaussee" minOccurs="0" type="double"/>
          <element name="restriction_heuteur_libre" minOccurs="0" type="double"/>
          <element name="restriction_poids_total" minOccurs="0" type="integer"/>
          <element name="restriction_charge_par_essieu" minOccurs="0" type="integer"/>
          <element name="r_itineraire_identificateur_canton" minOccurs="0" type="string"/>
          <element name="canton" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

</schema>
