<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'>
 <SOAP-ENV:Body>

<misp:RegisterFeatureType xmlns:misp="http://www.infosharp.org/misp">

<xsd:schema
    xmlns:rcbase='http://staff.aist.go.jp/i.noda/Rescue/RandomCity/base'
    xmlns:gml='http://www.opengis.net/gml'
    xmlns:xsd='http://www.w3.org/2001/XMLSchema'
    xmlns='http://staff.aist.go.jp/i.noda/Rescue/RandomCity/2.0'
    xmlns:misp="http://www.infosharp.org/misp"
    misp:id='http://staff.aist.go.jp/i.noda/Rescue/RandomCity/2.0/Building.xsd'
    targetNamespace='http://staff.aist.go.jp/i.noda/Rescue/RandomCity/2.0'
    elementFormDefault="qualified">

  <xsd:annotation>
    <xsd:documentation xml:lang='en'>
      Sample schema for DDT Geographical Information files.
      Copyright 2004 NODA, Itsuki, AIST, Japan.
      All rights reserved.
    </xsd:documentation>
  </xsd:annotation>

  <xsd:import schemaLocation='http://staff.aist.go.jp/i.noda/Rescue/RandomCity/base/common.xsd'
	      namespace='http://staff.aist.go.jp/i.noda/Rescue/RandomCity/base'/>

  <xsd:element name='Building' type='BuildingType' substitutionGroup='gml:_Feature'/>

  <xsd:complexType name='BuildingType'>
    <xsd:complexContent>
      <xsd:extension base='rcbase:GeometryFeatureType'>
        <xsd:sequence>

          <xsd:element name='representativePoint' type='gml:geometryPropertyType'/>
	  <xsd:element name='structureType' type='xsd:integer'/>
	  <xsd:element name='usageType' type='xsd:integer'/>
	  <xsd:element name='nFloors' type='xsd:integer'/>
	  <xsd:element name='year' type='xsd:integer'/>
	  <xsd:element name='area' type='xsd:float'/>
	  <xsd:element name='cirLength' type='xsd:float'/>
	  <xsd:element name='meshId' type='rcbase:IDType'/>
	  <xsd:element name='damage' type='damageType'/>
	  <!--
	  <xsd:element name='foo' type='gml:TimePositionType'/>
	  -->
        </xsd:sequence>
      </xsd:extension>
    </xsd:complexContent>
  </xsd:complexType>

  <xsd:complexType name='damageType'>
    <xsd:sequence>
      <xsd:element name='grade' type='xsd:integer'/>
      <xsd:element name='prob' type='xsd:float'/>
      <xsd:element name='direction' type='xsd:float'/>
    </xsd:sequence>
  </xsd:complexType>

</xsd:schema>

</misp:RegisterFeatureType>

 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
