GeoFence Class

The GeoFence class is used to help check if points/coordinates are inside or near a specified polygon/polyline,

Definition

Namespace: CoordinateSharp
Assembly: CoordinateSharp (in CoordinateSharp.dll) Version: 2.21.1.1
XMLNS for XAML: Not mapped to an xmlns.
C#
[SerializableAttribute]
public class GeoFence
Inheritance
Object    GeoFence

Constructors

GeoFence(ListCoordinate) Create a GeoFence using a list of coordinates A GeoFence can be either a series of lines or polygons.
GeoFence(ListGeoFencePoint) Create a GeoFence using a list of points. A GeoFence can be either a series of lines or polygons.

Properties

Points Provides a List of Points contained within the drawn GeoFence.

Methods

DistanceFromNearestPolyLine Gets distance from nearest polyline in shape
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
IsPointInPolygon Determine if the coordinate is inside the polygon.
IsPointInRangeOfLine(Coordinate, Distance) Determine if the coordinate is next the given range of the polyline.
IsPointInRangeOfLine(Coordinate, Double) Determine if a coordinate is next to the given range (in meters) of the polyline.
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also