maptiler / tileserver-php

MBTiles and MapTiler folder hosting with TileJSON, OGC WMTS, UTFGrid interaction and web interface. QGIS & ESRI ArcGIS compatible. Runs on any Apache+PHP webhosting. MapBox Studio Vector Tiles hosting.
http://tileserver.maptiler.com/
568 stars 163 forks source link

mbtiles from QGIS? #145

Closed Skipper-is closed 5 years ago

Skipper-is commented 5 years ago

I've tried to export some mbtiles from QGIS, to open in Tileserver. The maps are present on the list: image But when I open them, there is no data: image The tileserver.json also returns: TileServer: unknown map tileserver Don't know whether there are any dependencies I'm missing. I think I've got Sqlite3 (and the php mod as well), anything else (and any way of testing)?

If I reimport the tiles into QGIS, they work fine in QGIS

daliborjanak commented 5 years ago

Can you send us the link to the server and better to upload non-working data?

Skipper-is commented 5 years ago

The server is at this link And I have also uploaded the data to: This address The process I have been through to get the data is: In QGIS - Reprojected some data (geoTIFF) from EPSG:27700 to EPSG:3857 (gdalwarp) Then exported it to a .mbtile using gdal_translate -of MBTiles I don't know whether I'm missing a dependency? Can confirm I'm running php7.1, with php7.1-sqlite3, I Apache2 rewrite mod is enabled: Enabling module rewrite.

daliborjanak commented 5 years ago

You have wrongly configured appache or path in htacces. It works that you are running the script directly: https://home.skipper-iwb.co.uk/tileserver/tileserver.php?/CollegeDSM/#CollegeDSM/ol3

So there is no issue with displaying QGIS tiles in tileserver-php

Skipper-is commented 5 years ago

Ok, how are they supposed to be configured? I just used the default .htaccess file that came with

daliborjanak commented 5 years ago

Configure path manually https://github.com/klokantech/tileserver-php/blob/master/tileserver.php#L15 or use RewriteBase https://github.com/klokantech/tileserver-php/blob/master/.htaccess#L9