C# Class Mapsui.Providers.Wfs.WFSProvider

WFS dataprovider This provider can be used to obtain data from an OGC Web Feature Service. It performs the following requests: 'GetCapabilities', 'DescribeFeatureType' and 'GetFeature'. This class is optimized for performing requests to GeoServer (http://geoserver.org). Supported geometries are: - PointPropertyType - LineStringPropertyType - PolygonPropertyType - CurvePropertyType - SurfacePropertyType - MultiPointPropertyType - MultiLineStringPropertyType - MultiPolygonPropertyType - MultiCurvePropertyType - MultiSurfacePropertyType
Inheritance: IProvider
ファイルを表示 Open project: pauldendulk/Mapsui Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
ExecuteIntersectionQuery ( BoundingBox bbox ) : Features
GetExtents ( ) : BoundingBox
GetFeaturesInView ( BoundingBox box, double resolution ) : IEnumerable
WFSProvider ( IXPathQueryManager getCapabilitiesCache, string nsPrefix, string featureType, GeometryTypeEnum geometryType, WFSVersionEnum wfsVersion ) : System

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.

WFSProvider ( IXPathQueryManager getCapabilitiesCache, string nsPrefix, string featureType, WFSVersionEnum wfsVersion ) : System

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.

WFSProvider ( WfsFeatureTypeInfo featureTypeInfo, WFSVersionEnum wfsVersion ) : System

Use this constructor for initializing this dataprovider with a WfsFeatureTypeInfo object, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.

WFSProvider ( string getCapabilitiesUri, string nsPrefix, string featureType, GeometryTypeEnum geometryType, WFSVersionEnum wfsVersion ) : System

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.

WFSProvider ( string getCapabilitiesUri, string nsPrefix, string featureType, WFSVersionEnum wfsVersion ) : System

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.

WFSProvider ( string serviceUri, string nsPrefix, string featureTypeNamespace, string featureType, string geometryName, GeometryTypeEnum geometryType, WFSVersionEnum wfsVersion ) : System

Use this constructor for initializing this dataprovider with all mandatory metadata for retrieving a featuretype, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.

WFSProvider ( string serviceUri, string nsPrefix, string featureTypeNamespace, string featureType, string geometryName, WFSVersionEnum wfsVersion ) : System

Use this constructor for initializing this dataprovider with all mandatory metadata for retrieving a featuretype, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.

Private Methods

Method Description
Dispose ( bool disposing ) : void
GetFeatureTypeInfo ( ) : void

This method gets metadata about the featuretype to query from 'GetCapabilities' and 'DescribeFeatureType'.

ResolveFeatureType ( string featureType ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

ExecuteIntersectionQuery() public method

public ExecuteIntersectionQuery ( BoundingBox bbox ) : Features
bbox BoundingBox
return Features

GetExtents() public method

public GetExtents ( ) : BoundingBox
return BoundingBox

GetFeaturesInView() public method

public GetFeaturesInView ( BoundingBox box, double resolution ) : IEnumerable
box BoundingBox
resolution double
return IEnumerable

WFSProvider() public method

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.
public WFSProvider ( IXPathQueryManager getCapabilitiesCache, string nsPrefix, string featureType, GeometryTypeEnum geometryType, WFSVersionEnum wfsVersion ) : System
getCapabilitiesCache IXPathQueryManager
nsPrefix string
featureType string
geometryType GeometryTypeEnum
wfsVersion WFSVersionEnum
return System

WFSProvider() public method

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.
public WFSProvider ( IXPathQueryManager getCapabilitiesCache, string nsPrefix, string featureType, WFSVersionEnum wfsVersion ) : System
getCapabilitiesCache IXPathQueryManager /// This cache (obtained from an already instantiated dataprovider that retrieves a featuretype hosted by the same service) /// helps to speed up gathering metadata. It caches the 'GetCapabilities' response. ///
nsPrefix string /// Use an empty string or 'null', if there is no prefix for the featuretype. ///
featureType string
wfsVersion WFSVersionEnum
return System

WFSProvider() public method

Use this constructor for initializing this dataprovider with a WfsFeatureTypeInfo object, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.
public WFSProvider ( WfsFeatureTypeInfo featureTypeInfo, WFSVersionEnum wfsVersion ) : System
featureTypeInfo Mapsui.Providers.Wfs.Utilities.WfsFeatureTypeInfo
wfsVersion WFSVersionEnum
return System

WFSProvider() public method

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.
public WFSProvider ( string getCapabilitiesUri, string nsPrefix, string featureType, GeometryTypeEnum geometryType, WFSVersionEnum wfsVersion ) : System
getCapabilitiesUri string
nsPrefix string
featureType string
geometryType GeometryTypeEnum
wfsVersion WFSVersionEnum
return System

WFSProvider() public method

Use this constructor for initializing this dataprovider with all necessary parameters to gather metadata from 'GetCapabilities' contract.
public WFSProvider ( string getCapabilitiesUri, string nsPrefix, string featureType, WFSVersionEnum wfsVersion ) : System
getCapabilitiesUri string
nsPrefix string
featureType string
wfsVersion WFSVersionEnum
return System

WFSProvider() public method

Use this constructor for initializing this dataprovider with all mandatory metadata for retrieving a featuretype, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.
public WFSProvider ( string serviceUri, string nsPrefix, string featureTypeNamespace, string featureType, string geometryName, GeometryTypeEnum geometryType, WFSVersionEnum wfsVersion ) : System
serviceUri string
nsPrefix string
featureTypeNamespace string
featureType string
geometryName string
geometryType GeometryTypeEnum
wfsVersion WFSVersionEnum
return System

WFSProvider() public method

Use this constructor for initializing this dataprovider with all mandatory metadata for retrieving a featuretype, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.
public WFSProvider ( string serviceUri, string nsPrefix, string featureTypeNamespace, string featureType, string geometryName, WFSVersionEnum wfsVersion ) : System
serviceUri string
nsPrefix string
featureTypeNamespace string
featureType string
geometryName string
wfsVersion WFSVersionEnum
return System