Cartography::Projection::GCTP - Perl extension for gctpc projection library (deprecated)


Cartography-Projection-GCTP documentation  | view source Contained in the Cartography-Projection-GCTP distribution.

Index


NAME

Top

Cartography::Projection::GCTP - Perl extension for gctpc projection library (deprecated)

SYNOPSIS

Top

  use Cartography::Projection::GCTP;

DESCRIPTION

Top

  Note: this module is only for compatibility with old applications that use GCTPc.
  All new projects should use Geo::Proj4 with is a wrapper around libproj4.

  my($out_x, $out_y) = Cartography::Projection::GCTP->projectCoordinatePair(
                $in_x, $in_y,
                $in_sys, $in_zone, $in_params, $in_unit, $in_datum,
                $out_sys, $out_zone, $out_params, $out_unit, $out_datum
  ) or die "Projection failed.  Error code is " . Cartography::Projection::GCTP->getErrorCode;

  See GCTP docs for explanation of parameters.  $in_params and $out_params are array
  references to the 15-element projection parameter arrays.

  Some non-exported constants are defined:
  Cartography::Projection::GCTP->P_*    projection codes
  Cartography::Projection::GCTP->U_*    unit codes

  For example, the Cartography::Projection::GCTP->P_GEO constant is the code for the geographic
  coordinate system.  See the GCTP docs for a complete list of projection codes.

EXPORT

None by default.

SEE ALSO

Top

The GCTPc library by the EROS Data Center.

AUTHOR

Top

Dan Stahlke <dstahlke@gi.alaska.edu>

COPYRIGHT AND LICENSE

Top


Cartography-Projection-GCTP documentation  | view source Contained in the Cartography-Projection-GCTP distribution.