<?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="unita_di_gestione" 
           type="ms:unita_di_gestioneType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="unita_di_gestioneType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="wkb_geometry" type="gml:MultiSurfacePropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="t_id" minOccurs="0" type="integer"/>
          <element name="anno_di_riferimento" minOccurs="0" type="integer"/>
          <element name="dati_definitivi" minOccurs="0" type="boolean"/>
          <element name="numero_azienda" minOccurs="0" type="string"/>
          <element name="numero_unita_di_produzione" minOccurs="0" type="string"/>
          <element name="comune" minOccurs="0" type="integer"/>
          <element name="zona_estero" minOccurs="0" type="string"/>
          <element name="identificatore_unita_gestione" minOccurs="0" type="string"/>
          <element name="superficie_m2" minOccurs="0" type="integer"/>
          <element name="cantone" minOccurs="0" type="string"/>
          <element name="numero_ris" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="unita_di_produzione" 
           type="ms:unita_di_produzioneType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="unita_di_produzioneType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="wkb_geometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="anno_di_riferimento" minOccurs="0" type="integer"/>
          <element name="numero_unita_di_produzione" minOccurs="0" type="string"/>
          <element name="nome_unita_di_produzione" minOccurs="0" type="string"/>
          <element name="numero_azienda" minOccurs="0" type="string"/>
          <element name="numero_ris" minOccurs="0" type="string"/>
          <element name="cantone" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

  <element name="azienda" 
           type="ms:aziendaType" 
           substitutionGroup="gml:_Feature" />

  <complexType name="aziendaType">
    <complexContent>
      <extension base="gml:AbstractFeatureType">
        <sequence>
          <element name="wkb_geometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/>
          <element name="anno_di_riferimento" minOccurs="0" type="integer"/>
          <element name="numero_azienda" minOccurs="0" type="string"/>
          <element name="nome_azienda" minOccurs="0" type="string"/>
          <element name="numero_ris" minOccurs="0" type="string"/>
          <element name="cantone" minOccurs="0" type="string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

</schema>
