Skip to content

Allow serving OGC API Tiles without Features - #261

Merged
jampukka merged 11 commits into
nlsfi:mainfrom
jampukka:tiles-only-service
Nov 30, 2026
Merged

jampukka merged 11 commits into
nlsfi:mainfrom
jampukka:tiles-only-service

Conversation

@jampukka

@jampukka jampukka commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Makes it possible to serve only OGC API - Tiles, without the Features side.

  • Features operations (items, items/{id}, schema, queryables, functions) and their conformance classes are registered by a new FeaturesApiExtension, only when feature collections exist and hakuna.features is not false. The default GeoJSON output format is added only then too.
  • New service-level switch hakuna.features=false (documented in docs/overview/configuration.md): collections are still read for tile rendering, but are not published as Features.
  • common-2/conf/collections is no longer declared by the core. Extensions declare it (Features always, Tiles when it has collection-level tilesets), and /collections, /collections/{id} and the landing page data link are registered only then.
  • A dataset-only tiles service publishes no /collections; the dataset tile collections parameter returns 400 and is not mentioned in OpenAPI when Features is not published.
  • ApiExtensionContext gets featuresPublished; Tiles uses it to decide which vector layers are collection-less.
  • Tests: TilesOnlyServiceTest, FeaturesDisabledTest; CollectionlessServiceTest now expects no collections class.
  • Example: examples/finnish_admin_units/tiles/docker-compose.kunta-tiles-only.yml (port 8095) with README section.

Known failures unrelated to this change: GoldenDocumentTest.testOpenApiDocument and OpenApiLangParamTest.testConformancePathHasNoLangParameter (also fail without it).

Register Features operations (items, schema, queryables, functions) and the
default GeoJSON output format only when feature collections are configured.
@jampukka
jampukka merged commit 23aaf61 into nlsfi:main Nov 30, 2026
2 checks passed
@jampukka
jampukka deleted the tiles-only-service branch November 30, 2026 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant