Alien-Proj4
view release on metacpan or search on metacpan
lib/Alien/Proj4.pm view on Meta::CPAN
if( $#lines >= 2 ) {
foreach my $i ( 2 .. $#lines ) {
my $text = $lines[$i];
my @temp2 = split( /\s+/, $text );
my @params = grep( /.+/, @temp2 );
foreach my $param (@params) {
$param =~ s/=//;
$param =~ s/[,\[\]]//sg;
next if $param =~ /^and|or|Special|for|Madagascar|fixed|Earth|For|CH1903$/;
push(@proj_params, $param);
}
}
}
$hash->{PARAMS}->{PROJ} = \@proj_params;
# Can this projection do inverse?
$hash->{INVERSE} = ( $description =~ /no inv/ ) ? 0 : 1;
$info->{$projection} = $hash;
}
# A couple of overrides:
$info->{ob_tran}->{PARAMS}->{PROJ} =
[ 'o_proj', 'o_lat_p', 'o_lon_p', 'o_alpha', 'o_lon_c',
'o_lat_c', 'o_lon_1', 'o_lat_1', 'o_lon_2', 'o_lat_2' ];
$info->{nzmg}->{CATEGORIES} = [ 'fixed Earth' ];
return $info;
}
1;
__END__
=head1 NAME
Alien::Proj4 - Compile the PROJ library, version 4
=head1 BUILD STATUS
=begin HTML
<p>
<img src="https://img.shields.io/badge/perl-5.10+-blue.svg" alt="Requires Perl 5.10+" />
<a href="https://travis-ci.org/PDLPorters/Alien-Proj4"><img src="https://travis-ci.org/PDLPorters/Alien-Proj4.svg?branch=master" /></a>
<a href="https://ci.appveyor.com/project/mohawk2/alien-proj4"><img src="https://ci.appveyor.com/api/projects/status/re5a1bpkj153p45x?svg=true" /></a>
</p>
=end HTML
=head1 SYNOPSIS
use Alien::Proj4;
=head1 DESCRIPTION
PROJ is a generic coordinate transformation software. See L<https://proj4.org/about.html>.
This Alien package is probably most useful for compilation of other modules, e.g. L<PDLA::Rest>.
This is a fork of the main L<Alien::proj>, but with the major version fixed to 4.
Later versions of the proj code have changed their API, so this ensure stability until
dependent projects have updated.
The Proj library can be accessed from Perl code via the L<Geo::Proj4> package.
=head1 REPORTING BUGS
Please send any bugs, suggestions, or feature requests to
L<https://github.com/PDLPorters/Alien-Proj4/issues>.
=head1 SEE ALSO
L<Alien::proj>
L<Geo::Proj4>
L<Geo::GDAL::FFI>
L<Alien::geos::af>
=head1 AUTHORS
Shawn Laffan, E<lt>shawnlaffan@gmail.comE<gt>
=head1 COPYRIGHT AND LICENSE
Copyright 2018- by Shawn Laffan
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut
( run in 0.614 second using v1.01-cache-2.11-cpan-9bca49b1385 )