locr-company/vms2-tile-db-reader

A class for reading tile data from a database.

1.0.3 2024-11-22 11:31 UTC

README

php github_workflow_status codecov Quality Gate 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