Skip to content

Commit f27ff59

Browse files
committed
Add test to verify TM35FIN works as expected. Fixes #74
1 parent 647df27 commit f27ff59

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

tests/CoordinateOperation/AutoConversionTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,6 +551,17 @@ public function testIRENET95TM75(): void
551551
self::assertEqualsWithDelta(234667.6783, $to->getNorthing()->getValue(), 0.001);
552552
}
553553

554+
public function testWGS84toTM35FIN(): void
555+
{
556+
$from = GeographicPoint::create(Geographic2D::fromSRID(Geographic2D::EPSG_WGS_84), new Degree(60.80073449569994), new Degree(21.40466790832606));
557+
$toCRS = Projected::fromSRID(Projected::EPSG_ETRS89_TM35FIN_E_N);
558+
$to = $from->convert($toCRS);
559+
560+
self::assertEqualsWithDelta(195731.2099, $to->getEasting()->getValue(), 0.001);
561+
self::assertEqualsWithDelta(6753576.3603, $to->getNorthing()->getValue(), 0.001);
562+
self::assertEquals(0.11, $to->getAccuracy()->getValue());
563+
}
564+
554565
public function testRDNAPToITRF2014(): void
555566
{
556567
if (!class_exists(GTXETRS89NAPProvider::class)) {

0 commit comments

Comments
 (0)