PHP code example of locr-company / vms2-tile-db-reader
1. Go to this page and download the library: Download locr-company/vms2-tile-db-reader library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
locr-company / vms2-tile-db-reader example snippets
use Locr\Lib\Vms2TileDbReader\DataType;
use Locr\Lib\Vms2TileDbReader\Sources\SQLite;
$tileDb = new SQLite('germany.sqlite');
$tileData = $tileDb->getRawData(x: 34686, y: 21566, z: 16, key: 'building', value: '*', type: DataType::Polygons);
header('Content-Type: application/octet-stream'); // The Content-Type is
bash
git clone [email protected]:locr-company/php-vms2-tile-db-reader.git
cd php-vms2-tile-db-reader && composer install