section1965 / sectioncalculator
普尔科沃1942(58) / 波兰区域分区计算器
v1.0
2016-11-06 01:04 UTC
Requires
- php: ^5.6.0 || ^7.0
Requires (Dev)
- phpunit/phpunit: 5.6.*
This package is not auto-updated.
Last update: 2024-09-23 14:59:42 UTC
README
概述
从普尔科沃1942(58) / 波兰坐标计算地图分区编号。称为'układ 1965'。基于
- https://pl.wikipedia.org/wiki/Uk%C5%82ad_wsp%C3%B3%C5%82rz%C4%99dnych_1965
- http://www.numerus.net.pl/godla_1965.html
- http://www.wodgik.katowice.pl/html/definicje/definicje.htm
- http://www.numerus.net.pl/godla_zasadnicza.html
代码示例
// Use a PSR-4 autoloader.
include("vendor/autoload.php");
use Section1965\SectionCalculator;
$point = new SectionCalculator(5585782.900,4527912.960);
$point->setProjection('EPSG:3120'); // zone 1
$point->getFullSection(); // returns '112.232'
$point->getFullSectionByScale(25000); // returns '112.23'
动机
该项目通过在开头添加估计的正确分区编号来解决缺少完整编号名称的问题。
贡献
请随意分支并提交更改。
通过Composer安装
{
"require": {
"section1965/sectioncalculator": "dev-master"
}
}
测试
使用Composer自动加载器运行。
phpunit
许可
MIT许可 (MIT)