﻿<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app"
 xmlns:xlink="http://www.w3.org/1999/xlink"
 xmlns:jps="http://www.gsi.go.jp/GIS/jpgis/standardSchemas"
 xmlns:ksj="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app"
 xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="unqualified" attributeFormDefault="unqualified">
  <xs:annotation>
    <xs:appinfo>KsjAppSchema-L05_v1_1.xsd</xs:appinfo>
    <xs:documentation>国土数値情報（工業用地）第1.1応用スキーマのXMLスキーマ文書</xs:documentation>
  </xs:annotation>
  <!-- include and import -->
  <xs:import namespace="http://www.gsi.go.jp/GIS/jpgis/standardSchemas" schemaLocation="jpsRoot.xsd" />
  <xs:import namespace="http://www.gsi.go.jp/GIS/jpgis/standardSchemas" schemaLocation="jpsGrid.xsd" />
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlinks.xsd" />
  <!-- GI -->
  <xs:element name="GI">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="exchangeMetadata" type="jps:ExchangeMetadata" minOccurs="0" />
        <xs:element name="dataset" type="ksj:Dataset" minOccurs="0" />
      </xs:sequence>
      <xs:attribute name="version" type="jps:CharacterString" use="required" fixed="1.0" />
      <xs:attribute name="timeStamp" type="jps:DateTime" use="required" />
    </xs:complexType>
  </xs:element>
  <xs:complexType name="Dataset">
    <xs:sequence>
      <xs:element name="crs" type="jps:ref_RS_CRS" minOccurs="0" maxOccurs="2" />
      <xs:element ref="ksj:object" />
    </xs:sequence>
  </xs:complexType>
  <xs:element name="object">
    <xs:complexType>
      <xs:group ref="ksj:Object" minOccurs="0" maxOccurs="unbounded" />
      <xs:attributeGroup ref="jps:IM_ObjectReference" />
    </xs:complexType>
  </xs:element>
  <xs:group name="Object">
    <xs:sequence>
      <xs:any namespace="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app http://www.gsi.go.jp/GIS/jpgis/standardSchemas" />
    </xs:sequence>
  </xs:group>




  <!-- ==================================================== -->
  <!--    データ集合、国土数値情報地物、国土数値情報メッシュ   -->
  <!-- ==================================================== -->
  <!-- ====国土数値情報データ集合パッケージ==== -->
  <!-- 国土数値情報データ集合 -->
  <xs:element name="AA01" type="ksj:AA01" />
  <xs:complexType name="AA01">
    <xs:complexContent>
      <xs:extension base="jps:IM_Object">
        <xs:sequence>
          <xs:element ref="ksj:RES" minOccurs="1" maxOccurs="2" />
          <xs:element ref="ksj:OBJ" minOccurs="0" maxOccurs="unbounded" />
          <xs:element ref="ksj:OBJ-m" minOccurs="0" maxOccurs="unbounded" />
        </xs:sequence>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:element name="RES" type="jps:ref_RS_CRS" />
  <xs:element name="OBJ">
    <xs:complexType>
      <xs:annotation>
        <xs:documentation>国土数値情報データ集合の地物への関連</xs:documentation>
      </xs:annotation>
      <xs:choice maxOccurs="unbounded">
        <xs:any namespace="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app http://www.gsi.go.jp/GIS/jpgis/standardSchemas" />
      </xs:choice>
      <xs:attributeGroup ref="jps:IM_ObjectReference" />
    </xs:complexType>
  </xs:element>
  <xs:element name="OBJ-m">
    <xs:complexType>
      <xs:annotation>
        <xs:documentation>国土数値情報データ集合のメッシュへの関連</xs:documentation>
      </xs:annotation>
      <xs:choice maxOccurs="unbounded">
        <xs:any namespace="http://nlftp.mlit.go.jp/ksj/schemas/ksj-app http://www.gsi.go.jp/GIS/jpgis/standardSchemas" />
      </xs:choice>
      <xs:attributeGroup ref="jps:IM_ObjectReference" />
    </xs:complexType>
  </xs:element>
  <!-- 国土数値情報地物 -->
  <xs:element name="AA02" type="ksj:AA02" abstract="true" />
  <xs:complexType name="AA02" abstract="true">
    <xs:complexContent>
      <xs:extension base="jps:IM_Object" />
    </xs:complexContent>
  </xs:complexType>
  <!-- 国土数値情報メッシュ -->
  <xs:element name="mAA02" type="ksj:mAA02" abstract="true" substitutionGroup="jps:JP_Grid" />
  <xs:complexType name="mAA02" abstract="true">
    <xs:complexContent>
      <xs:extension base="jps:JP_Grid" />
    </xs:complexContent>
  </xs:complexType>



  <!-- ==================================================== -->
  <!--                     工業用地                        -->
  <!-- ==================================================== -->
<!-- ==工業用地パッケージ== -->
  <!--工業団地-->
<xs:element name="FD01" type="ksj:FD01" substitutionGroup="ksj:AA02"/>
  <!--単独工場用地-->
<xs:element name="FD02" type="ksj:FD02" substitutionGroup="ksj:AA02"/>

  <!-- ====工業団地==== -->
 <xs:complexType name="FD01">
  <xs:annotation>
    <xs:documentation>type of工業団地</xs:documentation>
  </xs:annotation>
   <xs:complexContent>
     <xs:extension base="ksj:AA02">
       <xs:sequence>
           <xs:element ref="ksj:DIS"/> <!--工業用地範囲-->
           <xs:element ref="ksj:IID"/> <!--工業用地ＩＤ-->
           <xs:element ref="ksj:INM" minOccurs="0" maxOccurs="1"/> <!--工業用地名-->
           <xs:element ref="ksj:REG" minOccurs="0" maxOccurs="1"/> <!--地区名-->
           <xs:element ref="ksj:AAC" />	<!--都道府県コード-->
           <xs:element ref="ksj:CCD" />	<!--市区町村コード-->
           <xs:element ref="ksj:CNM" />	<!--市区町村名-->
           <xs:element ref="ksj:SCD" minOccurs="0" maxOccurs="1"/> <!--臨海・内陸区分-->
           <xs:element ref="ksj:DEV" minOccurs="0" maxOccurs="1"/> <!--事業主体名-->
           <xs:element ref="ksj:EDY" minOccurs="0" maxOccurs="1"/> <!--事業完了年-->
           <xs:element ref="ksj:ARE" minOccurs="0" maxOccurs="1"/> <!--全体開発面積-->
           <xs:element ref="ksj:IND" minOccurs="0" maxOccurs="1"/> <!--工業用地面積-->
           <xs:element ref="ksj:UNU" minOccurs="0" maxOccurs="1"/> <!--未利用地面積-->
           <xs:element ref="ksj:UCD" minOccurs="0" maxOccurs="unbounded"/> <!--用途地域-->
           <xs:element ref="ksj:COC"/> <!--立地企業数-->
           <xs:element ref="ksj:COM" minOccurs="0" maxOccurs="10"/>	<!--立地企業名-->
           <xs:element ref="ksj:CMM" minOccurs="0" maxOccurs="1"/> <!--特記事項-->
        </xs:sequence>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>

  <!-- ====単独工場用地==== -->
 <xs:complexType name="FD02">
  <xs:annotation>
    <xs:documentation>type of単独工場用地</xs:documentation>
  </xs:annotation>
   <xs:complexContent>
     <xs:extension base="ksj:AA02">
       <xs:sequence>
           <xs:element ref="ksj:DIS"/> <!--工業用地範囲-->
           <xs:element ref="ksj:IID"/> <!--工業用地ＩＤ-->
           <xs:element ref="ksj:INM" minOccurs="0" maxOccurs="1"/> <!--工業用地名-->
           <xs:element ref="ksj:AAC"/> <!--都道府県コード-->
           <xs:element ref="ksj:CCD"/> <!--市区町村コード-->
           <xs:element ref="ksj:CNM"/> <!--市区町村名-->
           <xs:element ref="ksj:SCD" minOccurs="0" maxOccurs="1"/> <!--臨海・内陸区分-->
           <xs:element ref="ksj:CAT" minOccurs="0" maxOccurs="1"/> <!--業種-->
           <xs:element ref="ksj:CMM" minOccurs="0" maxOccurs="1"/> <!--特記事項-->
       </xs:sequence>
     </xs:extension>
   </xs:complexContent>
 </xs:complexType>

  <!--参照定義-->
  <xs:element name="IID" type="jps:CharacterString"/>
  <xs:element name="INM" type="jps:CharacterString"/>
  <xs:element name="REG" type="jps:CharacterString"/>
  <xs:element name="AAC" type="jps:CodeType"/>
  <xs:element name="CCD" type="jps:CodeType"/>
  <xs:element name="CNM" type="jps:CharacterString"/>
  <xs:element name="SCD" type="jps:CodeType"/>
  <xs:element name="DEV" type="jps:CharacterString"/>
  <xs:element name="EDY" type="jps:Integer"/>
  <xs:element name="ARE" type="jps:Real"/>
  <xs:element name="IND" type="jps:Real"/>  
  <xs:element name="CAT" type="jps:CharacterString"/>
  <xs:element name="UNU" type="jps:Real"/>
  <xs:element name="UCD" type="jps:CodeType"/>
  <xs:element name="COC" type="jps:Integer"/>
  <xs:element name="COM" type="jps:CharacterString"/>
  <xs:element name="CMM" type="jps:CharacterString"/>



  <!-- ==================================================== -->
  <!--（ベクトルデータ） 空間スキーマプロファイルへの参照 -->
  <!-- ==================================================== -->
  <!-- 空間属性GM_Pointへの参照 -->
  <xs:element name="POS" type="jps:ref_GM_Point"/>
  <!-- 空間属性GM_Curveへの参照 -->
  <xs:element name="LOC" type="jps:ref_GM_Curve"/>
  <!-- 空間属性GM_Surfaceへの参照 -->
  <xs:element name="DIS" type="jps:ref_GM_Surface"/>

</xs:schema>



