lraveri/geojson-converter
最新稳定版本:v1.2.0
Composer 安装命令:
composer require lraveri/geojson-converter
包简介
README 文档
README
Description
geojson-converter is a PHP library for converting GPX and KML files into GeoJSON format. This library is particularly useful for projects that require a quick and reliable conversion of mapping file formats.
Installation
To install geojson-converter, use the following command in your project:
composer require lraveri/geojson-converter
Usage
Converting GPX Files to GeoJSON
To convert a GPX file to GeoJSON:
$content = file_get_contents('/path/to/file.gpx'); $gpxConverter = new GpxConverter($content); $geoJson = $gpxConverter->convert();`
Converting KML Files to GeoJSON
To convert a KML file to GeoJSON:
$content = file_get_contents('/path/to/file.kml'); $kmlConverter = new KmlConverter($content); $geoJson = $kmlConverter->convert();`
Requirements
- PHP 7.1 or higher.
Contributing
Interested in contributing? Fantastic! You can open a pull request or an issue on the GitHub repository.
License
This project is released under the MIT License. See the LICENSE file for more details.
Support
If you have any questions or issues, feel free to create an issue on the GitHub repository.
统计信息
- 总下载量: 1.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-01-25