5

I want to incorporate the following WFS query URL in ArcGIS Online:

https://9.9.9.9:8080/geoserver/workspace/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=workspace:education&filter=
<PropertyIsEqualTo><PropertyName>amenity</PropertyName>
<Literal>school</Literal></PropertyIsEqualTo>

The query above was tested positively. However when adding that to ArcGIS Online the URL requires to be shortened down to 'GetFeature', the layer selection happens via dropdown menu and supposedly the query part goes into 'Add Parameters' doesn't it?

Parameter = filter
Value = <PropertyIsEqualTo><PropertyName>amenity</PropertyName>
    <Literal>school</Literal></PropertyIsEqualTo>

I also tried to add the workspace/layer declaration as parameter to no avail. The Parameters appear to be ignored because all the GML is parsed unfiltered. What am I missing here?

Note: The answer here suggests to tediously sign up to an ESRI developer account but that seems to be from a time where WFS wasen't supported at all.

1 Answer 1

0

If you have a WFS service provided by a ArcGIS Server, you can add the WFS layer to a web map in AGOL and then filter the data through the layer properties buttons. It automatically recognizes available fields for you to construct your filter criteria.

After applying the filter you can save it as a map layer in your AGOL account in order to use it with others maps.

4
  • Don't get me wrong but what layer properties buttons are you referring to? After having added a WFS layer it offers me a context menu with several options. One of these is 'WFS OGC Options' where I can add said parameters. All the others are not related to filtering data at all.
    – maxwhere
    Commented Nov 22, 2018 at 17:37
  • I was testing with a WFS service provided by a ArcGIS Server and, apparently, it behaves differently from a WFS service provided by other map servers. I then tested with a WFS service from another source and I also had only the 'WFS OGC Options' you mention. I'll edit my answer.
    – Carlos MSF
    Commented Nov 26, 2018 at 11:32
  • Since we're now talking about the same thing do you concur with my estimation that the 'WFS OGC Options' are supposed to parse the query to the server?
    – maxwhere
    Commented Nov 27, 2018 at 19:09
  • The tests I've made in order to set filters to the OGC WFS data had no success, but I found this doc that talks about the parameter setting: esri.com/arcgis-blog/products/arcgis-online/mapping/…
    – Carlos MSF
    Commented Nov 29, 2018 at 12:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.