LineString
A GeoJSON line string.
The simplest line string is just a line: joining two points together.
Geo.LineString(
Geo.Point(Geo.Longitude(0.0), Geo.Latitude(0.0)),
Geo.Point(Geo.Longitude(5.0), Geo.Latitude(0.2)),
)Content copied to clipboard
A more complex line string represents a path between multiple points, drawing a straight line between each two points.
Geo.LineString(
Geo.Point(Geo.Longitude(0.0), Geo.Latitude(0.0)),
Geo.Point(Geo.Longitude(5.0), Geo.Latitude(0.2)),
Geo.Point(Geo.Longitude(6.0), Geo.Latitude(0.3)),
Geo.Point(Geo.Longitude(6.1), Geo.Latitude(0.9)),
)Content copied to clipboard
A line string can represent the outline of a polygon with any number of points.
External resources
Constructors
Link copied to clipboard
Constructs a LineString instance from multiple Point instances.
Properties
Functions
Link copied to clipboard
JSON representation of this object as a BSON document.
Link copied to clipboard
Writes this object to the provided writer.