section1965/sectioncalculator

普尔科沃1942(58) / 波兰区域分区计算器

v1.0 2016-11-06 01:04 UTC

This package is not auto-updated.

Last update: 2024-09-23 14:59:42 UTC


README

Build Status

概述

从普尔科沃1942(58) / 波兰坐标计算地图分区编号。称为'układ 1965'。基于

代码示例

// 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)