1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-08-21 21:56:18 +02:00

79 Commits
v1.0 ... v2.0

Author SHA1 Message Date
Dalibor Janák
e4148733ed Empty tile response for jpg and webp 2016-05-03 23:36:31 +02:00
Dalibor Janák
c28d188e0d Empty tile response for jpg and webp 2016-05-03 23:21:40 +02:00
Dalibor Janák
ef5de0607d Unpack empty png tile PHP 5.2 compatible 2016-05-03 22:48:23 +02:00
Dalibor Janák
494669f5d7 Merge pull request #79 from ramunasd/patch-1
Faster and ~70% smaller empty png tile
2016-05-03 22:13:08 +02:00
Petr Pridal
4b53b4c351 Sample MBTiles file for OpenShift deploy 2016-05-03 17:15:54 +02:00
Petr Pridal
86a1c68888 Update .travis.yml 2016-04-23 00:34:40 +02:00
Petr Pridal
f834ec7fd9 Deploy to OpenShift via travis 2016-04-23 00:08:21 +02:00
Ramūnas Dronga
ac68e90870 Faster and ~70% smaller empty png tile 2016-04-18 21:25:38 +03:00
Dalibor Janák
bb48534fe3 Removing of useless code. 2016-03-21 13:42:53 +01:00
Dalibor Janák
c158bcbe57 Minor warning with some php configurations fixed. 2016-03-21 13:40:33 +01:00
Dalibor Janák
2dfd2fcb5f Max zoom of Mercator TileMatrixSet is affected with max of layers maxzoom (closes #76) 2016-03-21 10:59:29 +01:00
Dalibor Janák
6b4fb0fec7 WMTS url to tiles simplified for fastest tile serving 2016-03-07 14:57:29 +01:00
Dalibor Janák
8f2b068c4f Custom template implementation #31 2016-03-07 14:39:28 +01:00
Dalibor Janák
709ed4ffce Revert "Fix of utfgid detection"
This reverts commit 8f6a2ced68.
2016-03-07 14:00:29 +01:00
Dalibor Janák
7320f426a1 Autodetection fix or warning in router, closes #49 2016-03-04 13:28:05 +01:00
Dalibor Janák
2e36338720 Removed dependency of GlobalMercator class closes #74 2016-03-04 13:20:46 +01:00
Dalibor Janák
70159a5b29 Layer list improved 2016-03-04 12:07:37 +01:00
Dalibor Janák
fdeb010831 Get global vars via getenv 2016-03-01 19:17:46 +01:00
Dalibor Janák
8bbfa1d367 Config from eniviroment if is provided 2016-03-01 15:05:58 +01:00
Dalibor Janák
50630fe1c7 Get config from docker volumes if is provided 2016-03-01 11:57:18 +01:00
Dalibor Janák
8206bcccc7 GD module dependency closes #53 2016-02-29 20:21:13 +01:00
Dalibor Janák
d304b89eb2 Removed unused code 2016-02-29 14:19:09 +01:00
Dalibor Janák
87906da0c5 Correct detection of format closes #67 2016-02-29 14:16:17 +01:00
Dalibor Janák
92ddcb6e66 WMTS / TileJSON for remote tiles #69 2016-02-29 12:16:24 +01:00
Dalibor Janák
7efd117884 Merge pull request #71 from klokantech/customtiles
Customtiles
2016-02-29 09:52:13 +01:00
Dalibor Janák
e36a7e6a06 Fix of order of origin in geodetic profile 2016-02-26 08:51:47 +01:00
Dalibor Janák
7190e90845 Order of origin coords based on proj4 definition #70 2016-02-25 23:21:40 +01:00
Dalibor Janák
f3f2a995e5 Axis orientaton in wmts #70, bbox fix 2016-02-25 19:23:48 +01:00
Dalibor Janák
8233047097 Fixed bug in WGS84 tilematrixset 2016-02-24 20:18:06 +01:00
Dalibor Janák
46d79107e8 Minor code fixes 2016-02-24 18:55:42 +01:00
Dalibor Janák
a2162eeb99 Computation of matrix size 2016-02-18 16:49:48 +01:00
Dalibor Janák
27fc9a73ca Minor loop fixes 2016-02-18 08:43:49 +01:00
Dalibor Janák
4ff5d95a38 Code formating 2016-02-17 21:29:53 +01:00
Dalibor Janák
6da6b13fed Parse TileMatrixSet 2016-02-17 21:19:16 +01:00
Dalibor Janák
0609b25905 Refactoring of tilematrixsets creation 2016-02-17 20:29:39 +01:00
Dalibor Janák
ce485c6713 Allow to read metadata bounding box also as array 2016-02-17 11:39:16 +01:00
Dalibor Janák
ab7862209a Functions for parsing tilematrixset from json 2016-02-09 14:37:26 +01:00
Dalibor Janák
8b49aa2b8c Custom matrix sets generation refactring 2016-02-09 14:36:24 +01:00
Dalibor Janák
ea100ad8c2 Custom profile testing implemetation 2016-02-03 16:50:07 +01:00
Dalibor Janák
86527eeedb Merge branch 'customtiles' of https://github.com/klokantech/tileserver-php into customtiles 2016-02-03 15:24:43 +01:00
Dalibor Janák
3a9e74e3b0 Generate tilematrix sets from variables 2016-02-03 15:23:33 +01:00
Dalibor Janák
0446445248 Generate tilematrix sets from variables 2016-02-03 15:13:56 +01:00
Petr Pridal
853ca41ce0 Update travis badge + add docker hub badge 2016-02-02 15:26:11 +01:00
Petr Pridal
5b5f5e7905 Add .travis.yml to master 2016-02-02 15:21:02 +01:00
Dalibor Janák
b7960baaaa Travis status icon 2016-02-02 10:57:57 +01:00
Dalibor Janák
250512168c Fix of syntax error on PHP 5.2 (closes #63) 2016-02-01 20:51:03 +01:00
Dalibor Janák
6b5933e21f Utfgrid empty response bug fixed (related #62) 2016-01-26 22:55:34 +01:00
Dalibor Janák
f5408fd108 Utfgrid routing bug fixed 2016-01-26 22:31:12 +01:00
Dalibor Janák
dc26c831f1 Url for viewer switched to cdn. 2016-01-26 13:51:39 +01:00
Dalibor Janák
28aba6f9e2 Fix of utfgrid serving bug related with changes in #59 2016-01-25 18:32:07 +01:00
Dalibor Janák
8f6a2ced68 Fix of utfgid detection 2016-01-25 18:13:15 +01:00
Petr Pridal
79926b92fc Update README.md 2015-12-16 17:07:04 +01:00
Dalibor Janák
3343f80e09 404 with JSON message for not found tile #56 2015-12-15 16:27:28 +01:00
Dalibor Janák
c660ab8f41 Hybrid tile format support #59 2015-12-04 14:00:48 +01:00
Dalibor Janák
21d7a409fe Merge branch 'eyeNsky-master' 2015-12-01 23:06:12 +01:00
Dalibor Janák
abb4087942 Cleaning of image format choser for wmts #58 2015-12-01 23:03:54 +01:00
Dalibor Janák
0acdc04e32 Merge branch 'master' of https://github.com/eyeNsky/tileserver-php into eyeNsky-master 2015-12-01 22:32:46 +01:00
Petr Pridal
f9e801849e Implementation of MapBox vector tiles (MBTiles pbf) serving #42 2015-09-05 04:44:45 +02:00
Petr Pridal
e66e577d5d Merge pull request #52 from klokantech/large-mbtiles
Faster check for grids in large mbtiles file. Closes #51.
2015-08-13 13:58:16 +02:00
Petr Pridal
ffedfde75e Faster check for grids in large mbtiles file. Issue #51. 2015-08-12 18:01:28 +02:00
eyeNsky
b783c59585 add jpgpng support for ArcGIS Desktop 2015-04-02 08:19:48 -04:00
Petr Pridal
dd8d884bc6 Update README.md 2015-01-08 22:58:22 +01:00
Petr Pridal
8b4a5142e8 Update README.md 2014-12-05 12:27:55 +01:00
Dalibor Janák
53b379cd67 Empty tiles should have for @2x layers 512x512px Fixes #39 2014-08-15 01:01:35 +02:00
Petr Pridal
2bf8bf6d4b A bug introduced in #38 fixed (missing protocol in the WMTS Resource URL) 2014-08-12 17:23:41 +02:00
Petr Pridal
e4454b12be Merge pull request #38 from kurt-hectic/master
Protocol (such as HTTPS vs HTTP) of the request is used in the metadata
2014-08-12 17:13:15 +02:00
Timo Proescholdt
8002dbbb7d service metadata takes into account request protocol 2014-08-04 17:47:47 +02:00
dala
d4121d86d5 Router: Add support for @ in names of layers 2014-07-23 15:32:10 +02:00
dala
ea6e176ab3 Path to app problem fixed 2014-07-23 15:25:25 +02:00
Dalibor Janák
b13b8d98c8 Merge pull request #34 from Fil/patch-2
Autodetect minzoom, maxzoom and format for mbtiles
2014-07-23 13:42:04 +02:00
Dalibor Janák
f08d72262d CORS for tiles. 2014-06-27 09:19:26 +02:00
Dalibor Janák
4250eff554 Merge pull request #32 from Fil/patch-1
Check which .mbtiles files are readable
2014-06-23 14:44:02 +02:00
Fil
34ffddb765 Autodetect minzoom, maxzoom and format for mbtiles
* `format` is detected via JPEG's magic number `FFD8`
* `minzoom` and `maxzoom` are `min(zoom_level)` and `max(zoom_level)`
2014-06-20 23:15:01 +02:00
Fil
5d2662a6a3 Check which .mbtiles files are readable
In my setup some .mbtiles are links to an external hard drive - don't fail when the external drive is not connected. (Also this would allow to manage "publishing a map" via unix permission.)
2014-06-20 12:24:09 +02:00
dala
8dec7469f1 Bad links in the test were fixed. 2014-06-05 22:04:18 +02:00
dala
8170e02397 Strict standards error in PHP 5.4+ on function declarations Fixes #30 - Classes in server renamed. 2014-06-05 21:54:40 +02:00
dala
779e320dec Fixed problem with line break in MBtiles metadata. 2014-06-05 21:46:00 +02:00
dala
e226ae2cc3 URL encoding in tilejson. Problem with backslashes in url fixed. #29 2014-06-04 09:55:25 +02:00
Petr Pridal
61c866a521 Update README.md 2014-05-29 09:10:23 +02:00
3 changed files with 580 additions and 687 deletions

23
.travis.yml Normal file
View File

@@ -0,0 +1,23 @@
language: php
php:
- 5.3
- 5.4
- 5.5
- 5.6
- hhvm
script:
- php tileserver.php
after_success:
- wget https://github.com/klokantech/tileserver-php/releases/download/v0.1/grandcanyon.mbtiles
- git config --global user.email "travis@localhost.localdomain"
- git config --global user.name "Travis CI"
- git add --all
- git commit -am "Travis change"
deploy:
provider: openshift
user: osm2vectortiles@klokantech.com
password:
secure: hiWKBaqh/CMdnQ2qxsRSKYAnk4tP/q2J50TaO+2sH09x+0Q85ygfICCDrEx457xqmGW0e4zZPsL83mMPvGt5KJO6g9DIncj6BFhpZA0ysnRJ3X1fczTiVN5hQfqNpa+/YIrQ0whu1Ur/IfdYTtvArYhuAPeigCloumGk9gNgSIQ=
domain: tileserver
app: php
skip_cleanup: true

View File

@@ -1,5 +1,8 @@
TileServer PHP - OGC Web Map Tiling Server (WMTS)
=================================================
TileServer PHP: MapTiler and MBTiles maps via WMTS
==================================================
[![Build Status](https://travis-ci.org/klokantech/tileserver-php.svg)](https://travis-ci.org/klokantech/tileserver-php)
[![Docker Hub](https://img.shields.io/badge/docker-hub-blue.svg)](https://hub.docker.com/r/klokantech/tileserver-php/)
This server distributes maps to desktop, web, and mobile applications from
a standard Apache+PHP web hosting.
@@ -38,9 +41,9 @@ Requirements:
-------------
- Apache webserver (with mod_rewrite / .htaccess supported)
- PHP 5.2+
- PHP 5.2+ with SQLite module (php5-sqlite)
(or anther webserver implementing mod_rewrite rules and PHP)
(or another webserver implementing mod_rewrite rules and PHP)
Installation:
-------------
@@ -111,15 +114,11 @@ Supported protocols:
Exposed at http://[...]/layer/z/x/y.grid.json
To use the OGC WMTS services point your client (desktop or web) to the URL
To use the OGC WMTS standard point your client (desktop or web) to the URL
of 'directory' where you installed tileserver.php project with suffix "wmts".
For example: http://www.example.com/directory/wmts
You can also install the project into a root directory of a virtual server:
Then the address is: http://www.example.com/wmts
Similarly for another end points.
If you have installed the project into a root directory of a domain, then the address is: http://www.example.com/wmts
The supported WMTS requests includes:
@@ -133,7 +132,7 @@ GetTile RESTful/KVP:
http://[...]/layer/[ANYTHING-OPTIONAL][z]/[x]/[y].[ext]
http://[...]?service=wmts&request=getTile&layer=[layer]&tilematrix=[z]&tilerow=[y]&tilecol=[y]&format=[ext]
Another example requests are mentioned in the .htaccess.
Other example requests are mentioned in the .htaccess.
Performance from the web clients
--------------------------------
@@ -180,10 +179,10 @@ Password protection
HTTP Simple Authentication can be easily added to the server.
Edit the .htaccess and add these lines:
AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "Secure WMTS"
Require valid-user
AuthUserFile /full/path/to/.htpasswd
AuthType Basic
AuthName "Secure WMTS"
Require valid-user
Create a file called .htpasswd with user:password format.
You can use a command-line utility:
@@ -240,7 +239,7 @@ Tested WMTS/TMS clients
BSD License
-----------
Copyright (C) 2012 Klokan Technologies GmbH
Copyright (C) 2015 Klokan Technologies GmbH (http://www.klokantech.com/)
All rights reserved.
Redistribution and use in source and binary forms, with or without

File diff suppressed because it is too large Load Diff