Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
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 drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-07-03 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (54 votes), past polls