C# Class Mapsui.Geometries.LineString

A LineString is a Curve with linear interpolation between points. Each consecutive pair of points defines a line segment.
Inheritance: Geometry
Exibir arquivo Open project: pauldendulk/Mapsui Class Usage Examples

Public Methods

Method Description
Clone ( ) : LineString

Return a copy of this geometry

Contains ( System.Point point ) : bool
Distance ( System.Point point ) : double

Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry.

Equals ( LineString lineString ) : bool

Checks whether this instance is spatially equal to the LineString 'l'

GetBoundingBox ( ) : BoundingBox

The minimum bounding box for this Geometry.

GetHashCode ( ) : int

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.

IsEmpty ( ) : bool

If true, then this Geometry represents the empty point set, Ø, for the coordinate space.

IsSimple ( ) : bool

Returns 'true' if this Geometry has no anomalous geometric points, such as self intersection or self tangency. The description of each instantiable geometric class will include the specific conditions that cause an instance of that class to be classified as not simple.

LineString ( ) : System

Initializes an instance of a LineString

LineString ( IEnumerable vertices ) : System

Initializes an instance of a LineString from a set of vertices

LineString ( IEnumerable points ) : System

Initializes an instance of a LineString

Point ( int n ) : System.Point

Returns the specified point N in this Linestring.

This method is supplied as part of the OpenGIS Simple Features Specification

Method Details

Clone() public method

Return a copy of this geometry
public Clone ( ) : LineString
return LineString

Contains() public method

public Contains ( System.Point point ) : bool
point System.Point
return bool

Distance() public method

Returns the shortest distance between any two points in the two geometries as calculated in the spatial reference system of this Geometry.
public Distance ( System.Point point ) : double
point System.Point Geometry to calculate distance to
return double

Equals() public method

Checks whether this instance is spatially equal to the LineString 'l'
public Equals ( LineString lineString ) : bool
lineString LineString LineString to compare to
return bool

GetBoundingBox() public method

The minimum bounding box for this Geometry.
public GetBoundingBox ( ) : BoundingBox
return BoundingBox

GetHashCode() public method

Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
return int

IsEmpty() public method

If true, then this Geometry represents the empty point set, Ø, for the coordinate space.
public IsEmpty ( ) : bool
return bool

IsSimple() public method

Returns 'true' if this Geometry has no anomalous geometric points, such as self intersection or self tangency. The description of each instantiable geometric class will include the specific conditions that cause an instance of that class to be classified as not simple.
public IsSimple ( ) : bool
return bool

LineString() public method

Initializes an instance of a LineString
public LineString ( ) : System
return System

LineString() public method

Initializes an instance of a LineString from a set of vertices
public LineString ( IEnumerable vertices ) : System
vertices IEnumerable
return System

LineString() public method

Initializes an instance of a LineString
public LineString ( IEnumerable points ) : System
points IEnumerable
return System

Point() public method

Returns the specified point N in this Linestring.
This method is supplied as part of the OpenGIS Simple Features Specification
public Point ( int n ) : System.Point
n int
return System.Point