locr-company/vms2-tile-db-reader

A class for reading tile data from a database.

1.0.2 2023-10-16 13:03 UTC

README

php codecov Quality Gate Status github_workflow_status github_tag packagist

Installation

cd /path/to/your/php/project
composer require locr-company/vms2-tile-db-reader

Basic Usage

<?php

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 required for the Web-App.
print $tileData;

Development

Clone the repository

git clone git@github.com:locr-company/php-vms2-tile-db-reader.git
cd php-vms2-tile-db-reader && composer install