GeoBlazor Pro

dymaptic.GeoBlazor.Pro

dymaptic.GeoBlazor.Pro.Model

GeoJSONGeometry Class

Represents a GeoJSON Geometry

public record GeoJSONGeometry : System.IEquatable<dymaptic.GeoBlazor.Pro.Model.GeoJSONGeometry>

Inheritance System.Object 🡒 GeoJSONGeometry

Implements System.IEquatable<GeoJSONGeometry>

Constructors

GeoJSONGeometry(string, JsonElement) Constructor

Represents a GeoJSON Geometry

public GeoJSONGeometry(string Type, System.Text.Json.JsonElement Coordinates);

Parameters

Type System.String

The type of geometry (e.g., Point, LineString, Polygon).

Coordinates System.Text.Json.JsonElement

The coordinates of the geometry, as a JSON element.

Properties

GeoJSONGeometry.Coordinates Property

The coordinates of the geometry, as a JSON element.

public System.Text.Json.JsonElement Coordinates { get; init; }

Property Value

System.Text.Json.JsonElement

GeoJSONGeometry.Type Property

The type of geometry (e.g., Point, LineString, Polygon).

public string Type { get; init; }

Property Value

System.String