search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Josep Roca > Geo-Coordinates-KKJ-0.01 > Geo::Coordinates::KKJ

Geo-Coordinates-KKJ-0.01.tar.gz

Dependencies

Annotate this POD

# CPAN RT

 Open 1
View/Report Bugs
Module Version: 0.01

# NAME

Geo::Coordinates::KKJ - converts Finnish Coordinate System from/to WGS84 coordinate system

# SYNOPSIS

```  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');```

# DESCRIPTION

This module converts WGS84 coordinate system to/from KKJ Basic Coordinate System (in Finnish 'Peruskoordinaatisto')

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

## Precision

The transformation might contain a precision error of about 0.5m - 2m

# FUNCTIONS

KKJxy_to_WGS84lalo(x, y)
`    Transforms KKJ Basic Coordinate System to WGS84 coordinates`
WGS84lalo_to_KKJxy(lat, lon)
`    Transforms WGS84 coordinates to KKJ Basic Coordinate System`
KKJxy_to_KKJlalo(x, y)
`    Transforms from KKJ Basic Coordinate System to KKJ geographic coordinates`
KKJlalo_to_KKJxy(lat, lon)
`    Transforms from KKJ geographic coordinates to KKJ Basic Coordinate System`
KKJlalo_to_WGS84lalo(lat, lon)
`    Transforms KKJ geographic coordinates to WGS84 coordinates`
WGS84lalo_to_KKJlalo(lat, lon)
`    Transforms from WGS84 coordinates to KKJ geographic coordinates`
KKJ_Zone_I(y)
`    Determines the correct KKJ-grid zone`
KKJ_Zone_Lo(lon)
```    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

# AUTHOR

Josep Roca, <quelcom@gmail.com>