section1965/sectioncalculator

Pulkovo 1942(58) / Poland zone section calculator

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

This package is not auto-updated.

Last update: 2024-10-07 15:11:36 UTC


README

Build Status

Synopsis

Calculates map section number from coordinates in Pulkovo 1942(58) / Poland. Called 'układ 1965'. Based on:

Code Example

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

Motivation

This project solves the issue of missing full number names by adding estimated correct section number at the beginning.

Contribution

Feel free to fork and submit changes.

Installation via Composer

{
		"require": {
    			"section1965/sectioncalculator": "dev-master"
	 }
}

Tests

Run with composer autoloader.

phpunit

License

The MIT License (MIT)