Honua.Sdk.OgcFeatures
1.13.1
dotnet add package Honua.Sdk.OgcFeatures --version 1.13.1
NuGet\Install-Package Honua.Sdk.OgcFeatures -Version 1.13.1
<PackageReference Include="Honua.Sdk.OgcFeatures" Version="1.13.1" />
<PackageVersion Include="Honua.Sdk.OgcFeatures" Version="1.13.1" />
<PackageReference Include="Honua.Sdk.OgcFeatures" />
paket add Honua.Sdk.OgcFeatures --version 1.13.1
#r "nuget: Honua.Sdk.OgcFeatures, 1.13.1"
#:package Honua.Sdk.OgcFeatures@1.13.1
#addin nuget:?package=Honua.Sdk.OgcFeatures&version=1.13.1
#tool nuget:?package=Honua.Sdk.OgcFeatures&version=1.13.1
Honua.Sdk.OgcFeatures
REST client for the Honua OGC API Features endpoint: landing page, conformance, collections, JSON-Schema queryables, items with CQL2 filtering, automatic next-link paging, and raw responses for non-JSON encodings such as GML, CSV, or HTML.
Also ships the WFS 2.0 read/query surface under
Honua.Sdk.OgcFeatures.Wfs.*: IHonuaWfsClient / HonuaWfsClient,
AddHonuaWfs(...), HonuaWfsClientOptions, WfsJsonContext, and the
parsing pipeline for GetCapabilities, DescribeFeatureType, and GetFeature
(GeoJSON).
And the OGC API – Styles surface under Honua.Sdk.OgcFeatures.Styles.*:
IHonuaOgcStylesClient / HonuaOgcStylesClient keyed by styleId over
/ogc/styles (ADR-0048) — list styles, get a content-negotiated stylesheet
(MapLibre default, or derived SLD 1.0/1.1), read style metadata, and update a
style's MapLibre stylesheet. This is the canonical styles surface; the per-layer
IHonuaAdminStylesClient (keyed by layerId) is deprecated and retained
only as a back-compat alias for editing a layer's default style. Registered
alongside the features client via AddHonuaOgcFeatures(...).
Part of the Honua .NET SDK — see the repo README for the full package catalog, browser/WASM support, authentication, and release policy.
Install
Stable releases are on nuget.org and install anonymously. An unversioned add resolves to the newest stable release (the current SDK version is in the repo README). Prereleases stay on the authenticated GitHub Packages feed; see INSTALL.md.
dotnet add package Honua.Sdk.OgcFeatures
Quick usage
using Honua.Sdk.OgcFeatures;
using Honua.Sdk.OgcFeatures.Extensions;
using Honua.Sdk.OgcFeatures.Models;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddHonuaOgcFeatures(o => o.BaseAddress = new Uri("https://your-honua-server"));
var provider = services.BuildServiceProvider();
var client = provider.GetRequiredService<IHonuaOgcFeaturesClient>();
var collections = await client.ListCollectionsAsync(cancellationToken);
await foreach (var page in client.GetItemsPagesAsync(
"buildings",
new OgcItemsParams
{
Limit = 500,
Bbox = [-105.3, 39.9, -105.1, 40.1],
Filter = "height > 30",
FilterLang = "cql2-text",
},
cancellationToken))
{
Console.WriteLine($"Page with {page.Features?.Count ?? 0} features");
}
WFS 2.0
using Honua.Sdk.OgcFeatures.Wfs;
using Honua.Sdk.OgcFeatures.Wfs.Extensions;
using Honua.Sdk.OgcFeatures.Wfs.Models;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddHonuaWfs(o => o.BaseAddress = new Uri("https://your-honua-server"));
var provider = services.BuildServiceProvider();
var wfs = provider.GetRequiredService<IHonuaWfsClient>();
var caps = await wfs.GetCapabilitiesAsync(cancellationToken);
var page = await wfs.GetFeaturesAsync(new GetFeaturesRequest
{
TypeNames = caps.FeatureTypes[0].Name,
Count = 50,
}, cancellationToken);
OGC API – Styles
using Honua.Sdk.OgcFeatures.Extensions;
using Honua.Sdk.OgcFeatures.Styles;
using Honua.Sdk.OgcFeatures.Styles.Models;
using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddHonuaOgcFeatures(o => o.BaseAddress = new Uri("https://your-honua-server"));
var provider = services.BuildServiceProvider();
var styles = provider.GetRequiredService<IHonuaOgcStylesClient>();
var list = await styles.ListStylesAsync(cancellationToken);
var styleId = list.Default ?? list.Styles[0].Id;
// MapLibre by default; request SLD via the encoding argument.
var sheet = await styles.GetStylesheetAsync(styleId, OgcStyleEncoding.MapboxStyle, cancellationToken);
var metadata = await styles.GetStyleMetadataAsync(styleId, cancellationToken);
await styles.UpdateStyleAsync(styleId, sheet.Content, strict: true, cancellationToken);
Documentation
License
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Honua.Sdk.Abstractions (>= 1.13.1)
- Honua.Sdk.Geometry (>= 1.13.1)
- Microsoft.Extensions.Http (>= 10.0.7)
- Microsoft.Extensions.Http.Resilience (>= 10.5.0)
- Microsoft.Extensions.Options (>= 10.0.7)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Honua.Sdk.OgcFeatures:
| Package | Downloads |
|---|---|
|
Honua.Sdk
Umbrella / meta package for the Honua .NET SDK. Installing this package brings in every other Honua.Sdk.* package and exposes a single AddHonua(o => o.BaseAddress = ...) DI registration that fans out across every enabled sub-package. Use the narrower per-package facades (Honua.Sdk.Grpc, Honua.Sdk.Admin, etc.) directly if you want to depend on less. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.13.1 | 137 | 10/26/2026 |
| 1.12.0 | 1,669 | 10/19/2026 |
| 1.11.1 | 2,304 | 10/13/2026 |
| 1.11.0 | 1,887 | 10/12/2026 |
| 1.10.4 | 889 | 10/7/2026 |
| 1.10.3 | 277 | 10/5/2026 |
| 1.10.2 | 200 | 10/4/2026 |
| 1.10.1 | 494 | 9/29/2026 |
| 1.10.0 | 312 | 9/25/2026 |
| 1.9.0 | 119 | 9/25/2026 |
| 1.8.0 | 122 | 9/16/2026 |
| 1.7.0 | 145 | 9/15/2026 |
| 1.6.4 | 169 | 9/12/2026 |