﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:jps="http://www.gsi.go.jp/GIS/jpgis/standardSchemas2014" xmlns:apf="https://www.gsi.go.jp/common/000259037" targetNamespace="https://www.gsi.go.jp/common/000259037" elementFormDefault="qualified" attributeFormDefault="unqualified">

	<xs:import namespace="http://www.gsi.go.jp/GIS/jpgis/standardSchemas2014" schemaLocation="jpsRoot.xsd"/>
	<!-- ==== GI ==== -->
	<xs:element name="GI">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="exchangeMetadata" type="jps:ExchangeMetadata" minOccurs="0"/>
				<xs:element name="dataset" type="apf: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 maxOccurs="unbounded">
			<xs:group ref="apf:Object"/>
		</xs:sequence>
		<xs:attributeGroup ref="jps:IM_ObjectIdentification"/>
	</xs:complexType>
	<xs:group name="Object">
		<xs:sequence>
						<xs:any namespace="https://www.gsi.go.jp/common/000259037 http://www.gsi.go.jp/GIS/jpgis/standardSchemas2014"/>
		</xs:sequence>
	</xs:group>
	<!-- ==== 公共基準点 ==== -->
	<xs:element name="pcp" type="apf:pcp" substitutionGroup="jps:IM_Object"/>
	<xs:complexType name="pcp">
		<xs:complexContent>
			<xs:extension base="jps:IM_Object">
				<xs:sequence>
					<xs:element name="point" type="jps:GM_Point"/>													<!-- 地点 -->
					<xs:element name="pcpNo" type="jps:Integer"/>													<!-- 点番号 -->
					<xs:element name="pcpName" type="jps:CharacterString"/>											<!-- 点名称 -->
					<xs:element name="advNo" type="jps:CharacterString" />											<!-- 助言番号 -->
					<xs:element name="B" type="jps:CharacterString" minOccurs="0" maxOccurs="1"/>					<!-- 緯度 -->
					<xs:element name="L" type="jps:CharacterString" minOccurs="0" maxOccurs="1"/>					<!-- 経度 -->
					<xs:element name="X" type="jps:CharacterString" />												<!-- X座標 -->
					<xs:element name="Y" type="jps:CharacterString" />												<!-- Y座標 -->
					<xs:element name="cooSys" type="jps:CharacterString" />											<!-- 座標系 -->
					<xs:element name="alti" type="jps:CharacterString" />											<!-- 標高 -->
					<xs:element name="geoidH" type="jps:CharacterString" minOccurs="0" maxOccurs="1"/>				<!-- ジオイド高 -->
					<xs:element name="pcpClass" type="jps:CodeType"/>												<!-- 等級 -->
					<xs:element name="scafac" type="jps:CharacterString"/>											<!-- 縮尺係数 -->
					<xs:element name="tnda" type="jps:CharacterString"/>											<!-- 真北方向角 -->
					<xs:element name="pilLen" type="jps:CharacterString" minOccurs="0" maxOccurs="1"/>				<!-- 柱石長 -->
					<xs:element name="monSys" type="jps:CodeType"/>													<!-- 埋標形式 -->
					<xs:element name="mark" type="jps:CodeType"/>													<!-- 標識 -->
					<xs:element name="marNo" type="jps:CharacterString" minOccurs="0" maxOccurs="1"/>				<!-- 標識番号 -->
					<xs:element name="antHei" type="jps:CharacterString" minOccurs="0" maxOccurs="1"/>				<!-- アンテナ高 -->
					<xs:element name="dirNo" type="jps:Integer"/>													<!-- 方向数 -->
					<xs:element name="colPNo" type="jps:CharacterString" minOccurs="0" maxOccurs="unbounded"/>		<!-- 視準点番号 -->
					<xs:element name="colPName" type="jps:CharacterString" minOccurs="0" maxOccurs="unbounded"/>	<!-- 視準点名称 -->
					<xs:element name="colPClass" type="jps:CodeType" minOccurs="0" maxOccurs="unbounded"/>			<!-- 視準点等級 -->
					<xs:element name="adjDirAng" type="jps:CharacterString" minOccurs="0" maxOccurs="unbounded"/>	<!-- 平均方向角 -->
					<xs:element name="dist" type="jps:CharacterString" minOccurs="0" maxOccurs="unbounded"/>		<!-- 距離 -->
					<xs:element name="rema" type="jps:CharacterString" minOccurs="0" maxOccurs="unbounded"/>		<!-- 備考 -->
					<xs:element name="obsDay" type="jps:CharacterString" minOccurs="0" maxOccurs="unbounded"/>		<!-- 観測日 -->
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<!-- ==== 等級 ==== -->
	<xs:element name="pcpClass" type="apf:pcpClass"/>
	<xs:complexType name="pcpClass">
		<xs:complexContent>
			<xs:extension base="jps:codelist"/>
		</xs:complexContent>
	</xs:complexType>
	<!-- ==== 埋標形式 ==== -->
	<xs:element name="monSys" type="apf:monSys"/>
	<xs:complexType name="monSys">
		<xs:complexContent>
			<xs:extension base="jps:codelist"/>
		</xs:complexContent>
	</xs:complexType>
	<!-- ==== 標識 ==== -->
	<xs:element name="mark" type="apf:mark"/>
	<xs:complexType name="mark">
		<xs:complexContent>
			<xs:extension base="jps:codelist"/>
		</xs:complexContent>
	</xs:complexType>
	<!-- ==== 視準点等級 ==== -->
	<xs:element name="colPClass" type="apf:colPClass"/>
	<xs:complexType name="colPClass">
		<xs:complexContent>
			<xs:extension base="jps:codelist"/>
		</xs:complexContent>
	</xs:complexType>
</xs:schema>
