Class 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
System.Object
WFSProvider
Assembly: Mapsui.Desktop.dll
Syntax
public class WFSProvider : object, IProvider
Constructors
|
Improve this Doc
View Source
WFSProvider(WfsFeatureTypeInfo, WFSProvider.WFSVersionEnum)
Use this constructor for initializing this dataprovider with a
WfsFeatureTypeInfo object,
so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.
Declaration
public WFSProvider(WfsFeatureTypeInfo featureTypeInfo, WFSProvider.WFSVersionEnum wfsVersion)
Parameters
|
Improve this Doc
View Source
WFSProvider(IXPathQueryManager, String, String, GeometryTypeEnum, WFSProvider.WFSVersionEnum)
Use this constructor for initializing this dataprovider with all necessary
parameters to gather metadata from 'GetCapabilities' contract.
Declaration
public WFSProvider(IXPathQueryManager getCapabilitiesCache, string nsPrefix, string featureType, GeometryTypeEnum geometryType, WFSProvider.WFSVersionEnum wfsVersion)
Parameters
|
Improve this Doc
View Source
WFSProvider(IXPathQueryManager, String, String, WFSProvider.WFSVersionEnum)
Use this constructor for initializing this dataprovider with all necessary
parameters to gather metadata from 'GetCapabilities' contract.
Declaration
public WFSProvider(IXPathQueryManager getCapabilitiesCache, string nsPrefix, string featureType, WFSProvider.WFSVersionEnum wfsVersion)
Parameters
Type |
Name |
Description |
IXPathQueryManager |
getCapabilitiesCache |
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.
|
System.String |
nsPrefix |
Use an empty string or 'null', if there is no prefix for the featuretype.
|
System.String |
featureType |
|
WFSProvider.WFSVersionEnum |
wfsVersion |
|
|
Improve this Doc
View Source
WFSProvider(String, String, String, GeometryTypeEnum, WFSProvider.WFSVersionEnum)
Use this constructor for initializing this dataprovider with all necessary
parameters to gather metadata from 'GetCapabilities' contract.
Declaration
public WFSProvider(string getCapabilitiesUri, string nsPrefix, string featureType, GeometryTypeEnum geometryType, WFSProvider.WFSVersionEnum wfsVersion)
Parameters
|
Improve this Doc
View Source
WFSProvider(String, String, String, WFSProvider.WFSVersionEnum)
Use this constructor for initializing this dataprovider with all necessary
parameters to gather metadata from 'GetCapabilities' contract.
Declaration
public WFSProvider(string getCapabilitiesUri, string nsPrefix, string featureType, WFSProvider.WFSVersionEnum wfsVersion)
Parameters
Type |
Name |
Description |
System.String |
getCapabilitiesUri |
|
System.String |
nsPrefix |
|
System.String |
featureType |
|
WFSProvider.WFSVersionEnum |
wfsVersion |
|
|
Improve this Doc
View Source
WFSProvider(String, String, String, String, String, GeometryTypeEnum, WFSProvider.WFSVersionEnum)
Use this constructor for initializing this dataprovider with all mandatory
metadata for retrieving a featuretype, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.
Declaration
public WFSProvider(string serviceUri, string nsPrefix, string featureTypeNamespace, string featureType, string geometryName, GeometryTypeEnum geometryType, WFSProvider.WFSVersionEnum wfsVersion)
Parameters
Type |
Name |
Description |
System.String |
serviceUri |
|
System.String |
nsPrefix |
|
System.String |
featureTypeNamespace |
|
System.String |
featureType |
|
System.String |
geometryName |
|
GeometryTypeEnum |
geometryType |
|
WFSProvider.WFSVersionEnum |
wfsVersion |
|
|
Improve this Doc
View Source
WFSProvider(String, String, String, String, String, WFSProvider.WFSVersionEnum)
Use this constructor for initializing this dataprovider with all mandatory
metadata for retrieving a featuretype, so that 'GetCapabilities' and 'DescribeFeatureType' can be bypassed.
Declaration
public WFSProvider(string serviceUri, string nsPrefix, string featureTypeNamespace, string featureType, string geometryName, WFSProvider.WFSVersionEnum wfsVersion)
Parameters
Type |
Name |
Description |
System.String |
serviceUri |
|
System.String |
nsPrefix |
|
System.String |
featureTypeNamespace |
|
System.String |
featureType |
|
System.String |
geometryName |
|
WFSProvider.WFSVersionEnum |
wfsVersion |
|
Properties
|
Improve this Doc
View Source
CRS
Declaration
public string CRS { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
FeatureTypeInfo
Declaration
public WfsFeatureTypeInfo FeatureTypeInfo { get; }
Property Value
|
Improve this Doc
View Source
GetCapabilitiesCache
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.
Declaration
public IXPathQueryManager GetCapabilitiesCache { get; set; }
Property Value
|
Improve this Doc
View Source
GetFeatureGetRequest
Gets or sets a value indicating whether the 'GetFeature' request
should be done with HTTP GET. This option can be important when obtaining
data from a WFS provided by an UMN MapServer.
Declaration
public bool GetFeatureGetRequest { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Label
Gets or sets the property of the featuretype responsible for labels
Declaration
public string Label { get; set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
MultiGeometries
Gets or sets a value indicating whether the 'GetFeature' parser
should ignore multi-geometries (MultiPoint, MultiLineString, MultiCurve, MultiPolygon, MultiSurface).
By default it does not. Ignoring multi-geometries can lead to a better performance.
Declaration
public bool MultiGeometries { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
OgcFilter
Gets or sets an OGC Filter.
Declaration
public IFilter OgcFilter { get; set; }
Property Value
|
Improve this Doc
View Source
QuickGeometries
Gets or sets a value indicating whether extracting geometry information
from 'GetFeature' response shall be done quickly without paying attention to
context validation, polygon boundaries and multi-geometries.
This option accelerates the geometry parsing process,
but in scarce cases can lead to errors.
Declaration
public bool QuickGeometries { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
|
Improve this Doc
View Source
Dispose()
Declaration
|
Improve this Doc
View Source
ExecuteIntersectionQuery(BoundingBox)
Declaration
public Features ExecuteIntersectionQuery(BoundingBox bbox)
Parameters
Returns
|
Improve this Doc
View Source
GetExtents()
Declaration
public BoundingBox GetExtents()
Returns
|
Improve this Doc
View Source
GetFeaturesInView(BoundingBox, Double)
Declaration
public IEnumerable<IFeature> GetFeaturesInView(BoundingBox box, double resolution)
Parameters
Type |
Name |
Description |
BoundingBox |
box |
|
System.Double |
resolution |
|
Returns
Implements