Hi Gabriel!
I works!! But I had to made some changes... It did not work in a separate
variables. I have to do like this:
var describeFeatureTypeRequest = OpenLayers.Request.GET({
url:
'http://localhost:8080/geoserver2_0_1/wfs?SERVICE=WFS&VERSION=1.1.0&REQUEST=DescribeFeatureType&TYPENAME=topp:bazadanych',
callback: function(response) {
var featureTypesParser = new OpenLayers.Format.WFSDescribeFeatureType();
var responseText = featureTypesParser.read(response.responseText);
var featureTypes = responseText.featureTypes;
for(var i=0; i<featureTypes[0].properties.length; i++) {
alert('attribute is named ' + featureTypes[0].properties[i].name);
alert('attribute is of type ' + featureTypes[0].properties[i].type);
}
}});
Thanks a lot for your help :)
Poul
--
View this message in context:
http://n2.nabble.com/WFSDescribeFeatureType-how-to-use-it-tp4791176p4796122.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users