geotools/geotools — pull request #585 by mfarwell (2014-11-04 15:00:13+00:00)
Title: WFS-NG map server support

modules/unsupported/wfs-ng/src/main/java/org/geotools/data/wfs/internal/WFSClient.java
- Creates a MapServerWFSStrategy object if the WFS_STRATEGY is explicitly set to 'mapserver'

modules/unsupported/wfs-ng/src/main/java/org/geotools/data/wfs/internal/parsers/GmlGetFeatureResponseParserFactory.java
- Adds MapServer supported formats to the list

modules/unsupported/wfs-ng/src/main/java/org/geotools/data/wfs/internal/v1_x/MapServerWFSStrategy.java
- Removes code that was adding a full-extents filter to a WFS GetFeature request when no other filter was specified.
- Adds code to reformat gml:Box coordinates for WFS 1.0.0 BBOX filters. Some older versions of MapServer do not support the following format: gml:coordgml:X-59.0/gml:Xgml:Y-35.0/gml:Y/gml:coordgml:coord< gml:X>-58.0/gml:Xgml:Y-34.0/gml:Y/gml:coord. The code reformats the gml:Box coordinates into gml:coordgml:X-59.0/gml:Xgml:Y-35.0/gml:Y/gml:coordgml:coord< gml:X>-58.0/gml:Xgml:Y-34.0/gml:Y/gml:coord
- MapServer returns features in the ms namespace when no other namespace is specified for a feature type. The translateTypeInfo method was added to address this issue. However, it only worked for 1.1.0. "wfs" is the default namespace for MapServer GetCapabilities calls. For 1.1.0, MapServer includes a prefix with the wfs XSD declaration, but does not include one for 1.0.0, only a URI. Therefore, the code did not work for 1.0.0. The code now checks for a prefix or the wfs XSD uri.

The MapServerOnlineTest unit test covers all code changes.