Skip to content

[BUG] tilejson.json API create http protocol link in tiles property #55

@JinIgarashi

Description

@JinIgarashi

Description

the protocol of URL in tiles property is http in the response of tilejson.json endpoint. Because of this /cog/map page in titiler does not work.

  • /cog/map URL example

https://titiler-dev.undpgeohub.org/cog/map?tileMatrixSetId=WebMercatorQuad&tile_scale=1&url=https://undpgeohub.blob.core.windows.net/geo-nightlights/test/SVDNB_npp_merged_20231229_20240101.vrt&algorithm=rca&algorithm_params=%7B%22cloud_mask%22:true%7D&rescale=0,1&colormap_name=viridis&return_mask=true

Example

an example URL of tilejson.json

https://titiler-dev.undpgeohub.org/cog/WebMercatorQuad/tilejson.json?tileMatrixSetId=WebMercatorQuad&tile_scale=1&url=https%3A%2F%2Fundpgeohub.blob.core.windows.net%2Fgeo-nightlights%2Ftest%2FSVDNB_npp_merged_20231229_20240101.vrt&algorithm=rca&algorithm_params=%7B%22cloud_mask%22%3Atrue%7D&rescale=0%2C1&colormap_name=viridis&return_mask=true

response

{
   "tilejson":"2.2.0",
   "version":"1.0.0",
   "scheme":"xyz",
   "tiles":[
      "http://titiler-dev.undpgeohub.org/cog/tiles/WebMercatorQuad/{z}/{x}/{y}@1x?url=https%3A%2F%2Fundpgeohub.blob.core.windows.net%2Fgeo-nightlights%2Ftest%2FSVDNB_npp_merged_20231229_20240101.vrt&algorithm=rca&algorithm_params=%7B%22cloud_mask%22%3Atrue%7D&rescale=0%2C1&colormap_name=viridis&return_mask=true"
   ],
   "minzoom":0,
   "maxzoom":8,
   "bounds":[
      -179.99999590682978,
      -65.00263540226379,
      179.9996872808643,
      75.00208333335
   ],
   "center":[
      -0.00015431298274393157,
      4.9997239655431045,
      0
   ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions