public void Get_WFSDescribeFeature_From_Server() { WFSDescribeFeatureType wfsDescribeFeatureType; wfsDescribeFeatureType = WFSManager.GetWFSDescribeFeatureType( "http://map.smhi.se/geoserver/ows", "smhi:alla_oar"); Assert.IsTrue(wfsDescribeFeatureType.Fields.Count > 0); }
public WfsLayerSetting CreateNewWfsLayer(string name, string filter, string serverUrl, string typeName, string color, bool useBbox) { var wfsLayer = new WfsLayerSetting(); wfsLayer.Filter = filter; wfsLayer.Name = name; wfsLayer.ServerUrl = serverUrl; wfsLayer.TypeName = typeName; WFSDescribeFeatureType wfsDescribeFeatureType = WFSManager.GetWFSDescribeFeatureType(serverUrl, typeName); wfsLayer.GeometryName = wfsDescribeFeatureType.GeometryField.Name; wfsLayer.GeometryType = wfsDescribeFeatureType.GeometryType; wfsLayer.Color = color; wfsLayer.UseSpatialFilterExtentAsBoundingBox = useBbox; return(wfsLayer); }