Interface IFerryStationLayer
The IFerryStationLayer capsules the access to all FerryStations.
Inherited Members
System.IDisposable.Dispose()
Namespace: SOHFerryModel.Station
Assembly: SOHFerryModel.dll
Syntax
public interface IFerryStationLayer : IModalLayer, IVectorLayer, IEnvelopDataLayer, IDataSet, IDisposable, IDataLayer, IChangingLayer, ILayer, IModelObject, INotifyChangedSource<IVectorFeature>
Methods
| Improve this Doc View SourceExplore(Double[], Double, Func<FerryStation, Boolean>)
Executes a point query at the specified position to get all limited order of features
inside the radius in kilometre. Optional it can be filtered by a predicate over attribute table
Declaration
IEnumerable<FerryStation> Explore(double[] position, double radius = -1, Func<FerryStation, bool> predicate = null)
Parameters
Type | Name | Description |
---|---|---|
System.Double[] | position | The outgoing position (lat, lon) from which to start the query. |
System.Double | radius | The exploration radius in meter or -1 for infinite. |
System.Func<FerryStation, System.Boolean> | predicate | The optional predicate to filter out specific features |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<FerryStation> | A collection with distance based order of the explored features. |
Nearest(Position, Func<FerryStation, Boolean>)
Tries to find the nearest FerryStation for given parameters.
Declaration
FerryStation Nearest(Position position, Func<FerryStation, bool> predicate = null)
Parameters
Type | Name | Description |
---|---|---|
Position | position | Start point to search by range. |
System.Func<FerryStation, System.Boolean> | predicate | Optional predicate to limit the result |
Returns
Type | Description |
---|---|
FerryStation | The corresponding FerryStation if one is found, null otherwise. |