[OpenLayers-Users] Obtaining information of a WMS/WFS server with OpenLayers

jrom jerome.gasperi at gmail.com
Thu Feb 9 08:31:49 EST 2012


Hi,

> I have no clue of how obtain the featureType and featureNS just using that
> url. Is there any way of obtain that information just using OpenLayer? also,
> is my code for WFS incomplete? (I mean ignoring the fact that I don't have
> the info for featureType and featureNS)

You should call the DescribeFeatureType operation to get the
featureType and featureNS properties.

You can take a look at how it is done in mapshup - see the update
function (line 252) in this code
http://code.google.com/p/mapshup/source/browse/client/js/mapshup/lib/layerTypes/WFS.js

Regards

Jerome

-- 
http://mapshup.info


More information about the Users mailing list