[mapguide-users] GML Parsing in WFS Provider
kshippey at juno.com
kshippey at juno.com
Tue Feb 17 18:36:49 PST 2015
Hello,
In setting up a WFS Feature Source for NFHL (National Flood Hazard Layer) data in Mapguide 2.6 and Maestro 6.0.0.8244 I am having trouble with any Feature class namespace which is not a POINT geometry. Here is the FeatureServer link for FEMA's WFS Feature Source:
https://hazards.fema.gov/gis/nfhl/services/public/NFHL/MapServer/WFSServer
This connects fine. I create a Layer Definition from this data source, and all 30+ Feature Class namespaces are listed. BUT, only the following seven Feature Class choices actually populate the Geometry Property field with the correct value 'SHAPE':
Datum_Conversion_Points, Station_Start_Points, Gages, River_Mile_Markers, LOMAs, High_Water_Marks, Nodes
There are 20+ other namespaces that, when selected, leave the Geometry Property value blank, and consequently these layers will not work to display any features. Using manual WFS requests, I can see that these non-Point namespaces have a 'MultiSurfacePropertyType' for their geometry property. For example, for the namespace FIRM_Panels:
http://hazards.fema.gov/gis/nfhl/services/public/NFHL/MapServer/WFSServer?service=wfs&version=1.1.0&request=DescribeFeatureType&typeNames=public_NFHL%3AFIRM_Panels
The above DescribeFeatures request shows MultiSurfacePropertyType in <xs:element minOccurs="0" name="SHAPE" type="gml:MultiSurfacePropertyType"/>
If I use WFS version 1.0.0 in my manual WFS request, this comes in as MultiPolygonPropertyType instead:
http://hazards.fema.gov/gis/nfhl/services/public/NFHL/MapServer/WFSServer?service=wfs&version=1.0.0&request=DescribeFeatureType&typeNames=public_NFHL%3AFIRM_Panels
<xs:element minOccurs="0" name="SHAPE" type="gml:MultiPolygonPropertyType"/>
I have a feeling Mapguide would process this older version request and properly read the MultiPolygonPropertyType if it used the 1.0.0 parameter in its URL request. However I do not see a way to force 1.0.0 requests in either the FeatureSource or LayerDefinition xml in Mapguide Maestro. I further see this RFC on the WFS FDO Provider system which indicates full upgrades to GML 3 have not been completed:
http://trac.osgeo.org/fdo/wiki/FDORfc51
Has this problem occurred elsewhere and a solution is already available, or is the recent change in GML 3 from MultiPolygon to MultiSurface not yet supported?
Thank you,
Kyel Shippey
____________________________________________________________
How Old Men Tighten Skin
63 Year Old Man Shares DIY Skin Tightening Method You Can Do From Home
http://thirdpartyoffers.juno.com/TGL3131/54e3fad0a2d007ad073b0st04duc
More information about the mapguide-users
mailing list