Class GeoJsonGeometry
- Namespace
- Honua.Sdk.OgcFeatures.Wfs.Models
- Assembly
- Honua.Sdk.OgcFeatures.dll
A GeoJSON geometry object.
public sealed class GeoJsonGeometry
- Inheritance
-
GeoJsonGeometry
- Inherited Members
Remarks
Primitive geometry types (Point, LineString, Polygon, MultiPoint, MultiLineString, MultiPolygon) use Coordinates with varying nesting depth per RFC 7946. GeometryCollection types use Geometries to hold child geometry objects (RFC 7946 §3.1.8). Coordinates are exposed as JsonElement to avoid deep recursive model hierarchies. Callers can traverse the element to extract typed coordinates.
Properties
Coordinates
The coordinate array, structure depends on Type. Null for GeometryCollection.
public JsonElement? Coordinates { get; init; }
Property Value
Geometries
Child geometries for GeometryCollection types (RFC 7946 §3.1.8). Null for other types.
public IReadOnlyList<GeoJsonGeometry>? Geometries { get; init; }
Property Value
Type
The geometry type (e.g. Point, Polygon, MultiPolygon, GeometryCollection).
public string Type { get; init; }