Filter Encoding: Unterschied zwischen den Versionen

Aus Geometa Lab OST
Zur Navigation springen Zur Suche springen
K (Die Seite wurde neu angelegt: „Filter Encoding (FE) aktuell Version 2.0.0, ein XML-Format (Enccoding) für die Graphic Query Language (GQL) - einem Spatial SQL Dialekt - passend zum WFS. S…“)
 
KKeine Bearbeitungszusammenfassung
Zeile 8: Zeile 8:
* [http://www.opengeospatial.org/standards/filter Filter Encoding Specification 2.0.0 by OGC]
* [http://www.opengeospatial.org/standards/filter Filter Encoding Specification 2.0.0 by OGC]
* [[WFS]]
* [[WFS]]
Beispiele für ein Filter Encoding (FE) (alle Beispiele können z.B. mit [[OpenPOIMap]] ausprobiert werden):
Get feature with fid 2048766363:
  <Filter>
    <FeatureId fid="2048766363"/>
  </Filter>
Get feature with "(osm_id=2048766363)":
  <Filter>
    <PropertyIsEqualTo>
        <PropertyName>osm_id</PropertyName>
        <Literal>2048766363</Literal>
    </PropertyIsEqualTo>
  </Filter>
Get features with "(amenity=restaurant)":
  <Filter>
    <PropertyIsEqualTo>
        <PropertyName>amenity</PropertyName>
        <Literal>restaurant</Literal>
    </PropertyIsEqualTo>
  </Filter>
Get features with "(amenity=restaurant) OR (amenity=bar)":
  <Filter>
    <Or>
        <PropertyIsEqualTo>
          <PropertyName>amenity</PropertyName>
          <Literal>restaurant</Literal>
        </PropertyIsEqualTo>
        <PropertyIsEqualTo>
          <PropertyName>amenity</PropertyName>
          <Literal>bar</Literal>
        </PropertyIsEqualTo>
    </Or>
  </Filter>

Version vom 20. Dezember 2012, 19:44 Uhr

Filter Encoding (FE) aktuell Version 2.0.0, ein XML-Format (Enccoding) für die Graphic Query Language (GQL) - einem Spatial SQL Dialekt - passend zum WFS.

Software, die FE unterstützt (Server und Client):

Siehe auch:

Beispiele für ein Filter Encoding (FE) (alle Beispiele können z.B. mit OpenPOIMap ausprobiert werden):

Get feature with fid 2048766363:

 <Filter>
    <FeatureId fid="2048766363"/>
 </Filter>

Get feature with "(osm_id=2048766363)":

 <Filter>
    <PropertyIsEqualTo>
       <PropertyName>osm_id</PropertyName>
       <Literal>2048766363</Literal>
    </PropertyIsEqualTo>
 </Filter>

Get features with "(amenity=restaurant)":

 <Filter>
    <PropertyIsEqualTo>
       <PropertyName>amenity</PropertyName>
       <Literal>restaurant</Literal>
    </PropertyIsEqualTo>
 </Filter>

Get features with "(amenity=restaurant) OR (amenity=bar)":

 <Filter>
    <Or>
       <PropertyIsEqualTo>
          <PropertyName>amenity</PropertyName>
          <Literal>restaurant</Literal>
       </PropertyIsEqualTo>
       <PropertyIsEqualTo>
          <PropertyName>amenity</PropertyName>
          <Literal>bar</Literal>
       </PropertyIsEqualTo>
    </Or>
 </Filter>