<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:apf="https://www.gsi.go.jp/common/000259036" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="https://www.gsi.go.jp/common/000259036" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19136_Schemas/gml.xsd"/>
	<!-- ==== ルート要素定義 ==== -->
	<xs:element name="Dataset" type="apf:DatasetType" substitutionGroup="gml:AbstractGML"/>
	<xs:complexType name="DatasetType">
		<xs:complexContent>
			<xs:extension base="gml:AbstractGMLType">
				<xs:sequence>
					<xs:element ref="gml:AbstractGML" maxOccurs="unbounded"/>
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<!-- ==== 公共基準点 ==== -->
	<xs:element name="pcp" type="apf:pcp" substitutionGroup="gml:AbstractFeature"/>
	<xs:complexType name="pcp">
		<xs:complexContent>
			<xs:extension base="gml:AbstractFeatureType">
				<xs:sequence>
					<xs:element name="point" type="gml:PointPropertyType"/>					<!-- 地点 -->
					<xs:element name="pcpNo" type="xs:integer"/>							<!-- 点番号 -->
					<xs:element name="pcpName" type="xs:string"/>							<!-- 点名称 -->
					<xs:element name="advNo" type="xs:string" />							<!-- 助言番号 -->
					<xs:element name="B" type="xs:string" minOccurs="0" maxOccurs="1"/>		<!-- 緯度 -->
					<xs:element name="L" type="xs:string" minOccurs="0" maxOccurs="1"/>		<!-- 経度 -->
					<xs:element name="X" type="xs:string" />								<!-- X座標 -->
					<xs:element name="Y" type="xs:string" />								<!-- Y座標 -->
					<xs:element name="cooSys" type="xs:string" />							<!-- 座標系 -->
					<xs:element name="alti" type="xs:string" />								<!-- 標高 -->
					<xs:element name="geoidH" type="xs:string" minOccurs="0" maxOccurs="1"/>		<!-- ジオイド高 -->
					<xs:element name="pcpClass" type="apf:pcpClassType"/>							<!-- 等級 -->
					<xs:element name="scafac" type="xs:string"/>									<!-- 縮尺係数 -->
					<xs:element name="tnda" type="xs:string"/>										<!-- 真北方向角 -->
					<xs:element name="pilLen" type="xs:string" minOccurs="0" maxOccurs="1"/>		<!-- 柱石長 -->
					<xs:element name="monSys" type="apf:monSysType"/>								<!-- 埋標形式 -->
					<xs:element name="mark" type="apf:markType"/>									<!-- 標識 -->
					<xs:element name="marNo" type="xs:string" minOccurs="0" maxOccurs="1"/>			<!-- 標識番号 -->
					<xs:element name="antHei" type="xs:string" minOccurs="0" maxOccurs="1"/>		<!-- アンテナ高 -->
					<xs:element name="dirNo" type="xs:integer"/>												<!-- 方向数 -->
					<xs:element name="colPNo" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>			<!-- 視準点番号 -->
					<xs:element name="colPName" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>			<!-- 視準点名称 -->
					<xs:element name="colPClass" type="apf:colPClassType" minOccurs="0" maxOccurs="unbounded"/>	<!-- 視準点等級 -->
					<xs:element name="adjDirAng" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>			<!-- 平均方向角 -->
					<xs:element name="dist" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>				<!-- 距離 -->
					<xs:element name="rema" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>				<!-- 備考 -->
					<xs:element name="obsDay" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>	<!-- 観測日 -->
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<!-- ==== 等級 ==== -->
	<xs:simpleType name="pcpClassType">
		<xs:union memberTypes="apf:pcpClassEnumType"/>
	</xs:simpleType>
	<xs:simpleType name="pcpClassEnumType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="21">
				<xs:annotation>
					<xs:appinfo>１級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="22">
				<xs:annotation>
					<xs:appinfo>２級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="23">
				<xs:annotation>
					<xs:appinfo>３級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="24">
				<xs:annotation>
					<xs:appinfo>４級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<!-- ==== 埋標形式 ==== -->
	<xs:simpleType name="monSysType">
		<xs:union memberTypes="apf:monSysEnumType"/>
	</xs:simpleType>
	<xs:simpleType name="monSysEnumType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="0">
				<xs:annotation>
					<xs:appinfo>地上</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="1">
				<xs:annotation>
					<xs:appinfo>地中</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="2">
				<xs:annotation>
					<xs:appinfo>屋上</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<!-- ==== 標識 ==== -->
	<xs:simpleType name="markType">
		<xs:union memberTypes="apf:markEnumType"/>
	</xs:simpleType>
	<xs:simpleType name="markEnumType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="0">
				<xs:annotation>
					<xs:appinfo>標石</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="1">
				<xs:annotation>
					<xs:appinfo>金属標</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="2">
				<xs:annotation>
					<xs:appinfo>その他</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<!-- ==== 視準点等級 ==== -->
	<xs:simpleType name="colPClassType">
		<xs:union memberTypes="apf:colPClassEnumType"/>
	</xs:simpleType>
	<xs:simpleType name="colPClassEnumType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="10">
				<xs:annotation>
					<xs:appinfo>電子基準点</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="11">
				<xs:annotation>
					<xs:appinfo>一等</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="12">
				<xs:annotation>
					<xs:appinfo>二等</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="13">
				<xs:annotation>
					<xs:appinfo>三等</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="14">
				<xs:annotation>
					<xs:appinfo>四等</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="21">
				<xs:annotation>
					<xs:appinfo>１級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="22">
				<xs:annotation>
					<xs:appinfo>２級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="23">
				<xs:annotation>
					<xs:appinfo>３級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="24">
				<xs:annotation>
					<xs:appinfo>４級</xs:appinfo>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
