Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Speeding up ... (O(N) determination of point in polygon regardless of complexity)

by BrowserUk (Pope)
on Aug 28, 2006 at 20:05 UTC ( #570038=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #! perl -slw
    use strict;
    ...
    print IMG $map->png;
    close IMG;
    
  2. or download this
    #! perl -slw
    use strict;
    ...
    open POINTS, '>', '569929.points' or die $!;
    printf POINTS "%d:%d\n", int( rand 5000 ), int( rand 5000 ) for 1 .. 5
    +.25e6;
    close POINTS;
    
  3. or download this
    #! perl -slw
    use strict;
    ...
    $T->report;
    
    close POINTS;
    
  4. or download this
    c:\test>569929-b
    1 trial of 5,25e6 points in 2.5e5 polys (33.094s total)
    ...
    c:\test>569929-b
    1 trial of 5.25e6 points in 2.5e5 polys (33.734s total)
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2014-09-23 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls