Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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!!!!

share|improve this question
    
Can you provide examples of actual values returned by GetCapabilities? –  unicoletti Sep 6 '11 at 5:20
    
Were you able to obtain the solution for this? Could you post it here? –  Sam007 Sep 26 '12 at 17:32
1  
@Sam007: it was a long time ago. i tried: 1) wfsServerURL + '/ows?service=wfs&version=' + wfsServiceVersion + '&request=GetCapabilities'; parse its response, you will find responsibilities.featureTypeList.featureTypes[i] has several properties: name, full name,title, srs, featureNS etc. 2) service_url + '/ows?service=wfs&version=' + version +'&&request=DescribeFeatureType&TypeName=' + full_name; here using full name. –  Simon Sep 27 '12 at 18:25
    
@Simon thanks for the reply. I also worked on it and found a better way using WMS itself. Here gis.stackexchange.com/questions/34336/… –  Sam007 Sep 27 '12 at 20:00
    
@Sam007 not so sure that's a same question from the link you attached. but as long as you found a solution, thats good. –  Simon Sep 28 '12 at 20:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.