定制 longitude-one/spatial-types 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

longitude-one/spatial--types Stable release Minimum PHP Version Packagist License

Last integration test Last integration test Maintainability Downloads Coverage 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-01