Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Aug 28, 2006 at 20:05 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://570038]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-24 16:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found