﻿<?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/000259068" targetNamespace="https://www.gsi.go.jp/common/000259068" 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/000259068 http://www.gsi.go.jp/GIS/jpgis/standardSchemas2014"/>

		</xs:sequence>
	</xs:group>
	<!-- ==== 公共水準点 ==== -->
	<xs:element name="pbm" type="apf:pbm" substitutionGroup="jps:IM_Object"/>
	<xs:complexType name="pbm">
		<xs:complexContent>
			<xs:extension base="jps:IM_Object">
				<xs:sequence>
					<xs:element name="pbmNo" type="jps:Integer"/>										<!-- 点番号 -->
					<xs:element name="pbmName" type="jps:CharacterString"/>				<!-- 点名称 -->
					<xs:element name="B" type="jps:CharacterString" />					<!-- 緯度 -->
					<xs:element name="L" type="jps:CharacterString" />					<!-- 経度 -->
					<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="pbmClass" type="jps:CodeType"/>									<!-- 等級 -->
				</xs:sequence>
			</xs:extension>
		</xs:complexContent>
	</xs:complexType>
	<!-- ==== 等級 ==== -->
	<xs:element name="pbmClass" type="apf:pbmClass"/>
	<xs:complexType name="pbmClass">
		<xs:complexContent>
			<xs:extension base="jps:codelist"/>
		</xs:complexContent>
	</xs:complexType>
</xs:schema>
