OpenLayers: WFS request to GeoServer to retrieve "name" & "featureNS"
Using WFSGetCapabilities I sent a GetCapabilities request to GeoServer. From the result of WFSGetCapabilities().read(), I can loop each featureType and retrieve some basic info(e.g., name, title, featureNS, srsName). Then in order to retieve the "geometryName" property of this feature type, (which is needed to load this featureLayer into map), I sent a DescribeFeatureType request to server by attaching "&TypeName="feature.name. However, I found that the full name of the feature is truncated, i.e., feature.name is the feature's name without its namespace prefix. However, this namespace prefix is needed in DescribeFeatureType request URL.
My question is: How can I get the full name (with namespace prefix) in order to execute this DescribeFeatureType request and retrieve the geometryName property?
Any help is appreciated!!!!
أكثر...
Using WFSGetCapabilities I sent a GetCapabilities request to GeoServer. From the result of WFSGetCapabilities().read(), I can loop each featureType and retrieve some basic info(e.g., name, title, featureNS, srsName). Then in order to retieve the "geometryName" property of this feature type, (which is needed to load this featureLayer into map), I sent a DescribeFeatureType request to server by attaching "&TypeName="feature.name. However, I found that the full name of the feature is truncated, i.e., feature.name is the feature's name without its namespace prefix. However, this namespace prefix is needed in DescribeFeatureType request URL.
My question is: How can I get the full name (with namespace prefix) in order to execute this DescribeFeatureType request and retrieve the geometryName property?
Any help is appreciated!!!!
أكثر...