FILTER Sample

Feedback


Examples

iServer supports Filter request parameters,such as < Add > , < And > , < Bbox ><Beyond><Contains><Crosses><Disjoint>、<distance>、<Div>< Dwithin><Equals><Intersects> 、<literal>、<Mul><Not><Or><Overlaps><PropertyIsBetween>< PropertyIsEqualTo><PropertyIsGreaterThan>< PropertyIsGreaterThanOrEqualTo><PropertyIsLessThan>< PropertyIsLessThanOrEqualTo><PropertyIsLike>< PropertyIsNotEqualTo><PropertyIsNull>、<propertyname>、<Sub><Touches><Within> Wait for the Filter request parameter.

In this example, the GetFeature operation is performed on the WFS service data-world/wfs100, and the GET request can be executed. A POST request can also be performed on the http://localhost:8090/iserver/services/data-world/wfs100.

  1. DWithin

Execute the GET request, and get the Feature within 10 ° around the (0,0) point at World:Capitals. The body of the request is:

http://localhost:8090/iserver/services/data-world/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:DWithin xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName>    <gml:Point> <gml:coordinates>0,0</gml:coordinates> </gml:Point>    <ogc:Distance unit="degree">10</ogc:Distance></ogc:DWithin></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<gml:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</gml:PropertyName>

<ogc:Filter>

<ogc:DWITHIN>

<ogc:PropertyName>the_geom</ogc:PropertyName>

<gml:Point>

     <gml:coordinates>0,0</gml:coordinates>

 </gml:Point>

 <ogc:Distance unit="degree">10</ogc:Distance>

</ogc:DWITHIN>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

       

  1. Disjoint

Execute the GET request, and obtain the Feature separated from the specified geometric object in World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-world/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Disjoint xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName><gml:MultiPolygon> <gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-160,-80 -160,80 160,80 160,-80 -160,-80</gml:coordinates></gml:LinearRing>

</gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogc:Disjoint></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:Disjoint xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>the_geom</ogc:PropertyName>

    <gml:MultiPolygon>

      <gml:polygonMember>

        <gml:Polygon>

          <gml:outerBoundaryIs>

            <gml:LinearRing>

              <gml:coordinates>-160,-80 -160,80 160,80 160,-80 -160,-80</gml:coordinates>

            </gml:LinearRing>

          </gml:outerBoundaryIs>

        </gml:Polygon>

      </gml:polygonMember>

    </gml:MultiPolygon>

  </ogc:Disjoint>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

       

  1. PropertyIsLessThan

Execute the GET request and obtain the Feature with SMID less than 10 at World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-world/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter>

<ogc:PropertyIsLessThan xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>10</ogc:Literal></ogc:PropertyIsLessThan></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsLessThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>10</ogc:Literal>

</ogc:PropertyIsLessThan>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsBetween

Execute the GET request and obtain the Feature with SMID greater than 8 and less than 10 in World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter><ogc:PropertyIsBetween xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMID</ogc:PropertyName><ogc:LowerBoundary><ogc:Literal>8</ogc:Literal></ogc:LowerBoundary><ogc:UpperBoundary><ogc:Literal>10</ogc:Literal></ogc:UpperBoundary></ogc:PropertyIsBetween></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsBetween xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:LowerBoundary>

<ogc:Literal>8</ogc:Literal>

</ogc:LowerBoundary>

<ogc:UpperBoundary>

<ogc:Literal>10</ogc:Literal>

</ogc:UpperBoundary>

</ogc:PropertyIsBetween>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsEqualTo

Execute the GET request and obtain the Feature with SMID equal to 10 at World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter>

<ogc:PropertyIsEqualTo xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>10</ogc:Literal></ogc:PropertyIsEqualTo></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsEqualTo xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>10</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsGreaterThan

Execute the GET request and obtain the Feature with SMID greater than 191 in World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter>

<ogc:PropertyIsGreaterThan xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>191</ogc:Literal></ogc:PropertyIsGreaterThan></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsGreaterThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>191</ogc:Literal>

</ogc:PropertyIsGreaterThan>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsGreaterThanOrEqualTo

Execute the GET request and obtain the Feature with SMID greater than or equal to 191 at World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter>

<ogc:PropertyIsGreaterThanOrEqualTo xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>191</ogc:Literal></ogc:PropertyIsGreaterThanOrEqualTo></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsGreaterThanOrEqualTo xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>191</ogc:Literal>

</ogc:PropertyIsGreaterThanOrEqualTo>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsLessThanOrEqualTo

Execute the GET request and obtain the Feature with SMID less than or equal to 1 at World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter>

<ogc:PropertyIsLessThanOrEqualTo xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>1</ogc:Literal></ogc:PropertyIsLessThanOrEqualTo></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsLessThanOrEqualTo xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>SMID</ogc:PropertyName>

<ogc:Literal>1</ogc:Literal>

</ogc:PropertyIsLessThanOrEqualTo>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsNotEqualTo

Execute the GET request and obtain the Feature whose smuserid is not equal to 3 in the World: Continent _ Label. The body of the request is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Continent_Label&PROPERTYNAME=(SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID)&Filter= (<Filter>

<ogc:PropertyIsNotEqualTo xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMUSERID</ogc:PropertyName>

<ogc:Literal>3</ogc:Literal></ogc:PropertyIsNotEqualTo></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Continent_Label">

<wfs:PropertyName>SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsNotEqualTo xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>SMUSERID</ogc:PropertyName>

<ogc:Literal>3</ogc:Literal>

</ogc:PropertyIsNotEqualTo>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsLike

Execute the GET request and obtain the Feature containing the "gap" character in the CAPITAL_EN at World: Capitals. The body of the request is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom,CAPITAL_EN)&Filter= (<Filter>

<ogc:PropertyIsLike wildCard="*" singleChar="." escapeChar="!" xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>CAPITAL_EN</ogc:PropertyName>

<ogc:Literal>*gap*</ogc:Literal>

</ogc:PropertyIsLike>

</Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<ogc:Filter>

<ogc:PropertyIsLike wildCard="*" singleChar="." escapeChar="!" xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>Capitals:CAPITAL_EN</ogc:PropertyName>

<ogc:Literal>*gap*</ogc:Literal>

</ogc:PropertyIsLike>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. PropertyIsNull

Execute the GET request and obtain the Feature with null CONTINENT in the World: Continent_Label. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Continent_Label&PROPERTYNAME=(SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID)&Filter= (<Filter>

<ogc:PropertyIsNull xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>CONTINENT</ogc:PropertyName>

</ogc:PropertyIsNull></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Continent_Label">

<wfs:PropertyName>SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsNull xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>CONTINENT</ogc:PropertyName>

</ogc:PropertyIsNull>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Within

Execute the GET request to obtain the Feature inside the specified face object in World:Capitals. The body of the request is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Within xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName><gml:MultiPolygon><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-160,-80 -160,-30 0,-30 0,-80 -160,-80</gml:coordinates></gml:LinearRing>

</gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogc:Within></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:Within xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>the_geom</ogc:PropertyName>

    <gml:MultiPolygon>

      <gml:polygonMember>

        <gml:Polygon>

          <gml:outerBoundaryIs>

            <gml:LinearRing>

              <gml:coordinates>-160,-80 -160,-30 0,-30 0,-80 -160,-80</gml:coordinates>

            </gml:LinearRing>

          </gml:outerBoundaryIs>

        </gml:Polygon>

      </gml:polygonMember>

    </gml:MultiPolygon>

  </ogc:Within>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Touches

Execute the GET request to obtain the Feature that intersects with the specified face object only at the boundary in World:Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Touches xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName><gml:MultiPolygon><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>38.97,15 38.97,18 40,18 40,15 38.97,15</gml:coordinates></gml:LinearRing>

</gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogc:Touches></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:Touches xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>the_geom</ogc:PropertyName>

    <gml:MultiPolygon>

      <gml:polygonMember>

        <gml:Polygon>

          <gml:outerBoundaryIs>

            <gml:LinearRing>

              <gml:coordinates>38.97,15 38.97,18 40,18 40,15 38.97,15</gml:coordinates>

            </gml:LinearRing>

          </gml:outerBoundaryIs>

        </gml:Polygon>

      </gml:polygonMember>

    </gml:MultiPolygon>

  </ogc:Touches>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Overlaps

Execute the GET request, and obtain the Feature that has intersection with the intersection after the specified point object is overlapped at World: Capital. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Overlaps xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName><gml:Point> <gml:coordinates>38.97,15</gml:coordinates> </gml:Point></ogc:Overlaps></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:Overlaps xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>the_geom</ogc:PropertyName>

     <gml:Point>

     <gml:coordinates>38.97,15</gml:coordinates>

     </gml:Point>

</ogc:Overlaps>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Intersects

Execute the GET request to obtain the line Feature intersected with the specified face object in the World:Continent_Label. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Continent_Label&PROPERTYNAME=(SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID)&Filter= (

<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Intersects xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMGEOMETRY</ogc:PropertyName><gml:MultiPolygon><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-51,30 -51,80 -21,80 -21,30 -51,30</gml:coordinates></gml:LinearRing>

</gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogc:Intersects></Filter>

)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Continent_Label">

<wfs:PropertyName>SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID</wfs:PropertyName>

<ogc:Filter>

<ogc:Intersects xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>SMGEOMETRY</ogc:PropertyName>

    <gml:MultiPolygon>

      <gml:polygonMember>

        <gml:Polygon>

          <gml:outerBoundaryIs>

            <gml:LinearRing>

              <gml:coordinates>-51,30 -51,80 -21,80 -21,30 -51,30</gml:coordinates>

            </gml:LinearRing>

          </gml:outerBoundaryIs>

        </gml:Polygon>

      </gml:polygonMember>

    </gml:MultiPolygon>

  </ogc:Intersects>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Equals

Execute the GET request and obtain the Feature coincident with the specified point object at World:Capital. The body of the request is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Equals xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName><gml:Point> <gml:coordinates>45.34414232844949,2.0411730219592243</gml:coordinates> </gml:Point></ogc:Equals></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:Equals xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>the_geom</ogc:PropertyName>

     <gml:Point>

     <gml:coordinates>45.34414232844949,2.0411730219592243</gml:coordinates>

     </gml:Point>

</ogc:Equals>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Crosses

Execute the GET request to obtain the line Feature crossing the specified face object in the World:Continent_Label. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Continent_Label&PROPERTYNAME=(SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID)&Filter= (

<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Crosses xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>SMGEOMETRY</ogc:PropertyName><gml:MultiPolygon><gml:polygonMember><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>-51,30 -51,80 -21,80 -21,30 -51,30</gml:coordinates></gml:LinearRing>

</gml:outerBoundaryIs></gml:Polygon></gml:polygonMember></gml:MultiPolygon></ogc:Crosses></Filter>

)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Continent_Label">

<wfs:PropertyName>SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID</wfs:PropertyName>

<ogc:Filter>

<ogc:Crosses xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>SMGEOMETRY</ogc:PropertyName>

    <gml:MultiPolygon>

      <gml:polygonMember>

        <gml:Polygon>

          <gml:outerBoundaryIs>

            <gml:LinearRing>

              <gml:coordinates>-51,30 -51,80 -21,80 -21,30 -51,30</gml:coordinates>

            </gml:LinearRing>

          </gml:outerBoundaryIs>

        </gml:Polygon>

      </gml:polygonMember>

    </gml:MultiPolygon>

  </ogc:Crosses>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Contains

Execute the GET request to obtain the Feature that can contain the specified point object in the World:Continent_Label. The body of the request is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Continent_Label&PROPERTYNAME=(SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:Contains xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName><gml:Point> <gml:coordinates>-22.83090368222439,67.9857219158567</gml:coordinates> </gml:Point></ogc:Contains></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Continent_Label">

<wfs:PropertyName>SMID,SMUSERID,SMLENGTH,SMTOPOERROR,SMGEOMETRY,CONTINENT,ID</wfs:PropertyName>

<ogc:Filter>

<ogc:Contains xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>the_geom</ogc:PropertyName>

     <gml:Point>

     <gml:coordinates>-22.83090368222439,67.9857219158567</gml:coordinates>

     </gml:Point>

</ogc:Contains>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Beyond

Execute the GET request, and get the Feature whose distance to the specified point object must be greater than or equal to 170 ° at World: Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:Beyond xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName>    <gml:Point> <gml:coordinates>0,0</gml:coordinates> </gml:Point>    <ogc:Distance>170</ogc:Distance></ogc:Beyond></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<gml:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</gml:PropertyName>

<ogc:Filter>

<ogc:Beyond>

<ogc:PropertyName>the_geom</ogc:PropertyName>

<gml:Point>

     <gml:coordinates>0,0</gml:coordinates>

 </gml:Point>

 <ogc:Distance>170</ogc:Distance>

</ogc:Beyond>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. BBOX

Execute the GET request to get the Feature inside the specified bounding box at World: Capitals, and the request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml">

<ogc:BBOX xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName><gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326"><gml:coordinates>-160,-80 -160,-30 0,-30 0,-80 -160,-80</gml:coordinates></gml:Box></ogc:BBOX></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:BBOX xmlns:ogc="http://www.opengis.net/ogc">

    <ogc:PropertyName>the_geom</ogc:PropertyName>

          <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#4326">

              <gml:coordinates>-160,-80 -160,-30 0,-30 0,-80 -160,-80</gml:coordinates>

          </gml:Box>

  </ogc:BBOX>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Add

Execute the GET request, and obtain the Feature whose population (CAP_POP) is less than 1000 after adding 100 in World:Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsLessThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Add> <ogc:PropertyName>CAP_POP</ogc:PropertyName><ogc:Literal>100</ogc:Literal></ogc:Add><ogc:Literal>1000</ogc:Literal></ogc:PropertyIsLessThan></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsLessThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Add>

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>100</ogc:Literal>

</ogc:Add>

<ogc:Literal>1000</ogc:Literal>

</ogc:PropertyIsLessThan>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Div

Execute the GET request to obtain the Feature of 750 by dividing the population (CAP_POP) by 10 in World:Capitals, and the request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsEqualTo xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Div> <ogc:PropertyName>CAP_POP</ogc:PropertyName><ogc:Literal>10</ogc:Literal></ogc:Div><ogc:Literal>750</ogc:Literal></ogc:PropertyIsEqualTo></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsEqualTo xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Div>

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>10</ogc:Literal>

</ogc:Div>

<ogc:Literal>750</ogc:Literal>

</ogc:PropertyIsEqualTo>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Mul

Perform a GET request to get the number of people (CAP _ POP) multiplied by 10 in World: Capitals, which is greater than 130,762,000 Features, and the request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsGreaterThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Mul> <ogc:PropertyName>CAP_POP</ogc:PropertyName><ogc:Literal>10</ogc:Literal></ogc:Mul><ogc:Literal>130762000</ogc:Literal></ogc:PropertyIsGreaterThan></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsGreaterThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Mul>

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>10</ogc:Literal>

</ogc:Mul>

<ogc:Literal>130762000</ogc:Literal>

</ogc:PropertyIsGreaterThan>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Sub

Execute the GET request, and obtain the Feature whose population (CAP_POP) is less than 1000 after 3000 is subtracted from World:Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns:gml="http://www.opengis.net/gml"><ogc:PropertyIsLessThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Sub> <ogc:PropertyName>CAP_POP</ogc:PropertyName><ogc:Literal>3000</ogc:Literal></ogc:Sub><ogc:Literal>1000</ogc:Literal></ogc:PropertyIsLessThan></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:PropertyIsLessThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:Sub>

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>3000</ogc:Literal>

</ogc:Sub>

<ogc:Literal>1000</ogc:Literal>

</ogc:PropertyIsLessThan>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. And

Execute a GET request to obtain the Feature whose distance to the specified point object must be greater than or equal to 170° and whose population (CAP_POP) is greater than 300,000 at World:Capitals. The request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:Filter><ogc:And><ogc:Beyond xmlns:ogc="http://www.opengis.net/ogc"> <ogc:PropertyName>the_geom</ogc:PropertyName>    <gml:Point> <gml:coordinates>0,0</gml:coordinates> </gml:Point>    <ogc:Distance>170</ogc:Distance></ogc:Beyond><ogc:PropertyIsGreaterThan><ogc:PropertyName>CAP_POP</ogc:PropertyName><ogc:Literal>300000</ogc:Literal></ogc:PropertyIsGreaterThan></ogc:And></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<gml:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</gml:PropertyName>

<ogc:Filter>

<ogc:And>

<ogc:Beyond>

<ogc:PropertyName>the_geom</ogc:PropertyName>

<gml:Point>

     <gml:coordinates>0,0</gml:coordinates>

 </gml:Point>

 <ogc:Distance>170</ogc:Distance>

</ogc:Beyond>

<ogc:PropertyIsGreaterThan>

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>300000</ogc:Literal>

</ogc:PropertyIsGreaterThan>

</ogc:And>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Not

Execute the GET request to obtain the Feature with population (CAP _ POP) not more than 1000 in World: Capitals, and the request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter><ogc:Not>

<ogc:PropertyIsGreaterThan xmlns:ogc="http://www.opengis.net/ogc"><ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>1000</ogc:Literal></ogc:PropertyIsGreaterThan></ogc:Not></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<wfs:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</wfs:PropertyName>

<ogc:Filter>

<ogc:Not>

<ogc:PropertyIsGreaterThan xmlns:ogc="http://www.opengis.net/ogc">

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>1000</ogc:Literal>

</ogc:PropertyIsGreaterThan>

</ogc:Not>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows:

  1. Or

Execute the GET request to get the Feature with population (CAP_POP) less than 1000 or more than 13,000,000 in World: Capitals, and the request body is:

http://localhost:8090/iserver/services/data-World/wfs100?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=World:Capitals&PROPERTYNAME=(SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom)&Filter= (<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"><ogc:Filter><ogc:Or><ogc:PropertyIsLessThan><ogc:PropertyName>CAP_POP</ogc:PropertyName><ogc:Literal>1000</ogc:Literal></ogc:PropertyIsLessThan><ogc:PropertyIsGreaterThan><ogc:PropertyName>CAP_POP</ogc:PropertyName><ogc:Literal>13000000</ogc:Literal></ogc:PropertyIsGreaterThan></ogc:Or></Filter>)

Or perform a POST request with the request body:

<?xml version="1.0" ?>

<GetFeature version="1.1.0" service="WFS" handle="Query01"

xmlns="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc"

xmlns:gml="http://www.opengis.net/gml" xmlns:World="http://www.someserver.com/World"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.1.0/WFS.xsd">

<Query typeName="World:Capitals">

<gml:PropertyName>SMY,SMX,SMUSERID,SMLIBTILEID,SMID,SMGEOMETRYSIZE,COUNTRY,CAP_POP,CAPITAL,the_geom</gml:PropertyName>

<ogc:Filter>

<ogc:Or>

<ogc:PropertyIsLessThan>

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>1000</ogc:Literal>

</ogc:PropertyIsLessThan>

<ogc:PropertyIsGreaterThan>

<ogc:PropertyName>CAP_POP</ogc:PropertyName>

<ogc:Literal>13000000</ogc:Literal>

</ogc:PropertyIsGreaterThan>

</ogc:Or>

</ogc:Filter>

</Query>

</GetFeature>

The response results are as follows: