Table of Contents

Class OgcApiFeatureLayer

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll

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 string

The url of OGC API Features server.

collectionId string

The collection ID in the OGC API Features server.

bulkSize int

The 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

int

CollectionId

The collection Id in the OGC API Features server.

public string CollectionId { get; set; }

Property Value

string

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

bool

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

int

Url

The url of OGC API Features server.

public string Url { get; set; }

Property Value

string

WebProxy

This property gets or sets the proxy used for requesting a Web Response.

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

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

EventHandler<SendingWebRequestEventArgs>

SentWebRequest

public event EventHandler<SentWebRequestEventArgs> SentWebRequest

Event Type

EventHandler<SentWebRequestEventArgs>