Table of Contents

Class OgcFeature

Namespace
Honua.Sdk.OgcFeatures.Models
Assembly
Honua.Sdk.OgcFeatures.dll

A single GeoJSON feature from an OGC API Features response. Properties are represented as JsonElement for AOT safety. Access values via feature.Properties["name"].GetString() etc.

public sealed class OgcFeature
Inheritance
OgcFeature
Inherited Members

Properties

Geometry

Feature geometry as a raw JSON element (GeoJSON format).

[JsonPropertyName("geometry")]
public JsonElement? Geometry { get; init; }

Property Value

JsonElement?

Id

The feature identifier.

[JsonPropertyName("id")]
public JsonElement? Id { get; init; }

Property Value

JsonElement?

Navigation links.

[JsonPropertyName("links")]
public IReadOnlyList<OgcLink>? Links { get; init; }

Property Value

IReadOnlyList<OgcLink>

Properties

Feature properties as a dictionary of JSON elements.

[JsonPropertyName("properties")]
public Dictionary<string, JsonElement>? Properties { get; init; }

Property Value

Dictionary<string, JsonElement>

Type

The GeoJSON type (always "Feature").

[JsonPropertyName("type")]
public string Type { get; init; }

Property Value

string