Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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=" However, I found that the full name of the feature is truncated, i.e., 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
@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… – 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

Your Answer


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

Browse other questions tagged or ask your own question.