2013-07-10 33 views
0

任何人都可以告訴我是否有可能結合空間功能(內)和邏輯運算符(和)。其實我想過濾基於多邊形和特定記錄之間的數據。OGC Filer在一定的限制

說,我們有多邊形座標和屬性名ID,以便在1至10.多邊形ID中任何一個可以告訴我如何才能做到這一點

回答

1

我發現的情況下,溶液中的任何一個需要... 。

<ogc:Filter xmlns="http://www.opengis.net/ogc"> 
     <ogc:And> 
       <ogc:Within> 
        <ogc:PropertyName>Shape</ogc:PropertyName> 
        <gml:Polygon> 
         Coordinates................. 
        </gml:Polygon> 
       </ogc:Within> 
       <ogc:PropertyIsGreaterThan> 
        <ogc:PropertyName>OBJECTID</ogc:PropertyName> 
        <ogc:Literal>5</ogc:Literal> 
       </ogc:PropertyIsGreaterThan> 
       <ogc:PropertyIsLessThan> 
        <ogc:PropertyName>OBJECTID</ogc:PropertyName> 
        <ogc:Literal>10</ogc:Literal> 
       </ogc:PropertyIsLessThan> 
     </ogc:And> 
    </ogc:Filter>