olousouzian / atlasbundle
该包已被废弃,不再维护。未建议替代包。
Symfony 2.X 扩展包,用于方便地在 GPS 和 Lambert 坐标之间进行转换
1.0.1
2016-03-14 16:36 UTC
This package is not auto-updated.
Last update: 2024-07-03 23:42:45 UTC
README
内容
提供了一个 Symfony 2.X 扩展包,用于方便地在 GPS (WGS84) 和 Lambert 坐标之间进行转换。有关更多详细信息,请阅读以下链接
- https://en.wikipedia.org/wiki/Lambert_conformal_conic_projection
- http://www.ign.fr/sites/all/files/geodesie_projections.pdf
- http://geodesie.ign.fr/contenu/fichiers/documentation/pedagogiques/TransformationsCoordonneesGeodesiques.pdf
如何安装?
使用 Composer 进行安装
composer require olousouzian/atlasbundle
最后,将扩展包注册到 app/AppKernel
new Olousouzian\AtlasBundle\OlousouzianAtlasBundle(),
如何使用它?
辅助工具
$ app/console atlas:convert --help Usage: atlas:convert [options] Options: --format=FORMAT Output format like: lambertI, lambertII, lambertIIExtended, lambertIII, lambertIV, lambert93, all [default: "all"] --output[=OUTPUT] json [default: 1] --latitude=LATITUDE --longitude=LONGITUDE -h, --help Display this help message -q, --quiet Do not output any message -V, --version Display this application version --ansi Force ANSI output --no-ansi Disable ANSI output -n, --no-interaction Do not ask any interactive question -s, --shell Launch the shell. --process-isolation Launch commands from shell as a separate process. -e, --env=ENV The Environment name. [default: "dev"] --no-debug Switches off debug mode. -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Help: Convert WGS84 coordinates to Lambert coordinates
- 示例 获取里昂城市的所有 Lambert 坐标
$ app/console atlas:convert --latitude=45.7484600 --longitude=4.8467100
- 示例 以 JSON 格式获取里昂城市的 Lambert93 坐标
$ app/console atlas:convert --latitude=45.7484600 --longitude=4.8467100 --format=lambert93 --output=json {"Lambert93":{"x":843562.53347857,"y":6518219.0605733}}
许可证
本解决方案受 MIT 许可证保护。