locr-company/vms2-tile-db-reader

用于从数据库中读取瓦片数据的类。

1.0.2 2023-10-16 13:03 UTC

This package is auto-updated.

Last update: 2024-09-30 06:49:19 UTC


README

php codecov Quality Gate Status github_workflow_status github_tag packagist

安装

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

基本用法

<?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;

开发

克隆仓库

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