Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well to answer your last question first to request an object by featureID use something like:</p> <pre><code>http://example.com/geoserver/wfs? service=wfs&amp; version=2.0.0&amp; request=GetFeature&amp; typeName=namespace:featuretype&amp; featureID=feature </code></pre> <p>To do the pagination you use something like:</p> <pre><code>http://example.com/geoserver/wfs? service=wfs&amp; version=2.0.0&amp; request=GetFeature&amp; typeName=namespace:featuretype&amp; startindex=0&amp; maxFeatures=10 </code></pre> <p>Some notes on this however. I have only tested against Geoserver and I know that in version 2.1.x of geoserver the startindex has no affect on the results. I know it does work in version 2.3.x. If you are using a particular version of Geoserver I would suggest you look it up. I am not sure what is supported in other applications that serve out wfs. You will need to check with them but what I have given above is in accordance with the WFS spec.</p> <p>One final thing is you may want to add some sorting when doing this. i.e.</p> <pre><code>http://example.com/geoserver/wfs? service=wfs&amp; version=2.0.0&amp; request=GetFeature&amp; typeName=namespace:featuretype&amp; startindex=0&amp; maxFeatures=10&amp; sortBy=namespace:field </code></pre> <p>The reason for this is that without sorting when data is updated the data may change between requests meaning you may not see results ect between pages. That is still possible even with sorting, particularly if not sorting on ID or not using an incremental style ID field. However normally sorting on an ID field will ensure consitancy in paging.</p> <p>As you are using ArcGis some of that may not be relevate to you. I am pretty sure however that the latest versions of Arc Gis support the WFS Spec for the startindex field.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload