I found that the strategy is selected in the determineCorrectStrategy() method in org.geotools.data.wfs.internal.WFSClient.

I don't know how reliable the suggestions are for all the strategies but e.g. for mapserver I found multiple services that do not contain "mapserver" or "map=" but something like "mapserv" and are therefore not found if the strategy is set to "auto" (default).

Are there more reliable indicators to choose the right strategy?

  • 1
    Not really. All WFS servers should look and behave alike but in real life that is not quite true. You could add to the list that if WFS is using namespace ms: it is perhaps a MapServer. However, the namespace is not necessarily the default one as well as URL does not need to contain cci-bin, mapserv, mapserver, &map= etc. – user30184 Jan 25 '17 at 16:22
  • 1
    The assumption is that the user should know and set the strategy. auto is just a set of heuristics that might help. docs.geotools.org/latest/developer/procedures/contribute.html – Ian Turton Jan 25 '17 at 17:04
  • Unfortunately this assumption is not met in my case. Thanks for your comments. – Lars Jan 25 '17 at 21:12
  • None of our umn mapserver services reference the map file in the URL, or use mapserv. The presence of the word mapserver in a URL often indicates an ArcGIS service. Trying to determine what software is providing a service through its URL is a flawed approach. – nmtoken Jan 27 '17 at 9:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.