geo tigerline record b 0.02
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1150
Geo::TigerLine::Record::B 0.02
Geo::TigerLine::Record::B is a TIGER/Line 2003 Polygon Geographic Entity Codes: Corrections. more>>
Geo::TigerLine::Record::B is a TIGER/Line 2003 Polygon Geographic Entity Codes: Corrections.
SYNOPSIS
use Geo::TigerLine::Record::B;
@records = Geo::TigerLine::Record::B->parse_file($fh);
@records = Geo::TigerLine::Record::B->parse_file($fh, &callback);
$record = Geo::TigerLine::Record::B->new(%fields);
$record->rt();
$record->version();
$record->file();
$record->cenid();
$record->polyid();
$record->statecq();
$record->countycq();
$record->tractcq();
$record->blockcq();
$record->aianhhfpcq();
$record->aianhhcq();
$record->aihhtlicq();
$record->aitscecq();
$record->aitscq();
$record->anrccq();
$record->concitcq();
$record->cousubcq();
$record->submcdcq();
$record->placecq();
$record->uacc();
$record->urcc();
$record->rs_b1();
This is a class representing record type B of the TIGER/Line 2003 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type B files and turn them into objects.
This is intended as an intermediate format between pulling the raw data out of the simplistic TIGER/Line data files into something more sophisticated (a process you should only have to do once). As such, its not very fast, but its careful, easy to use and performs some verifications on the data being read.
As this class is autogenerated by mk_parsers, think before you modify this file. Its OO, so consider sub-classing instead.
<<lessSYNOPSIS
use Geo::TigerLine::Record::B;
@records = Geo::TigerLine::Record::B->parse_file($fh);
@records = Geo::TigerLine::Record::B->parse_file($fh, &callback);
$record = Geo::TigerLine::Record::B->new(%fields);
$record->rt();
$record->version();
$record->file();
$record->cenid();
$record->polyid();
$record->statecq();
$record->countycq();
$record->tractcq();
$record->blockcq();
$record->aianhhfpcq();
$record->aianhhcq();
$record->aihhtlicq();
$record->aitscecq();
$record->aitscq();
$record->anrccq();
$record->concitcq();
$record->cousubcq();
$record->submcdcq();
$record->placecq();
$record->uacc();
$record->urcc();
$record->rs_b1();
This is a class representing record type B of the TIGER/Line 2003 census geographic database. Each object is one record. It also contains methods to parse TIGER/Line record type B files and turn them into objects.
This is intended as an intermediate format between pulling the raw data out of the simplistic TIGER/Line data files into something more sophisticated (a process you should only have to do once). As such, its not very fast, but its careful, easy to use and performs some verifications on the data being read.
As this class is autogenerated by mk_parsers, think before you modify this file. Its OO, so consider sub-classing instead.
Download (0.040MB)
Added: 2006-07-04 License: Perl Artistic License Price:
1207 downloads
Geo::Inverse 0.05
Geo::Inverse is a Perl module to calculate geographic distance from a lat & lon pair. more>>
Geo::Inverse is a Perl module to calculate geographic distance from a lat & lon pair.
SYNOPSIS
use Geo::Inverse;
my $obj = Geo::Inverse->new(); # default "WGS84"
my ($lat1,$lon1,$lat2,$lon2)=(38.87, -77.05, 38.95, -77.23);
my ($faz, $baz, $dist)=$obj->inverse($lat1,$lon1,$lat2,$lon2); #array context
my $dist=$obj->inverse($lat1,$lon1,$lat2,$lon2); #scalar context
print "Input Lat: $lat1 Lon: $lon1n";
print "Input Lat: $lat2 Lon: $lon2n";
print "Output Distance: $distn";
print "Output Forward Azimuth: $fazn";
print "Output Back Azimuth: $bazn";
This module is a pure Perl port of the NGS program in the public domain "inverse" by Robert (Sid) Safford and Stephen J. Frakes.
CONSTRUCTOR
new
The new() constructor may be called with any parameter that is appropriate to the ellipsoid method which establishes the ellipsoid.
my $obj = Geo::Inverse->new(); # default "WGS84"
METHODS
ellipsoid
Method to set or retrieve the current ellipsoid object. The ellipsoid is a Geo::Ellipsoids object.
my $ellipsoid=$obj->ellipsoid; #Default is WGS84
$obj->ellipsoid(Clarke 1866); #Built in ellipsoids from Geo::Ellipsoids
$obj->ellipsoid({a=>1}); #Custom Sphere 1 unit radius
inverse
This method is the user frontend to the mathematics. This interface will not change in future versions.
my ($faz, $baz, $dist)=$obj->inverse($lat1,$lon1,$lat2,$lon2);
<<lessSYNOPSIS
use Geo::Inverse;
my $obj = Geo::Inverse->new(); # default "WGS84"
my ($lat1,$lon1,$lat2,$lon2)=(38.87, -77.05, 38.95, -77.23);
my ($faz, $baz, $dist)=$obj->inverse($lat1,$lon1,$lat2,$lon2); #array context
my $dist=$obj->inverse($lat1,$lon1,$lat2,$lon2); #scalar context
print "Input Lat: $lat1 Lon: $lon1n";
print "Input Lat: $lat2 Lon: $lon2n";
print "Output Distance: $distn";
print "Output Forward Azimuth: $fazn";
print "Output Back Azimuth: $bazn";
This module is a pure Perl port of the NGS program in the public domain "inverse" by Robert (Sid) Safford and Stephen J. Frakes.
CONSTRUCTOR
new
The new() constructor may be called with any parameter that is appropriate to the ellipsoid method which establishes the ellipsoid.
my $obj = Geo::Inverse->new(); # default "WGS84"
METHODS
ellipsoid
Method to set or retrieve the current ellipsoid object. The ellipsoid is a Geo::Ellipsoids object.
my $ellipsoid=$obj->ellipsoid; #Default is WGS84
$obj->ellipsoid(Clarke 1866); #Built in ellipsoids from Geo::Ellipsoids
$obj->ellipsoid({a=>1}); #Custom Sphere 1 unit radius
inverse
This method is the user frontend to the mathematics. This interface will not change in future versions.
my ($faz, $baz, $dist)=$obj->inverse($lat1,$lon1,$lat2,$lon2);
Download (0.004MB)
Added: 2007-05-18 License: Perl Artistic License Price:
889 downloads
PerlIO 0.02
PerlIO is a Perl module created to load on demand PerlIO layers and root of PerlIO::* name space. more>>
PerlIO is a Perl module created to load on demand PerlIO layers and root of PerlIO::* name space.
SYNOPSIS
open($fh,":utf8", "data.utf");
print F $out;
close(F);
open(F, "<<less
SYNOPSIS
open($fh,":utf8", "data.utf");
print F $out;
close(F);
open(F, "<<less
Download (0.014MB)
Added: 2007-05-14 License: Perl Artistic License Price:
893 downloads
Geo::Track::Log 0.02
Geo::Track::Log is a Perl module that represent track logs and find a location based on a track log and a date. more>>
Geo::Track::Log is a Perl module that represent track logs and find a location based on a track log and a date.
SYNOPSIS
use Geo::Track::Log;
my $log = new Geo::Track::Log;
# add a point to a track log.
$log->addPoint( {
timestamp => 2004-12-25 12:00:00,
lat => 0.0,
long=> 0.0,
} );
$log->addPoint( {
timestamp => 2004-12-25 13:00:00,
lat => 0.0,
long=> 1.0,
} );
Get our location at a time
my ($pt, $sPt, $ePt) = $log->whereWasI(2004-12-25 12:30:00);
or (a synonym)
my ($pt, $sPt, $ePt) = $log->interpolate(2004-12-25 12:30:00);
(see DESCRIPTION for more)
Load tracklog from a Garnix format file
$log->loadTrackFromGarnix(file handle);
Load Waypoint from a Garnix format file
$log->loadWayFromGarnix(file handle);
Fix the funky Garnix line format
my $pt = $log->fixGarnixTrackLine ( qq( 44? 3 33.23" -123? 5 0.07" 148.0 WGS84 00:50:19-2004/07/12 [1];) )
Load a GPX (GPS XML) format file
$log->loadTrackFromGPX(file handle);
return the earliest point, by time
my $pt = $log->minTimeStamp();
return the latest point, by time
my $pt = $log->maxTimeStamp();
What percent of the way is time $d between the time at points $sPt and $dPt?
my $pct = $self->getPercent($d, $sPt, $ePt);
<<lessSYNOPSIS
use Geo::Track::Log;
my $log = new Geo::Track::Log;
# add a point to a track log.
$log->addPoint( {
timestamp => 2004-12-25 12:00:00,
lat => 0.0,
long=> 0.0,
} );
$log->addPoint( {
timestamp => 2004-12-25 13:00:00,
lat => 0.0,
long=> 1.0,
} );
Get our location at a time
my ($pt, $sPt, $ePt) = $log->whereWasI(2004-12-25 12:30:00);
or (a synonym)
my ($pt, $sPt, $ePt) = $log->interpolate(2004-12-25 12:30:00);
(see DESCRIPTION for more)
Load tracklog from a Garnix format file
$log->loadTrackFromGarnix(file handle);
Load Waypoint from a Garnix format file
$log->loadWayFromGarnix(file handle);
Fix the funky Garnix line format
my $pt = $log->fixGarnixTrackLine ( qq( 44? 3 33.23" -123? 5 0.07" 148.0 WGS84 00:50:19-2004/07/12 [1];) )
Load a GPX (GPS XML) format file
$log->loadTrackFromGPX(file handle);
return the earliest point, by time
my $pt = $log->minTimeStamp();
return the latest point, by time
my $pt = $log->maxTimeStamp();
What percent of the way is time $d between the time at points $sPt and $dPt?
my $pct = $self->getPercent($d, $sPt, $ePt);
Download (0.017MB)
Added: 2006-06-15 License: Perl Artistic License Price:
1226 downloads
Games::Mastermind::Solver::BruteForce 0.02
Games::Mastermind::Solver::BruteForce is a Master Mind puzzle solver. more>>
Games::Mastermind::Solver::BruteForce is a Master Mind puzzle solver.
SYNOPSIS
# See Games::Mastermind::Solver
Games::Mastermind::Solver::BruteForce uses the classical brute-force algorithm for solving Master Mind puzzles.
METHODS
remaining
$number = $player->remaining;
The number of possible solutions given the knowledge the player has accumulated.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
<<lessSYNOPSIS
# See Games::Mastermind::Solver
Games::Mastermind::Solver::BruteForce uses the classical brute-force algorithm for solving Master Mind puzzles.
METHODS
remaining
$number = $player->remaining;
The number of possible solutions given the knowledge the player has accumulated.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Download (0.004MB)
Added: 2007-01-04 License: Perl Artistic License Price:
1041 downloads
Geo::Shapelib 0.20
Geo::Shapelib is a Perl extension for reading and writing shapefiles as defined by ESRI. more>>
Geo::Shapelib is a Perl extension for reading and writing shapefiles as defined by ESRI.
SYNOPSIS
use Geo::Shapelib qw/:all/;
or
use Geo::Shapelib qw/:all/;
my $shapefile = new Geo::Shapelib {
Name => stations,
Shapetype => POINT,
FieldNames => [Name,Code,Founded];
FieldTypes => [String:50,String:10,Integer:8];
};
while ( ) {
chomp;
my($station,$code,$founded,$x,$y) = split /|/;
push @{$shapefile->{Shapes}},{ Vertices => [[$x,$y,0,0]] };
push @{$shapefile->{ShapeRecords}}, [$station,$code,$founded];
}
$shapefile->save();
This is a library for reading, creating, and writing shapefiles as defined by ESRI(r) using Perl. The Perl code uses Frank Warmerdams Shapefile C Library (http://shapelib.maptools.org/). The library is included in this distribution.
<<lessSYNOPSIS
use Geo::Shapelib qw/:all/;
or
use Geo::Shapelib qw/:all/;
my $shapefile = new Geo::Shapelib {
Name => stations,
Shapetype => POINT,
FieldNames => [Name,Code,Founded];
FieldTypes => [String:50,String:10,Integer:8];
};
while ( ) {
chomp;
my($station,$code,$founded,$x,$y) = split /|/;
push @{$shapefile->{Shapes}},{ Vertices => [[$x,$y,0,0]] };
push @{$shapefile->{ShapeRecords}}, [$station,$code,$founded];
}
$shapefile->save();
This is a library for reading, creating, and writing shapefiles as defined by ESRI(r) using Perl. The Perl code uses Frank Warmerdams Shapefile C Library (http://shapelib.maptools.org/). The library is included in this distribution.
Download (0.26MB)
Added: 2006-09-30 License: Perl Artistic License Price:
1121 downloads
Tie::Form 0.02
Tie::Form is a Perl module to access a machine readable database file that minics a hardcopy form. more>>
Tie::Form is a Perl module to access a machine readable database file that minics a hardcopy form.
SYNOPSIS
require Tie::Form;
#####
# Using support methods and file handle with
# the file subroutines such as open(), readline()
# print(), close()
#
tie *FORM_FILEHANDLE, Tie::Form, @options
$form = tied *FORM_FILEHANDLE;
#####
# Using support methods only, no file subroutines
#
$form = Tie::Form->new(@options);
$encoded_fields = $form->decode_record($record);
@fields = $form->decode_field($encoded_fields);
$encoded_fields = $form->encode_field (@fields);
$record = $form->encode_record($encoded_fields);
$record = $form->get_record();
####
# Subroutine interface
#
$encoded_fields = decode_record($record);
@fields = decode_field($encoded_fields);
$encoded_fields = encode_field (@fields);
$record = encode_record($encoded_fields);
If a subroutine or method will process a list of options, @options, that subroutine will also process an array reference, @options, [@options], or hash reference, %options, {@options}.
<<lessSYNOPSIS
require Tie::Form;
#####
# Using support methods and file handle with
# the file subroutines such as open(), readline()
# print(), close()
#
tie *FORM_FILEHANDLE, Tie::Form, @options
$form = tied *FORM_FILEHANDLE;
#####
# Using support methods only, no file subroutines
#
$form = Tie::Form->new(@options);
$encoded_fields = $form->decode_record($record);
@fields = $form->decode_field($encoded_fields);
$encoded_fields = $form->encode_field (@fields);
$record = $form->encode_record($encoded_fields);
$record = $form->get_record();
####
# Subroutine interface
#
$encoded_fields = decode_record($record);
@fields = decode_field($encoded_fields);
$encoded_fields = encode_field (@fields);
$record = encode_record($encoded_fields);
If a subroutine or method will process a list of options, @options, that subroutine will also process an array reference, @options, [@options], or hash reference, %options, {@options}.
Download (0.087MB)
Added: 2007-02-16 License: Perl Artistic License Price:
980 downloads
TechnoBar 0.02
TechnoBar is an extension which provides the ultimate Technorati reverse browsing experience. more>>
TechnoBar is an extension which provides the ultimate Technorati reverse browsing experience.
Techno(rati)Bar provides the ultimate "reverse" browsing experience by showing live Technorati content as sidebar on the web pages youre browsing.
TechnoBar will show blogs that link to the current site while browsing and open blogs by clicking on the sidebar entry.
<<lessTechno(rati)Bar provides the ultimate "reverse" browsing experience by showing live Technorati content as sidebar on the web pages youre browsing.
TechnoBar will show blogs that link to the current site while browsing and open blogs by clicking on the sidebar entry.
Download (0.019MB)
Added: 2007-04-18 License: MPL (Mozilla Public License) Price:
919 downloads
HTTP::Server::Simple::Recorder 0.02
HTTP::Server::Simple::Recorder is Perl module for mixin to record HTTP::Server::Simples sockets. more>>
HTTP::Server::Simple::Recorder is Perl module for mixin to record HTTP::Server::Simples sockets.
SYNOPSIS
package MyServer;
use base qw/HTTP::Server::Simple::Recorder HTTP::Server::Simple::CGI/;
sub recorder_prefix { "path/to/logs/record" } # defaults to /tmp/http-server-simple-recorder
# logs to path/to/logs/record.34244.1.in,
# path/to/logs/record.34244.1.out,
# path/to/logs/record.34244.2.in,
# path/to/logs/record.34244.2.out, etc, if 34244 is the PID of the server
This module allows you to record all HTTP communication between an HTTP::Server::Simple-derived server and its clients. It is a mixin, so it doesnt itself subclass HTTP::Server::Simple; you need to subclass from both HTTP::Server::Simple::Recorder and an actual HTTP::Server::Simple subclass, and HTTP::Server::Simple::Recorder should be listed first.
Every time a client connects to your server, this module will open a pair of files and log the communication between the file and server to these files. Each connection gets a serial number starting at 1. The filename used is >, then a period, then the connection serial number, then a period, then either "in" or "out". recorder_prefix defaults to /tmp/http-server-simple-recorder, but you can override that in your subclass. For example, you might want to include the process ID.
<<lessSYNOPSIS
package MyServer;
use base qw/HTTP::Server::Simple::Recorder HTTP::Server::Simple::CGI/;
sub recorder_prefix { "path/to/logs/record" } # defaults to /tmp/http-server-simple-recorder
# logs to path/to/logs/record.34244.1.in,
# path/to/logs/record.34244.1.out,
# path/to/logs/record.34244.2.in,
# path/to/logs/record.34244.2.out, etc, if 34244 is the PID of the server
This module allows you to record all HTTP communication between an HTTP::Server::Simple-derived server and its clients. It is a mixin, so it doesnt itself subclass HTTP::Server::Simple; you need to subclass from both HTTP::Server::Simple::Recorder and an actual HTTP::Server::Simple subclass, and HTTP::Server::Simple::Recorder should be listed first.
Every time a client connects to your server, this module will open a pair of files and log the communication between the file and server to these files. Each connection gets a serial number starting at 1. The filename used is >, then a period, then the connection serial number, then a period, then either "in" or "out". recorder_prefix defaults to /tmp/http-server-simple-recorder, but you can override that in your subclass. For example, you might want to include the process ID.
Download (0.011MB)
Added: 2007-01-25 License: Perl Artistic License Price:
1005 downloads
Tie::FormA 0.02
Tie::FormA is a Perl module that can access a machine readable database file that minics a hardcopy form. more>>
Tie::FormA is a Perl module that can access a machine readable database file that minics a hardcopy form.
SYNOPSIS
require Tie::FormA;
#####
# Using support methods and file handle with
# the file subroutines such as open(), readline()
# print(), close()
#
tie *FORM_FILEHANDLE, Tie::FormA, @options
$form = tied *FORM_FILEHANDLE;
#####
# Using support methods only, no file subroutines
#
$form = Tie::Form->new(@options);
$encoded_fields = $form->decode_record($record);
@fields = $form->decode_field($encoded_fields);
$encoded_fields = $form->encode_field (@fields);
$record = $form->encode_record($encoded_fields);
$record = $form->get_record();
####
# Subroutine interface
#
$encoded_fields = decode_record($record);
@fields = decode_field($encoded_fields);
$encoded_fields = encode_field (@fields);
$record = encode_record($encoded_fields);
If a subroutine or method will process a list of options, @options, that subroutine will also process an array reference, @options, [@options], or hash reference, %options, {@options}.
The Tie::FormA module provides a text database file suitable for local data such as private mailing lists. The Tie::FormA cannot provide a data warehouse shared by mulitple users.
<<lessSYNOPSIS
require Tie::FormA;
#####
# Using support methods and file handle with
# the file subroutines such as open(), readline()
# print(), close()
#
tie *FORM_FILEHANDLE, Tie::FormA, @options
$form = tied *FORM_FILEHANDLE;
#####
# Using support methods only, no file subroutines
#
$form = Tie::Form->new(@options);
$encoded_fields = $form->decode_record($record);
@fields = $form->decode_field($encoded_fields);
$encoded_fields = $form->encode_field (@fields);
$record = $form->encode_record($encoded_fields);
$record = $form->get_record();
####
# Subroutine interface
#
$encoded_fields = decode_record($record);
@fields = decode_field($encoded_fields);
$encoded_fields = encode_field (@fields);
$record = encode_record($encoded_fields);
If a subroutine or method will process a list of options, @options, that subroutine will also process an array reference, @options, [@options], or hash reference, %options, {@options}.
The Tie::FormA module provides a text database file suitable for local data such as private mailing lists. The Tie::FormA cannot provide a data warehouse shared by mulitple users.
Download (0.098MB)
Added: 2007-01-11 License: Perl Artistic License Price:
1016 downloads
PDL::Opt::NonLinear 0.02
PDL::Opt::NonLinear is a Perl module with non linear optimization routines. more>>
PDL::Opt::NonLinear is a Perl module with non linear optimization routines.
SYNOPSIS
use PDL::Opt::NonLinear;
$x = random(5);
$gx = rosen_grad($x);
$fx = rosen($x);
$xtol = pdl(1e-16);
$gtol = pdl(0.9);
$eps = pdl(1e-10);
$print = ones(2);
$maxit = pdl(long, 200);
$info = pdl(long,0);
sub fg_func{
my ($f, $g, $x) = @_;
$f .= rosen($x);
$g .= rosen_grad($x);
}
cgfam($fx, $gx, $x, $maxit, $eps, $xtol, $gtol,$print,$info,1,&fg_func);
<<lessSYNOPSIS
use PDL::Opt::NonLinear;
$x = random(5);
$gx = rosen_grad($x);
$fx = rosen($x);
$xtol = pdl(1e-16);
$gtol = pdl(0.9);
$eps = pdl(1e-10);
$print = ones(2);
$maxit = pdl(long, 200);
$info = pdl(long,0);
sub fg_func{
my ($f, $g, $x) = @_;
$f .= rosen($x);
$g .= rosen_grad($x);
}
cgfam($fx, $gx, $x, $maxit, $eps, $xtol, $gtol,$print,$info,1,&fg_func);
Download (0.24MB)
Added: 2007-07-05 License: Perl Artistic License Price:
841 downloads
Geo::Ellipsoids 0.14
Geo::Ellipsoids is a package for standard Geo:: ellipsoid a, b, f and 1/f values. more>>
Geo::Ellipsoids is a package for standard Geo:: ellipsoid a, b, f and 1/f values.
SYNOPSIS
use Geo::Ellipsoids;
my $obj = Geo::Ellipsoids->new();
$obj->set(WGS84); #default
print "a=", $obj->a, "n";
print "b=", $obj->b, "n";
print "f=", $obj->f, "n";
print "i=", $obj->i, "n";
print "e=", $obj->e, "n";
print "n=", $obj->n(45), "n";
CONSTRUCTOR
new
The new() constructor may be called with any parameter that is appropriate to the set method.
my $obj = Geo::Ellipsoid->new();
METHODS
set
Method sets the current ellipsoid. This method is called when the object is constructed (default is WGS84).
$obj->set(); #default WGS84
$obj->set(Clarke 1866); #All built in ellipsoids are stored in meters
$obj->set({a=>1, b=>1}); #Custom Sphere 1 unit radius
list
Method returns a list of known elipsoid names.
my @list=$obj->list;
my $list=$obj->list;
while (@$list) {
print "$_n";
}
a
Method returns the value of the semi-major axis.
my $a=$obj->a;
b
Method returns the value of the semi-minor axis.
my $b=$obj->b; #b=a(1-f)
f
Method returns the value of flatting
my $f=$obj->f; #f=(a-b)/a
i
Method returns the value of the inverse flatting
my $i=$obj->i; #i=1/f=a/(a-b)
invf
Method synonym for the i method
my $i=$obj->invf; #i=1/f
e
Method returns the value of the first eccentricity, e. This is the eccentricity of the earths elliptical cross-section.
my $e=$obj->e;
e2
Method returns the value of eccentricity squared (e.g. e^2). This is not the second eccentricity, e or e-prime see the "ep" method.
my $e=sqrt($obj->e2); #e^2 = f(2-f) = 2f-f^2 = 1-b^2/a^2
ep
Method returns the value of the second eccentricity, e or e-prime. The second eccentricity is related to the first eccentricity by the equation: 1=(1-e^2)(1+e^2).
my $ep=$obj->ep;
ep2
Method returns the square of value of second eccentricity, e (e-prime). This is more useful in almost all equations.
my $ep=sqrt($obj->ep2); #ep2=(ea/b)^2=e2/(1-e2)=a^2/b^2-1
n
Method returns the value of n given latitude (degrees). Typically represented by the Greek letter nu, this is the radius of curvature of the ellipsoid perpendicular to the meridian plane. It is also the distance from the point in question to the polar axis, measured perpendicular to the ellipsoids surface.
my $n=$obj->n($lat);
Note: Some define a variable n as (a-b)/(a+b) this is not that variable.
n_rad
Method returns the value of n given latitude (radians).
my $n=$obj->n_rad($lat);
rho
rho is the radius of curvature of the earth in the meridian plane.
my $rho=$obj->rho($lat);
rho_rad
rho is the radius of curvature of the earth in the meridian plane.
my $rho=$obj->rho_rad($lat);
polar_circumference
Method returns the value of the semi-minor axis times 2*PI.
my $polar_circumference=$obj->polar_circumference;
equatorial_circumference
Method returns the value of the semi-major axis times 2*PI.
my $equatorial_circumference=$obj->equatorial_circumference;
shortname
Method returns the shortname, which is the hash key, of the current ellipsoid
my $shortname=$obj->shortname;
longname
Method returns the long name of the current ellipsoid
my $longname=$obj->longname;
data
Method returns a hash reference for the ellipsoid definition data structure.
my $datastructure=$obj->data;
name2ref
Method returns a hash reference (e.g. {a=>6378137,i=>298.257223563}) when passed a valid ellipsoid name (e.g. WGS84).
my $ref=$obj->name2ref(WGS84)
<<lessSYNOPSIS
use Geo::Ellipsoids;
my $obj = Geo::Ellipsoids->new();
$obj->set(WGS84); #default
print "a=", $obj->a, "n";
print "b=", $obj->b, "n";
print "f=", $obj->f, "n";
print "i=", $obj->i, "n";
print "e=", $obj->e, "n";
print "n=", $obj->n(45), "n";
CONSTRUCTOR
new
The new() constructor may be called with any parameter that is appropriate to the set method.
my $obj = Geo::Ellipsoid->new();
METHODS
set
Method sets the current ellipsoid. This method is called when the object is constructed (default is WGS84).
$obj->set(); #default WGS84
$obj->set(Clarke 1866); #All built in ellipsoids are stored in meters
$obj->set({a=>1, b=>1}); #Custom Sphere 1 unit radius
list
Method returns a list of known elipsoid names.
my @list=$obj->list;
my $list=$obj->list;
while (@$list) {
print "$_n";
}
a
Method returns the value of the semi-major axis.
my $a=$obj->a;
b
Method returns the value of the semi-minor axis.
my $b=$obj->b; #b=a(1-f)
f
Method returns the value of flatting
my $f=$obj->f; #f=(a-b)/a
i
Method returns the value of the inverse flatting
my $i=$obj->i; #i=1/f=a/(a-b)
invf
Method synonym for the i method
my $i=$obj->invf; #i=1/f
e
Method returns the value of the first eccentricity, e. This is the eccentricity of the earths elliptical cross-section.
my $e=$obj->e;
e2
Method returns the value of eccentricity squared (e.g. e^2). This is not the second eccentricity, e or e-prime see the "ep" method.
my $e=sqrt($obj->e2); #e^2 = f(2-f) = 2f-f^2 = 1-b^2/a^2
ep
Method returns the value of the second eccentricity, e or e-prime. The second eccentricity is related to the first eccentricity by the equation: 1=(1-e^2)(1+e^2).
my $ep=$obj->ep;
ep2
Method returns the square of value of second eccentricity, e (e-prime). This is more useful in almost all equations.
my $ep=sqrt($obj->ep2); #ep2=(ea/b)^2=e2/(1-e2)=a^2/b^2-1
n
Method returns the value of n given latitude (degrees). Typically represented by the Greek letter nu, this is the radius of curvature of the ellipsoid perpendicular to the meridian plane. It is also the distance from the point in question to the polar axis, measured perpendicular to the ellipsoids surface.
my $n=$obj->n($lat);
Note: Some define a variable n as (a-b)/(a+b) this is not that variable.
n_rad
Method returns the value of n given latitude (radians).
my $n=$obj->n_rad($lat);
rho
rho is the radius of curvature of the earth in the meridian plane.
my $rho=$obj->rho($lat);
rho_rad
rho is the radius of curvature of the earth in the meridian plane.
my $rho=$obj->rho_rad($lat);
polar_circumference
Method returns the value of the semi-minor axis times 2*PI.
my $polar_circumference=$obj->polar_circumference;
equatorial_circumference
Method returns the value of the semi-major axis times 2*PI.
my $equatorial_circumference=$obj->equatorial_circumference;
shortname
Method returns the shortname, which is the hash key, of the current ellipsoid
my $shortname=$obj->shortname;
longname
Method returns the long name of the current ellipsoid
my $longname=$obj->longname;
data
Method returns a hash reference for the ellipsoid definition data structure.
my $datastructure=$obj->data;
name2ref
Method returns a hash reference (e.g. {a=>6378137,i=>298.257223563}) when passed a valid ellipsoid name (e.g. WGS84).
my $ref=$obj->name2ref(WGS84)
Download (0.007MB)
Added: 2007-05-18 License: Perl Artistic License Price:
890 downloads
Geo::Google 0.02
Geo::Google is a Perl module to perform geographical queries using Google Maps. more>>
Geo::Google is a Perl module to perform geographical queries using Google Maps.
SYNOPSIS
use strict;
use Data::Dumper;
use Geo::Google;
#My office
my $gonda_addr = 695 Charles E Young Dr S, Westwood, CA 90024;
#Stans Donuts
my $stans_addr = 10948 Weyburn Ave, Westwood, CA 90024;
#Instantiate a new Geo::Google object.
my $geo = Geo::Google->new();
#Create Geo::Google::Location objects. These contain
#latitude/longitude coordinates, along with a few other details
#about the locus.
my ( $gonda ) = $geo->location( address => $gonda_addr );
my ( $stans ) = $geo->location( address => $stans_addr );
print $gonda->latitude, " / ", $gonda->longitude, "n";
print $stans->latitude, " / ", $stans->longitude, "n";
#Create a Geo::Google::Path object.
my ( $donut_path ) = $geo->path($gonda,$stans);
#A path contains a series of Geo::Google::Segment objects with
#text labels representing turn-by-turn driving directions between
#the two loci.
my @segments = $donut_path->segments();
#This is the human-readable directions for the first leg of the
#journey.
print $segments[0]->text(),"n";
#Geo::Google::Segment objects contain a series of
#Geo::Google::Location objects -- one for each time the segment
#deviates from a straight line to the end of the segment.
my @points = $segments[1]->points;
print $points[0]->latitude, " / ", $points[0]->longitude, "n";
#Now how about some coffee nearby?
my @coffee = $geo->near($stans,coffee);
#Too many. How about some Coffee Bean & Tea Leaf?
@coffee = grep { $_->title =~ /Coffee.*?Bean/i } @coffee;
#Still too many. Lets find the closest with a little trig and
#a Schwartzian transform
my ( $coffee ) = map { $_->[1] }
sort { $a->[0] $b->[0] }
map { [ sqrt(
($_->longitude - $stans->longitude)**2
+
($_->latitude - $stans->latitude)**2
), $_ ] } @coffee;
Geo::Google provides access to the map data used by the popular Google Maps web application.
<<lessSYNOPSIS
use strict;
use Data::Dumper;
use Geo::Google;
#My office
my $gonda_addr = 695 Charles E Young Dr S, Westwood, CA 90024;
#Stans Donuts
my $stans_addr = 10948 Weyburn Ave, Westwood, CA 90024;
#Instantiate a new Geo::Google object.
my $geo = Geo::Google->new();
#Create Geo::Google::Location objects. These contain
#latitude/longitude coordinates, along with a few other details
#about the locus.
my ( $gonda ) = $geo->location( address => $gonda_addr );
my ( $stans ) = $geo->location( address => $stans_addr );
print $gonda->latitude, " / ", $gonda->longitude, "n";
print $stans->latitude, " / ", $stans->longitude, "n";
#Create a Geo::Google::Path object.
my ( $donut_path ) = $geo->path($gonda,$stans);
#A path contains a series of Geo::Google::Segment objects with
#text labels representing turn-by-turn driving directions between
#the two loci.
my @segments = $donut_path->segments();
#This is the human-readable directions for the first leg of the
#journey.
print $segments[0]->text(),"n";
#Geo::Google::Segment objects contain a series of
#Geo::Google::Location objects -- one for each time the segment
#deviates from a straight line to the end of the segment.
my @points = $segments[1]->points;
print $points[0]->latitude, " / ", $points[0]->longitude, "n";
#Now how about some coffee nearby?
my @coffee = $geo->near($stans,coffee);
#Too many. How about some Coffee Bean & Tea Leaf?
@coffee = grep { $_->title =~ /Coffee.*?Bean/i } @coffee;
#Still too many. Lets find the closest with a little trig and
#a Schwartzian transform
my ( $coffee ) = map { $_->[1] }
sort { $a->[0] $b->[0] }
map { [ sqrt(
($_->longitude - $stans->longitude)**2
+
($_->latitude - $stans->latitude)**2
), $_ ] } @coffee;
Geo::Google provides access to the map data used by the popular Google Maps web application.
Download (0.010MB)
Added: 2006-11-20 License: Perl Artistic License Price:
1068 downloads
Geo::Raster 0.42
Geo::Raster is a Perl extension for raster algebra. more>>
Geo::Raster is a Perl extension for raster algebra.
SYNOPSIS
use Geo::Raster;
or
use Geo::Raster qw(:types);
or
use Geo::Raster qw(:types :logics :db);
Geo::Raster is an object-oriented interface to libral, a C library for rasters and raster algebra. Geo::Raster makes using libral easy and adds some very useful functionality to it. libral rasters are in-memory for fast and easy processing. libral rasters can be created from GDAL rasters. GDAL provides access to rasters in many formats.
Geo::Raster also adds the required functionality to display rasters in Gtk2::Ex::Geo.
Each cell in raster/grid is assumed to be a square.
The grid point represents the center of the cell and not the area of the cell (when such distinction needs to be made). TODO: This needs more attention.
A grid is indexed like this:
j = 0..N-1
------------------>
.
i = 0..M-1 .
.
.
V
there is also a (x,y) world coordinate system
maxY ^
.
.
y .
minY .
------------------>
minX maxX
x
minX is the left edge of first cell in line. maxX is the right edge of the last cell in a line. minY and maxY represent similarly the boundaries of the raster.
<<lessSYNOPSIS
use Geo::Raster;
or
use Geo::Raster qw(:types);
or
use Geo::Raster qw(:types :logics :db);
Geo::Raster is an object-oriented interface to libral, a C library for rasters and raster algebra. Geo::Raster makes using libral easy and adds some very useful functionality to it. libral rasters are in-memory for fast and easy processing. libral rasters can be created from GDAL rasters. GDAL provides access to rasters in many formats.
Geo::Raster also adds the required functionality to display rasters in Gtk2::Ex::Geo.
Each cell in raster/grid is assumed to be a square.
The grid point represents the center of the cell and not the area of the cell (when such distinction needs to be made). TODO: This needs more attention.
A grid is indexed like this:
j = 0..N-1
------------------>
.
i = 0..M-1 .
.
.
V
there is also a (x,y) world coordinate system
maxY ^
.
.
y .
minY .
------------------>
minX maxX
x
minX is the left edge of first cell in line. maxX is the right edge of the last cell in a line. minY and maxY represent similarly the boundaries of the raster.
Download (0.087MB)
Added: 2007-06-27 License: Perl Artistic License Price:
853 downloads
Geo::Spline 0.16
Geo::Spline is a Perl module to calculate geographic locations between GPS fixes. more>>
Geo::Spline is a Perl module to calculate geographic locations between GPS fixes.
SYNOPSIS
use Geo::Spline;
my $p0={time=>1160449100.67, #seconds
lat=>39.197807, #degrees
lon=>-77.263510, #degrees
speed=>31.124, #m/s
heading=>144.8300}; #degrees clockwise from North
my $p1={time=>1160449225.66,
lat=>39.167718,
lon=>-77.242278,
speed=>30.615,
heading=>150.5300};
my $spline=Geo::Spline->new($p0, $p1);
my %point=$spline->point(1160449150);
print "Lat:", $point{"lat"}, ", Lon:", $point{"lon"}, "nn";
my @points=$spline->pointlist();
foreach (@points) {
print "Lat:", $_->{"lat"}, ", Lon:", $_->{"lon"}, "n";
}
This program was developed to be able to calculate the position between two GPS fixes using a 2-dimensional 3rd order polynomial spline.
f(t) = A + B(t-t0) + C(t-t0)^2 + D(t-t0)^3 #position in X and Y
f(t) = B + 2C(t-t0) + 3D(t-t0)^2 #velocity in X and Y
I did some simple Math (for an engineer with a math minor) to come up with these formulas to calculate the unknowns from our knowns.
A = x0 # when (t-t0)=0 in f(t)
B = v0 # when (t-t0)=0 in f(t)
C = (x1-A-B(t1-t0)-D(t1-t0)^3)/(t1-t0)^2 # solve for C from f(t)
C = (v1-B-3D(t1-t0)^2)/2(t1-t0) # solve for C from f(t)
D = (v1(t1-t0)+B(t1-t0)-2x1+2A)/(t1-t0)^3 # equate C=C then solve for D
<<lessSYNOPSIS
use Geo::Spline;
my $p0={time=>1160449100.67, #seconds
lat=>39.197807, #degrees
lon=>-77.263510, #degrees
speed=>31.124, #m/s
heading=>144.8300}; #degrees clockwise from North
my $p1={time=>1160449225.66,
lat=>39.167718,
lon=>-77.242278,
speed=>30.615,
heading=>150.5300};
my $spline=Geo::Spline->new($p0, $p1);
my %point=$spline->point(1160449150);
print "Lat:", $point{"lat"}, ", Lon:", $point{"lon"}, "nn";
my @points=$spline->pointlist();
foreach (@points) {
print "Lat:", $_->{"lat"}, ", Lon:", $_->{"lon"}, "n";
}
This program was developed to be able to calculate the position between two GPS fixes using a 2-dimensional 3rd order polynomial spline.
f(t) = A + B(t-t0) + C(t-t0)^2 + D(t-t0)^3 #position in X and Y
f(t) = B + 2C(t-t0) + 3D(t-t0)^2 #velocity in X and Y
I did some simple Math (for an engineer with a math minor) to come up with these formulas to calculate the unknowns from our knowns.
A = x0 # when (t-t0)=0 in f(t)
B = v0 # when (t-t0)=0 in f(t)
C = (x1-A-B(t1-t0)-D(t1-t0)^3)/(t1-t0)^2 # solve for C from f(t)
C = (v1-B-3D(t1-t0)^2)/2(t1-t0) # solve for C from f(t)
D = (v1(t1-t0)+B(t1-t0)-2x1+2A)/(t1-t0)^3 # equate C=C then solve for D
Download (0.020MB)
Added: 2007-05-18 License: Perl Artistic License Price:
890 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above geo tigerline record b 0.02 search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed