Share via


GeoCollection Class

Definition

Represents a geometry that is composed of multiple geometries.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))]
public sealed class GeoCollection : Azure.Core.GeoJson.GeoObject, System.Collections.Generic.IEnumerable<Azure.Core.GeoJson.GeoObject>, System.Collections.Generic.IReadOnlyCollection<Azure.Core.GeoJson.GeoObject>, System.Collections.Generic.IReadOnlyList<Azure.Core.GeoJson.GeoObject>
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))>]
type GeoCollection = class
    inherit GeoObject
    interface IReadOnlyList<GeoObject>
    interface seq<GeoObject>
    interface IEnumerable
    interface IReadOnlyCollection<GeoObject>
Public NotInheritable Class GeoCollection
Inherits GeoObject
Implements IEnumerable(Of GeoObject), IReadOnlyCollection(Of GeoObject), IReadOnlyList(Of GeoObject)
Inheritance
GeoCollection
Attributes
Implements

Constructors

GeoCollection(IEnumerable<GeoObject>, GeoBoundingBox, IReadOnlyDictionary<String,Object>)

Initializes new instance of GeoCollection.

GeoCollection(IEnumerable<GeoObject>)

Initializes new instance of GeoCollection.

Properties

BoundingBox

Represents information about the coordinate range of the GeoObject.

(Inherited from GeoObject)
Count

Gets the number of elements in the collection.

Item[Int32]

Gets the element at the specified index in the read-only list.

Type

Gets the GeoJSON type of this object.

Methods

GetEnumerator()

Returns an enumerator that iterates through the collection.

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)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Applies to