geo-io/wkt-parser
最新稳定版本:v1.0.1
Composer 安装命令:
composer require geo-io/wkt-parser
包简介
Well-known text (WKT) Parser.
关键字:
README 文档
README
A parser which transforms Well-known text (WKT) representations into geometric objects.
class MyFactory implements GeoIO\Factory { public function createPoint($dimension, array $coordinates, $srid = null) { return MyPoint($coordinates['x'], $coordinates['y']); } public function createLineString($dimension, array $points, $srid = null) { return MyLineString($points); } // ... } $factory = MyFactory(); $parser = new GeoIO\WKT\Parser\Parser($factory); $myLineString = $parse->parse('LINESTRING(1 2, 2 2, 1 1)');
Installation
Install through composer. Check the packagist page for all available versions.
composer require geo-io/wkt-parser
License
Copyright (c) 2014-2022 Jan Sorgalla. Released under the MIT License.
统计信息
- 总下载量: 35.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-12