GeoLineString Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a line geometry that consists of multiple coordinates.
[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))]
public sealed class GeoLineString : Azure.Core.GeoJson.GeoObject
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))>]
type GeoLineString = class
inherit GeoObject
Public NotInheritable Class GeoLineString
Inherits GeoObject
- Inheritance
- Attributes
Examples
Creating a line:
var line = new GeoLineString(new[]
{
new GeoPosition(-122.108727, 47.649383),
new GeoPosition(-122.081538, 47.640846),
new GeoPosition(-122.078634, 47.576066),
new GeoPosition(-122.112686, 47.578559),
});
Constructors
GeoLineString(IEnumerable<GeoPosition>, GeoBoundingBox, IReadOnlyDictionary<String,Object>) |
Initializes new instance of GeoLineString. |
GeoLineString(IEnumerable<GeoPosition>) |
Initializes new instance of GeoLineString. |
Properties
BoundingBox |
Represents information about the coordinate range of the GeoObject. (Inherited from GeoObject) |
Coordinates |
Returns a view over the coordinates array that forms this geometry. |
Type |
Gets the GeoJSON type of this object. |
Methods
ToString() |
Converts an instance of GeoObject to a GeoJSON representation. (Inherited from GeoObject) |
TryGetCustomProperty(String, Object) |
Tries to get a value of a custom property associated with the GeoObject. (Inherited from GeoObject) |
Applies to
Azure SDK for .NET