Open klokan opened 8 years ago
Hi. I'm using php 5.4 behind nginx and fastCGI. (will eventually update to php 7). Was hoping to get this php tileserver to work with raster tiles, however, I don't understand how to get raster/.png support. I am able to get a nice vector based osm bright style applied via client. However, I could not figure out how to enable raster tiles. Is php-tileserver is only able to provide .pbf vector tiles from the .mbtiles? Is there a way to render raster tiles from .mbtiles and apply a style on the back end?
tilesrver-php is designed only for serving tiles. Raster or pbf. If you need to process raster map for tileserver use maptiler from www.maptiler.com. If you need to create raster tiles from pbf use https://github.com/klokantech/tileserver-gl
Thanks...perhaps I was confused by what stated in the doc.
Tiles produced by open-source GDAL2Tiles or MapTiler and tiles in .mbtiles files can be easily converted to required structure (XYZ with top-left origin and metadata.json file). The open-source utility mbutil produces exactly the required format.
I tried using mbutil to extract .mbtiles file downloaded from https://openmaptiles.org/. mbutil extracts the images and a metadata.json, but the tileserver-php script does not seem to know how to use the files once extracted. But it seems impossible that it could use the png's created since there would be no style applied by mbutil..right?
We never tried ts-php with mbutil. But this does not issue about that. You can open something like "mbutil data support" and give as non-working data. We can look at that
Docker should be upgraded to HHVM or latest PHP (running behind NGINX as FastCGI).
Ideally both monolith (all in one) + microservice (fastcgi only) docker should be prepared.
Inspiration from: https://github.com/klokan/iiifserver-build/tree/master/docker_monolith
Installation of HHVM: https://docs.hhvm.com/hhvm/installation/linux#debian-8-jessie