perspectivain/php-postgis
Composer 安装命令:
composer require perspectivain/php-postgis
包简介
A PHP Trait to convert Postgis coordinates to array and a PHP array to Postgis text
README 文档
README
A PHP Trait to convert Postgis coordinates to array and a PHP array to Postgis text.
Currently supports Point and Polygon types.
Usage
Use it as PHP trait.
<?php use perspectivain\postgis\PostgisTrait; class Customer extends ActiveRecord { use PostgisTrait; ... } ... $coordinates = $model->WktToArray('Polygon', 'city_coordinates'); $model->city_coordinates = $model->arrayToWkt('Polygon', $coordinates);
Installing
The preferred way to install this extension is through Composer.
{
"require": {
"perspectivain/php-postgis": "*"
}
}
统计信息
- 总下载量: 245
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-01-28