geotools/geotools — pull request #584 by mfarwell (2014-11-04 01:12:24+00:00)
Title: Adding MapServer support to WFS-NG

modules/unsupported/wfs-ng/src/main/java/org/geotools/data/wfs/internal/AbstractWFSStrategy.java
- Removes an unnecessary System.err.println

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: -59.0-35.0< gml:X>-58.0-34.0. The code reformats the gml:Box coordinates into -59.0-35.0< gml:X>-58.0-34.0
- 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.