다음을 통해 공유


GeoPoint Class

Definition

Represents a point geometry.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))]
public sealed class GeoPoint : Azure.Core.GeoJson.GeoObject, System.ClientModel.Primitives.IJsonModel<Azure.Core.GeoJson.GeoPoint>, System.ClientModel.Primitives.IPersistableModel<Azure.Core.GeoJson.GeoPoint>
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.Core.GeoJson.GeoJsonConverter))>]
type GeoPoint = class
    inherit GeoObject
    interface IJsonModel<GeoPoint>
    interface IPersistableModel<GeoPoint>
Public NotInheritable Class GeoPoint
Inherits GeoObject
Implements IJsonModel(Of GeoPoint), IPersistableModel(Of GeoPoint)
Inheritance
GeoPoint
Attributes
Implements

Examples

Creating a point:

var point = new GeoPoint(-122.091954, 47.607148);

Constructors

GeoPoint()

Initializes new instance of GeoPoint.

GeoPoint(Double, Double, Nullable<Double>)

Initializes new instance of GeoPoint.

GeoPoint(Double, Double)

Initializes new instance of GeoPoint.

GeoPoint(GeoPosition, GeoBoundingBox, IReadOnlyDictionary<String,Object>)

Initializes new instance of GeoPoint.

GeoPoint(GeoPosition)

Initializes new instance of GeoPoint.

Properties

BoundingBox

Represents information about the coordinate range of the GeoObject.

(Inherited from GeoObject)
Coordinates

Gets position of the point.

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)

Explicit Interface Implementations

IJsonModel<GeoPoint>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<GeoPoint>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<GeoPoint>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<GeoPoint>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<GeoPoint>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to