"Seegrid will be due for a migration to confluence on the 1st of August. Any update on or after the 1st of August will NOT be migrated"

What

Examples of the queries and output from the PIRSA WFS test page http://geodev.metadev.com.au:4662/geoserver/demos.html

They have a copy of their full database online so very sensibly warn you of the impact if you try to make a request without a bounding box filter. It is not smart enough to be aware that such a bounding box is in place so will still warn you after you add the bounding box.

To capture the displayed output as an XML file:
  • View Source
  • Select All
  • Copy and Paste into an XML editor or text editor.

Any attempt to save the output pages by any other means will create a content document with HTML or text.

Example Queries

xmml:GeochemSpecimen


<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" 
xmlns:topp="http://www.openplans.org/topp" 
xmlns:wfs="http://www.opengis.net/wfs" 
xmlns:ogc="http://www.opengis.net/ogc" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
  <wfs:Query typeName="xmml:GeochemSpecimen">
  </wfs:Query>
</wfs:GetFeature>

adding Bounding Box

...
  <wfs:Query typeName="xmml:GeochemSpecimen">
    <ogc:Filter>
      <ogc:BBOX>
     <ogc:PropertyName>sample_loc</ogc:PropertyName>
         <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#27345">
           <gml:coordinates>133.2027317,-29.8803029 133.326523,-29.0942529</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

Results

PIRSA_GeochemSpecimen_with_BBox.xml

xmml:GeochemSpecimenByAnalyteAndValue


<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" 
xmlns:topp="http://www.openplans.org/topp" 
xmlns:wfs="http://www.opengis.net/wfs" 
xmlns:ogc="http://www.opengis.net/ogc" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
  <wfs:Query typeName="xmml:GeochemSpecimenByAnalyteAndValue">
   <ogc:Filter>
    <ogc:And>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_analyte</ogc:PropertyName>
             <ogc:Literal>Au</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value</ogc:PropertyName>
             <ogc:Literal>5</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value_uom</ogc:PropertyName>
             <ogc:Literal>ppm</ogc:Literal>
          </ogc:PropertyIsEqualTo>
  </ogc:And>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

adding Bounding Box

...
  <wfs:Query typeName="xmml:GeochemSpecimenByAnalyteAndValue">
   <ogc:Filter>
    <ogc:And>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_analyte</ogc:PropertyName>
             <ogc:Literal>Cu</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value_normalised</ogc:PropertyName>
             <ogc:Literal>3</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value_uom</ogc:PropertyName>
             <ogc:Literal>ppm</ogc:Literal>
          </ogc:PropertyIsEqualTo>
     <ogc:BBOX>
     <ogc:PropertyName>sample_loc</ogc:PropertyName>
         <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#27345">
           <gml:coordinates>133.2027317,-29.8803029
  133.326523,-29.0942529</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
  </ogc:And>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

Results

PIRSA_GeochemSpecimenByAnalyteAndValue_with_BBox.xml:

xmml:GeochemMeasurementsByID


<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" 
xmlns:topp="http://www.openplans.org/topp" 
xmlns:wfs="http://www.opengis.net/wfs" 
xmlns:ogc="http://www.opengis.net/ogc" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
  <wfs:Query typeName="xmml:GeochemMeasurementsByID">
   <ogc:Filter>
          <ogc:PropertyIsEqualTo>
           <ogc:PropertyName>_arg_sampleno</ogc:PropertyName>
             <ogc:Literal>562467</ogc:Literal>
          </ogc:PropertyIsEqualTo>
      </ogc:Filter>    
  </wfs:Query>
</wfs:GetFeature>

adding Bounding Box

...
  <wfs:Query typeName="xmml:GeochemMeasurementsByID">
   <ogc:Filter>
    <ogc:And>
          <ogc:PropertyIsEqualTo>
           <ogc:PropertyName>_arg_sampleno</ogc:PropertyName>
             <ogc:Literal>562467</ogc:Literal>
          </ogc:PropertyIsEqualTo> 
  <ogc:BBOX>
     <ogc:PropertyName>sample_loc</ogc:PropertyName>
         <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#27345">
           <gml:coordinates>133.2027317,-29.8803029
  133.326523,-29.0942529</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
    </ogc:And>


      </ogc:Filter>    
  </wfs:Query>
</wfs:GetFeature>

Results

PIRSA_GeochemMeasurementsByID_with_BBox.xml:

xmml:GeochemMeasurementsByAnalyteAndValue


<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2" 
xmlns:topp="http://www.openplans.org/topp" 
xmlns:wfs="http://www.opengis.net/wfs" 
xmlns:ogc="http://www.opengis.net/ogc" 
xmlns:gml="http://www.opengis.net/gml" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd">
  <wfs:Query typeName="xmml:GeochemMeasurementsByAnalyteAndValue">
   <ogc:Filter>
    <ogc:And>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_analyte</ogc:PropertyName>
             <ogc:Literal>Au</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value</ogc:PropertyName>
             <ogc:Literal>5</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value_uom</ogc:PropertyName>
             <ogc:Literal>ppm</ogc:Literal>
          </ogc:PropertyIsEqualTo>
  </ogc:And>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

Results

PIRSA_GeochemMeasurementsByAnalyteAndValue.xml:

adding Bounding Box

...
  <wfs:Query typeName="xmml:GeochemMeasurmentByAnalyteAndValue">
   <ogc:Filter>
    <ogc:And>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_analyte</ogc:PropertyName>
             <ogc:Literal>Cu</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value_normalised</ogc:PropertyName>
             <ogc:Literal>3</ogc:Literal>
          </ogc:PropertyIsEqualTo>
          <ogc:PropertyIsEqualTo>
             <ogc:PropertyName>_arg_value_uom</ogc:PropertyName>
             <ogc:Literal>ppm</ogc:Literal>
          </ogc:PropertyIsEqualTo>
     <ogc:BBOX>
     <ogc:PropertyName>sample_loc</ogc:PropertyName>
         <gml:Box srsName="http://www.opengis.net/gml/srs/epsg.xml#27345">
           <gml:coordinates>133.2027317,-29.8803029
  133.326523,-29.0942529</gml:coordinates>
        </gml:Box>
      </ogc:BBOX>
  </ogc:And>
   </ogc:Filter>
  </wfs:Query>
</wfs:GetFeature>

Results

no sensible results returned for this query with bounding box

Topic revision: r2 - 15 Oct 2010, UnknownUser
 

Current license: All material on this collaboration platform is licensed under a Creative Commons Attribution 3.0 Australia Licence (CC BY 3.0).