phpmyadmin/shapefile
Composer 安装命令:
composer require phpmyadmin/shapefile
包简介
ESRI ShapeFile library for PHP
关键字:
README 文档
README
ShapeFile library for PHP
Features
This library supports the 2D and 3D variants, except MultiPatch, of the ShapeFile format as defined in https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf. It can read and edit ShapeFiles and the associated information (DBF file). There are a lot of things that can be improved in the code, if you are interested in developing, helping with the documentation, making translations or offering new ideas please contact us.
Installation
Please use Composer to install:
composer require phpmyadmin/shapefile
To be able to read and write the associated DBF file you need the dbase
extension:
pecl install dbase echo "extension=dbase.so" > /etc/php8/conf.d/dbase.ini
Documentation
API documentation is available at https://develdocs.phpmyadmin.net/shapefile/.
Usage
To read a shape file:
use PhpMyAdmin\ShapeFile\ShapeFile; use PhpMyAdmin\ShapeFile\ShapeType; $shp = new ShapeFile(ShapeType::Null); $shp->loadFromFile('path/file.*');
History
This library is based on BytesFall ShapeFiles library written by Ovidio (ovidio AT users.sourceforge.net). It has been embedded in phpMyAdmin for years and slowly developed there. At one point people started to use our version rather than the original library and that was when we decided to make it a separate package.
phpmyadmin/shapefile 适用场景与选型建议
phpmyadmin/shapefile 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.52M 次下载、GitHub Stars 达 28, 最近一次更新时间为 2016 年 06 月 14 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「geo」 「geospatial」 「Shapefile」 「shp」 「dbf」 「shape」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 phpmyadmin/shapefile 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 phpmyadmin/shapefile 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 phpmyadmin/shapefile 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP library to read and write ESRI Shapefiles, compatible with WKT and GeoJSON
QuadTree implementation in PHP
A PHP library to parse ESRI Shape files
Show geo marker on a mapbox map
Show geo shape on a mapbox map with drawing capabilities
GeoJSON implementation for PHP
统计信息
- 总下载量: 1.52M
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 29
- 点击次数: 31
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2016-06-14