Geo::C...es::ITM(3pm)
π Geo::C...es::ITM β the manual, but make it cute π
okay bestie, so this is the user-contributed Perl documentation for Geo::C...es::ITM and honestly? it's giving "tiny module, huge glow-up". let's get into it β¨
β¨ NAME β¨
Geo::Coordinates::ITM β it converts coordinates back and forth between lat/lon and Irish Transverse Mercator. that's the whole job. it does the job. slay π
πΈ VERSION πΈ
This doc describes Geo::Coordinates::ITM version 0.02. yes babes, we're on 0.02, it's vintage, it's iconic.
π SYNOPSIS π
use Geo::Coordinates::ITM qw( ll_to_grid grid_to_ll );
my ( $lat, $lon ) = grid_to_ll( $east, $north );
my ( $east, $north ) = ll_to_grid( $lat, $lon );
literally that's it. two functions, both directions, no drama π¦
π« DESCRIPTION π«
So what it does: it converts back and forth between Irish Transverse Mercator grid and WGS84. that's the vibe check and it passed β
Now the tea: the conversion code was stolen wholesale from <http://bit.ly/ZqpUA>. not "inspired by", not "adapted from" β wholesale. no cap. here's the actual source it came from:
http://svn.geograph.org.uk/svn/branches/british-isles/libs/geograph \
/conversionslatlong.class.php
and here's the important bit, bestie, do NOT forget this: nothing is exported by default. zero. nada. you have to ask for what you want. the exportable functions are ll_to_grid and grid_to_ll. that's the whole menu π
π₯ INTERFACE π₯
π§ ll_to_grid π§
Takes a latitude, longitude pair (that's WGS84, bestie) and converts it into an ITM easting and northing. it's giving "here's where you are, now in grid form":
my ( $east, $north ) = ll_to_grid( $lat, $lon );
π§ grid_to_ll π§
The reverse glow-up: takes an ITM easting, northing pair and hands you back a WGS84 latitude, longitude:
my ( $lat, $lon ) = grid_to_ll( $east, $north );
two directions, one module, periodt π
π BUGS π
found a bug? want a feature? pls don't suffer in silence, report it π
- email it to
bug-geo-coordinates-itm@rt.cpan.org, or - go through the web interface at <http://rt.cpan.org>
that's the whole escalation path, iykyk.
π AUTHOR π
Andy Armstrong <andy@hexten.net>
and, once more for the people in the back β code gratefully stolen from <http://bit.ly/ZqpUA>:
http://svn.geograph.org.uk/svn/branches/british-isles/libs/geograph \
/conversionslatlong.class.php
π LICENCE AND COPYRIGHT π
Copyright (c) 2009, Andy Armstrong <andy@hexten.net>.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. that's the legal bit and we respect it π
and that's the whole page, bestie! this was rendered by perl v5.36.0 on 2022-11-19, filed under Geo::C...es::ITM(3pm) π«Ά stay converting, stay iconic, mwah ππ
π¦ where this page comes from
- debian bookworm: libgeo-coordinates-itm-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libgeo-coordinates-itm-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libgeo-coordinates-itm-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libgeo-coordinates-itm-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libgeo-coordinates-itm-perl 0.02-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms