Class OgcApiFeatureLayer
This class represents the OGC API Features Layer.
public class OgcApiFeatureLayer : FeatureLayer
- Inheritance
-
OgcApiFeatureLayer
- Inherited Members
Remarks
This class allows you to get features from an OGC API Features server.
Constructors
OgcApiFeatureLayer()
OgcApiFeaturesLayer Constructor.
public OgcApiFeatureLayer()
OgcApiFeatureLayer(string, string, int)
OgcApiFeaturesLayer Constructor
public OgcApiFeatureLayer(string url, string collectionId, int bulkSize = 1000)
Parameters
url
stringThe url of OGC API Features server.
collectionId
stringThe collection ID in the OGC API Features server.
bulkSize
intThe bulk size of the features the layer will fetch and draw each time
Remarks
The parameters can not be null.
Properties
BulkSize
The url of OGC API Features server.
public int BulkSize { get; set; }
Property Value
CollectionId
The collection Id in the OGC API Features server.
public string CollectionId { get; set; }
Property Value
HasBoundingBox
This property indicates whether a Layer has a BoundingBox or not. If it has no BoundingBox, it will throw an exception when you call the GetBoundingBox() and GetFullExtent() APIs.
public override bool HasBoundingBox { get; }
Property Value
Remarks
The default value is false.
TimeoutInSeconds
This property specifies the timeout of the web request in seconds. The default timeout value is 20 seconds.
public int TimeoutInSeconds { get; set; }
Property Value
Url
The url of OGC API Features server.
public string Url { get; set; }
Property Value
WebProxy
This property gets or sets the proxy used for requesting a Web Response.
public IWebProxy WebProxy { get; set; }
Property Value
Methods
GetLayers()
Get layer names(collection ids) from the OGC API Features Layer.
public Collection<string> GetLayers()
Returns
- Collection<string>
The collection represent layer names(collection ids).
Events
SendingWebRequest
public event EventHandler<SendingWebRequestEventArgs> SendingWebRequest
Event Type
SentWebRequest
public event EventHandler<SentWebRequestEventArgs> SentWebRequest