Folks,

Sorry to bother you with such a trivial issue, but...

An ArcGIS Server WFS datastore can be added to GeoServer using the WFS-NG module, and it all goes well until there is a space in the GET URL, as in:

https://services.slip.wa.gov.au:443/public/services/SLIP_Public_Services/Environment_WFS/MapServer/WFSServer?PROPERTYNAME=oid%2Cgid%2Cesa%2Cthe_geom&TYPENAME=SLIP_Public_Services_Environment_WFS%3AClearing_Regulations_-_Environmentally_Sensitive_Areas__DER-016_&REQUEST=GetFeature&RESULTTYPE=RESULTS&OUTPUTFORMAT=text%2Fxml%3B+subType%3Dgml%2F3.1.1%2Fprofiles%2Fgmlsf%2F1.0.0%2F0&VERSION=1.1.0&MAXFEATURES=50&SERVICE=WFS

(Please, notice that OUTPUTFORMAT contains a "+")

The request aboce returns an "Unsupported output format: text/xml;+subType=gml/3.1.1/profiles/gmlsf/1.0.0/0" error

The same request with a "%20" instead of a "+" goes through ArcGIS Server just fine. (By the way, using POST instead of GET works as well.)

I've looked at the WFS-NG code, hoping to link the +-to-%20 swap with the "ArcGIS strategy" option, but it does not seem to be possible, as the URIs class is not passed the strategy associated to the datastore, hence there is no way of knowing when to swap space encoding.

Therefore, it seems the only way out is to change the encoding of spaces in the UIRs class for -every_ request, which makes it work with ArcGIS, but may wreak havoc with other WFS data sources.

Anyone with a better idea?

Cheers,

Luca Morandini

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to