Skip to content

Commit

Permalink
Merge pull request #72 from PDOK/quantizfor-tileset.json-OGC-3D-Tiles…
Browse files Browse the repository at this point in the history
…-manifest,-separate-/-spec-from-OGC-3D-GeoVolumes)-or-the-equivalent-manifest-(layer.json)-for-a-quantized-meshed-mesh-explicit-name

Support explicit call to layer.json
  • Loading branch information
rkettelerij authored Nov 2, 2023
2 parents ac98be2 + 7587211 commit 610fa70
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ogc/geovolumes/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func NewThreeDimensionalGeoVolumes(e *engine.Engine, router *chi.Mux) *ThreeDime

// DTM/Quantized Mesh
router.Get(geospatial.CollectionsPath+"/{3dContainerId}/quantized-mesh", geoVolumes.CollectionContent("layer.json"))
router.Get(geospatial.CollectionsPath+"/{3dContainerId}/quantized-mesh/{explicitTileSet}.json", geoVolumes.ExplicitTileset())
router.Get(geospatial.CollectionsPath+"/{3dContainerId}/quantized-mesh/{tileMatrix}/{tileRow}/{tileColAndSuffix}", geoVolumes.Tile())
router.Get(geospatial.CollectionsPath+"/{3dContainerId}/quantized-mesh/{tilePathPrefix}/{tileMatrix}/{tileRow}/{tileColAndSuffix}", geoVolumes.Tile())

Expand All @@ -46,7 +47,7 @@ func NewThreeDimensionalGeoVolumes(e *engine.Engine, router *chi.Mux) *ThreeDime
return geoVolumes
}

// CollectionContent reverse proxy to tileserver for tileset.json OGC 3D Tiles manifest, separate
// CollectionContent reverse proxy to tileserver for tileset.json OGC 3D Tiles manifest (separate
// spec from OGC 3D GeoVolumes) or the equivalent manifest (layer.json) for a quantized mesh
func (t *ThreeDimensionalGeoVolumes) CollectionContent(fileName string) http.HandlerFunc {
if !strings.HasSuffix(fileName, ".json") {
Expand All @@ -57,8 +58,8 @@ func (t *ThreeDimensionalGeoVolumes) CollectionContent(fileName string) http.Han
}
}

// ExplicitTileset reverse proxy to tileserver for a specific JSON tileset (the latter contains
// data from OGC 3D Tiles, separate spec from OGC 3D GeoVolumes)
// ExplicitTileset reverse proxy to tileserver for specific tileset.json OGC 3D Tiles manifest (separate
// spec from OGC 3D GeoVolumes) or the equivalent manifest (layer.json) for a quantized mesh
func (t *ThreeDimensionalGeoVolumes) ExplicitTileset() http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
tileSetName := chi.URLParam(r, "explicitTileSet")
Expand Down

0 comments on commit 610fa70

Please sign in to comment.