longitude-one/spatial-types
最新稳定版本:0.0.1.alpha
Composer 安装命令:
composer require longitude-one/spatial-types
包简介
This library implements PHP spatial types: their interfaces and their geometric and geographic classes.
README 文档
README
Implement spatial PHP types and their geometric and geographic classes.
If you want to persist spatial data in a database, you should use the longitude-one/doctrine2-spatial package.
Current status
Installation
composer require longitude-one/spatial-types
Usage
use LongitudeOne\Spatial\Types\Geometry\Point; $point = new Point(1, 2); echo $point->getX(); // 1 echo $point->getY(); // 2 $lineString = new LineString([ new Point(1, 2), new Point(3, 4), new Point(5, 6), ], 4326); $lineString->getSrid(); // 4326
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-08-01