Repository navigation
Allow serving OGC API Tiles without Features - #261
Merged
Merged
Conversation
Register Features operations (items, schema, queryables, functions) and the default GeoJSON output format only when feature collections are configured.
jampukka
force-pushed
the
tiles-only-service
branch
from
November 30, 2026 14:35
e49783e to
c610aee
Compare
FeaturesApiExtension registers the Features operations and conformance classes. hakuna.features=false keeps the collections for tile rendering but publishes no Features API.
…conformance class
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes it possible to serve only OGC API - Tiles, without the Features side.
FeaturesApiExtension, only when feature collections exist andhakuna.featuresis notfalse. The default GeoJSON output format is added only then too.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/collectionsis 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 pagedatalink are registered only then./collections; the dataset tilecollectionsparameter returns 400 and is not mentioned in OpenAPI when Features is not published.ApiExtensionContextgetsfeaturesPublished; Tiles uses it to decide which vector layers are collection-less.TilesOnlyServiceTest,FeaturesDisabledTest;CollectionlessServiceTestnow expects no collections class.examples/finnish_admin_units/tiles/docker-compose.kunta-tiles-only.yml(port 8095) with README section.Known failures unrelated to this change:
GoldenDocumentTest.testOpenApiDocumentandOpenApiLangParamTest.testConformancePathHasNoLangParameter(also fail without it).