OgcApiProgressiveFeatureLayer¶
Namespace: ThinkGeo.UI.Maui
Represents a progressive feature layer that retrieves data from an OGC API Features service.
public class OgcApiProgressiveFeatureLayer : ProgressiveFeatureLayer, ThinkGeo.Core.IFeatureLayer
Inheritance object → LayerBase → Layer → FeatureLayer → ProgressiveFeatureLayer → OgcApiProgressiveFeatureLayer
Implements IFeatureLayer
Properties¶
Url¶
The url of OGC API Features server.
public string Url { get; set; }
Property Value¶
BulkSize¶
Gets or sets the number of features to retrieve in each batch request.
public int BulkSize { get; set; }
Property Value¶
CollectionId¶
The collection ID in the OGC API Features server.
public string CollectionId { get; set; }
Property Value¶
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¶
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 bool HasBoundingBox { get; }
Property Value¶
Remarks:
The default value is false.
WebProxy¶
This property gets or sets the proxy used for requesting a Web Response.
public IWebProxy WebProxy { get; set; }
Property Value¶
Projection¶
public Projection Projection { get; }
Property Value¶
Projection
EditTools¶
public EditTools EditTools { get; protected set; }
Property Value¶
EditTools
FeatureIdsToExclude¶
public Collection<string> FeatureIdsToExclude { get; }
Property Value¶
QueryTools¶
public QueryTools QueryTools { get; protected set; }
Property Value¶
QueryTools
MaxRecordsToDraw¶
public int MaxRecordsToDraw { get; set; }
Property Value¶
FeatureSource¶
public FeatureSource FeatureSource { get; set; }
Property Value¶
FeatureSource
DrawingQuality¶
public DrawingQuality DrawingQuality { get; set; }
Property Value¶
DrawingQuality
ZoomLevelSet¶
public ZoomLevelSet ZoomLevelSet { get; set; }
Property Value¶
ZoomLevelSet
LabelDisplayMode¶
public LabelDisplayMode LabelDisplayMode { get; set; }
Property Value¶
LabelDisplayMode
DrawingMarginInPixel¶
public float DrawingMarginInPixel { get; set; }
Property Value¶
RequestDrawingInterval¶
public TimeSpan RequestDrawingInterval { get; set; }
Property Value¶
Name¶
public string Name { get; set; }
Property Value¶
IsOpen¶
public bool IsOpen { get; }
Property Value¶
IsVisible¶
public bool IsVisible { get; set; }
Property Value¶
DrawingTime¶
public TimeSpan DrawingTime { get; protected set; }
Property Value¶
DrawingExceptionMode¶
public DrawingExceptionMode DrawingExceptionMode { get; set; }
Property Value¶
DrawingExceptionMode
Background¶
public GeoColor Background { get; set; }
Property Value¶
GeoColor
Transparency¶
public float Transparency { get; set; }
Property Value¶
BlueTranslation¶
public float BlueTranslation { get; set; }
Property Value¶
RedTranslation¶
public float RedTranslation { get; set; }
Property Value¶
GreenTranslation¶
public float GreenTranslation { get; set; }
Property Value¶
KeyColors¶
public Collection<GeoColor> KeyColors { get; }
Property Value¶
IsNegative¶
public bool IsNegative { get; set; }
Property Value¶
IsGrayscale¶
public bool IsGrayscale { get; set; }
Property Value¶
ThreadSafe¶
public ThreadSafetyLevel ThreadSafe { get; set; }
Property Value¶
ThreadSafetyLevel
ColorMappings¶
public Dictionary<GeoColor, GeoColor> ColorMappings { get; }
Property Value¶
Dictionary<GeoColor, GeoColor>
WrappingMode¶
public WrappingMode WrappingMode { get; set; }
Property Value¶
WrappingMode
WrappingExtent¶
public RectangleShape WrappingExtent { get; set; }
Property Value¶
RectangleShape
Constructors¶
OgcApiProgressiveFeatureLayer()¶
OgcApiFeaturesLayer Constructor.
public OgcApiProgressiveFeatureLayer()
OgcApiProgressiveFeatureLayer(string, string, int)¶
OgcApiFeaturesLayer Constructor
public OgcApiProgressiveFeatureLayer(string url, string collectionId, int bulkSize)
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.
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).
GetProgressiveFeaturesCore(RectangleShape, int)¶
Streams batches of features from the OGC API Features service.
protected IAsyncEnumerable<Collection<Feature>> GetProgressiveFeaturesCore(RectangleShape boundingBox, int bulkSize)
Parameters¶
boundingBox RectangleShape
The bounding box used to constrain the feature query.
bulkSize int
The number of features to retrieve in each batch.
Returns¶
IAsyncEnumerable<Collection<Feature>>
An asynchronous enumerable delivering collections of features.
Events¶
SendingWebRequest¶
Occurs before a web request is sent to the OGC API Features server.
public event EventHandler<SendingWebRequestEventArgs> SendingWebRequest;
SentWebRequest¶
Occurs after a web request has been sent to the OGC API Features server.
public event EventHandler<SentWebRequestEventArgs> SentWebRequest;
DrawingFeatures¶
public event EventHandler<DrawingFeaturesEventArgs> DrawingFeatures;
DrawingWrappingFeatures¶
public event EventHandler<DrawingWrappingFeaturesFeatureLayerEventArgs> DrawingWrappingFeatures;
DrawingProgressChanged¶
public event EventHandler<DrawingProgressChangedEventArgs> DrawingProgressChanged;
RequestedDrawing¶
public event EventHandler<RequestedDrawingLayerEventArgs> RequestedDrawing;
RequestingDrawing¶
public event EventHandler<RequestingDrawingLayerEventArgs> RequestingDrawing;
DrawingException¶
public event EventHandler<DrawingExceptionLayerEventArgs> DrawingException;
DrawnException¶
public event EventHandler<DrawnExceptionLayerEventArgs> DrawnException;