Geography-NationalGrid-TW
view release on metacpan or search on metacpan
lib/Geography/NationalGrid/TW.pm view on Meta::CPAN
=item GridReference
There is no grid reference in Taiwan datum. Grid related functions are disabled.
=item Latitude
The latitude of the point. Actually should be the latitude using the spheroid related to the grid projection but for most purposes the difference is not too great. Specify the amount in any of these ways: as a decimal number of degrees, a reference t...
=item Longitude
As for latitude, except that east is positive degrees, west is negative degrees.
=item Easting
The number of metres east of the grid origin, using grid east.
=item Northing
The number of metres north of the grid origin, using grid north.
=item Userdata
The value of this option is a hash-reference, which you can fill with whatever you want - typical usage might be to specify C<Userdata => { Name =E<gt> 'Dublin Observatory' }> but add whatever you want. Access using the data() method.
=back
=head1 METHODS
Most of these methods take no arguments. Some are inherited from Geography::NationalGrid
=over 4
=item latitude
Returns the latitude of the point in a floating point number of degrees, north being positive.
=item longitude
As latitude, but east is positive degrees.
=item easting
How many metres east of the origin the point is. The precision of this value depends on how it was derived, but is truncated to an integer number of metres.
=item northing
How many metres north of the origin the point is. The precision of this value depends on how it was derived, but is truncated to an integer number of metres.
=item deg2string( DEGREES )
Given a floating point number of degrees, returns a string of the form '51d 38m 34.34s'. Intended for formatting, like:
$self->deg2string( $self->latitude );
=item data( PARAMETER_NAME )
Returns the item from the Userdata hash whose key is the PARAMETER_NAME.
=item transform( PROJECTION )
Transform the point to the new projection, i.e. TWD67 to TWD97 or reverse. Return the point after transformation and keep original point intact. Uses the formula proposed by John Hsieh which is supposed to provide 2 meter accuracy conversions.
=back
=head1 ACCURACY AND PRECISION
The routines used in this code may not give you completely accurate results for various mathematical and theoretical reasons. In tests the results appeared to be correct, but it may be that under certain conditions the output
could be highly inaccurate. It is likely that output accuracy decreases further from the datum, and behaviour is probably divergent outside the intended area of the grid.
This module has been coded in good faith but it may still get things wrong. Hence, it is recommended that this module is used for preliminary calculations only, and that it is NOT used under any circumstance where its lack of accuracy could cause any...
=head1 REFERENCES
http://wiki.osgeo.org/wiki/Taiwan_datums
John Hsieh - http://gis.thl.ncku.edu.tw/coordtrans/coordtrans.aspx
=head1 AUTHOR AND COPYRIGHT
Copyright (c) 2006 Yen-Ming Lee C<< <leeym@leeym.com> >>. All rights reserved.
This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
=cut
( run in 0.740 second using v1.01-cache-2.11-cpan-97f6503c9c8 )