Geo::Coordinates::KKJ - converts Finnish Coordinate System from/to WGS84 coordinate system
use Geo::Coordinates::KKJ; # KKJ Basic Coordinate System to WGS84 coordinates my ( $lat, $lon ) = KKJxy_to_WGS84lalo('6717563', '2545107'); # WGS84 coordinates to KKJ Basic Coordinate System my ( $x, $y ) = WGS84lalo_to_KKJxy('60.22543759', '24.85437044');
This module converts WGS84 coordinate system to/from KKJ Basic Coordinate System (in Finnish 'Peruskoordinaatisto')
For more information about the Finnish coordinate system please visit http://www.kolumbus.fi/eino.uikkanen/geodocsgb/ficoords.htm
The Perl module has been adapted from a Python module from Olli Lammi http://aapo.rista.net/tmp/coordinates.py Olli's module is in turn based on Matti Aarnio's work http://www.viestikallio.fi/tools/kkj-wgs84.php?LANG=en
The transformation might contain a precision error of about 0.5m - 2m
Transforms KKJ Basic Coordinate System to WGS84 coordinates
Transforms WGS84 coordinates to KKJ Basic Coordinate System
Transforms from KKJ Basic Coordinate System to KKJ geographic coordinates
Transforms from KKJ geographic coordinates to KKJ Basic Coordinate System
Transforms KKJ geographic coordinates to WGS84 coordinates
Transforms from WGS84 coordinates to KKJ geographic coordinates
Determines the correct KKJ-grid zone
Determine the zonenumber from KKJ easting takes KKJ zone which has center meridian longitude nearest (in math value) to the given KKJ longitude
Good explanation about the finnish coordinate system and its history http://www.kolumbus.fi/eino.uikkanen/geodocsgb/ficoords.htm (in English)
Transforming between different coordinate systems http://kansalaisen.karttapaikka.fi/koordinaatit/koordinaatit.html?lang=en
Josep Roca, <quelcom@gmail.com>
Copyright (C) 2010 by Josep Roca
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.1 or, at your option, any later version of Perl 5 you may have available.
To install Geo::Coordinates::KKJ, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Geo::Coordinates::KKJ
CPAN shell
perl -MCPAN -e shell install Geo::Coordinates::KKJ
For more information on module installation, please visit the detailed CPAN module installation guide.