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
Id
The feature identifier.
[JsonPropertyName("id")]
public JsonElement? Id { get; init; }
Property Value
Links
Navigation links.
[JsonPropertyName("links")]
public IReadOnlyList<OgcLink>? Links { get; init; }
Property Value
Properties
Feature properties as a dictionary of JSON elements.
[JsonPropertyName("properties")]
public Dictionary<string, JsonElement>? Properties { get; init; }
Property Value
Type
The GeoJSON type (always "Feature").
[JsonPropertyName("type")]
public string Type { get; init; }