<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope 
	xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
	xmlns:rcbase="http://staff.aist.go.jp/i.noda/Rescue/RandomCity/base"
  	xmlns:misp="http://www.infosharp.org/misp"
	xmlns:gml="http://www.opengis.net/gml"
	xmlns="http://staff.aist.go.jp/i.noda/Rescue/RandomCity/2.0"
	>
<SOAP-ENV:Body>

<misp:GetFeature	xmlns:rcbase="http://staff.aist.go.jp/i.noda/Rescue/RandomCity/base"
>
  <misp:Query typeName="Building">
    <misp:Filter>
      <misp:BBox>
        <misp:PropertyName>rcbase:location</misp:PropertyName>
        <gml:Box>
          <gml:coordinates>-2.0,-2.0 2.0,2.0</gml:coordinates>
        </gml:Box>
      </misp:BBox> 
<!--
	  <misp:PropertyIsGreaterThanOrEqualTo>
            <misp:PropertyName>nFloors</misp:PropertyName>
            <misp:Literal>3</misp:Literal>
          </misp:PropertyIsGreaterThanOrEqualTo>
-->
<!-- complex query -->
<!--
      <misp:And>
        <misp:BBox>
          <misp:PropertyName>rcbase:location</misp:PropertyName>
          <gml:Box>
          <gml:coordinates>-2.0,-2.0 2.0,2.0</gml:coordinates>
          </gml:Box>
        </misp:BBox>
	<misp:And>
         <misp:Not>
	  <misp:PropertyIsGreaterThanOrEqualTo>
            <misp:PropertyName>nFloors</misp:PropertyName>
            <misp:Add>
              <misp:Literal>2</misp:Literal>
              <misp:PropertyName>damage/grade</misp:PropertyName>
            </misp:Add>
          </misp:PropertyIsGreaterThanOrEqualTo>
         </misp:Not>
         <misp:PropertyIsGreaterThanOrEqualTo>
          <misp:PropertyName>_updateTime_</misp:PropertyName>
          <misp:Literal>2000-01-01T00:00:00</misp:Literal>
         </misp:PropertyIsGreaterThanOrEqualTo>
        </misp:And>
      </misp:And>
-->

    </misp:Filter>
  </misp:Query>
</misp:GetFeature>

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