Interface IVectorLayer<T>
A Layer that holds geo-spatial vector data and allows different querying methods
for a set of vector formats which can polygon based, point based or as a line string
Inherited Members
System.IDisposable.Dispose()
Assembly: Mars.Interfaces.dll
Syntax
public interface IVectorLayer<T> : IVectorLayer, IEnvelopDataLayer, IDataSet, IDisposable, IDataLayer, IChangingLayer, ILayer, IModelObject, INotifyChangedSource<IVectorFeature> where T : IVectorFeature
Type Parameters
Methods
|
Improve this Doc
View Source
Explore(Double[], Double, Func<T, Boolean>)
Performs a circle query to retrieve all vector-features intersecting the circle.
Declaration
IEnumerable<T> Explore(double[] source, double radius, Func<T, bool> predicate = null)
Parameters
Type |
Name |
Description |
System.Double[] |
source |
The outgoing position (lat, lon) from which to start the circle query. |
System.Double |
radius |
The radius in meter to specify the circle range. |
System.Func<T, System.Boolean> |
predicate |
The optional predicate to filter out specific features |
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<T> |
Returns a sequence of objects intersecting
the specified circle and optional predicate.
|
|
Improve this Doc
View Source
Insert(IDomainData)
Inserts and initializes a new vector feature and making it available on the layer
defined by their
IVectorFeature
Declaration
T Insert(IDomainData data)
Parameters
Type |
Name |
Description |
IDomainData |
data |
The data to passionate. |
Returns
Type |
Description |
T |
Returns the new feature object
if the feature was successfully inserted.
|
|
Improve this Doc
View Source
Nearest(Double[], Func<T, Boolean>)
Tries to find the nearest domain object for given parameters.
Declaration
T Nearest(double[] position, Func<T, bool> predicate = null)
Parameters
Type |
Name |
Description |
System.Double[] |
position |
The outgoing position (lat, lon) from which to start the query. |
System.Func<T, System.Boolean> |
predicate |
The optional predicate to filter out specific features |
Returns
Type |
Description |
T |
The found T or null if none could be found. |
|
Improve this Doc
View Source
Remove(T)
Removes the feature item from the layer.
Declaration
Parameters
Type |
Name |
Description |
T |
entity |
The entity and position to remove |
Extension Methods