OGC API Features Standard implementation
License
—
Deps
8
Install Size
—
Vulns
✓ 0
Published
Feb 20, 2026
$ dotnet add package OgcApi.Net.NET implementation of the OGC API family of standards. This package provides the core functionality for building Web APIs that conform to OGC API standards.
Install the package via NuGet:
dotnet add package OgcApi.Net
To use this package, follow these steps:
Register the API in Startup.cs:
services.AddOgcApi("ogcapi.json");
Add controllers:
services.AddControllers().AddOgcApiControllers();
Configure the API using a JSON file (ogcapi.json), data provider for example PostGis:
{
"LandingPage": {
"Title": "OGC API Implementation",
"Description": "The implementation of the OGC API family of standards that being developed to make it easy for anyone to provide geospatial data to the web",
"Version": "1.0",
"ContactName": "OGC API",
"ContactUrl": "https://www.example.com/",
"ApiDocumentPage": "/api/ogc/index.html",
"ApiDescriptionPage": "/api/ogc/swagger.json"
},
"Collections": {
"Items": [
{
"Id": "Test",
"Title": "Test collection",
"Features": {
"Crs": [
"http://www.opengis.net/def/crs/OGC/1.3/CRS84",
"http://www.opengis.net/def/crs/EPSG/0/3857"
],
"StorageCrs": "http://www.opengis.net/def/crs/EPSG/0/3857",
"Storage": {
"Type": "PostGis",
"ConnectionString": "Host=localhost;User Id=postgre;Password=myStrongP@ssword;Database=Tests;Port=5432;Timeout=50;",
"Schema": "test",
"Table": "test_table",
"GeometryColumn": "geom",
"GeometrySrid": 3857,
"GeometryDataType": "geometry",
"GeometryGeoJsonType": "MultiPolygon",
"IdentifierColumn": "id",
"Properties": [
"name",
"region"
]
}
},
"Tiles": {
"Crs": "http://www.opengis.net/def/crs/EPSG/0/3857",
"Storage": {
"Type": "MbTiles",
"FileName": "TilesData\\data.mbtiles"
}
}
}
]
}
}
Run your application and access the API at /api/ogc.
For more details, see the full documentation.
This project is licensed under the MIT License. See the LICENSE file for details.