Code a Perl algorithm that verifies if a coordinate is within a polygon
$30-250 USD
货到付款
I need a small Perl function that will return either true or false upon verifying if a given parameter expressed as a lat and long coordinate, is inside or outside a given polygon.
For instance, if the following defines the area of a polygon:
Array ( [0] => Array ( [lat] => -32.805744732906874 [lng] => 146.07421875 ) [1] => Array ( [lat] => -34.361576287484176 [lng] => 148.07373046875 ) [2] => Array ( [lat] => -32.08257455954592 [lng] => 146.27197265625 ) )
...then the Perl function must then return true or false upon verifying if a coordinate such as:
Array ( [lat] => -23.508589226762282 [lng] => 142.75634765625 )
....is inside or not the polygon.
Details:
- The algorithm must be very precise, this is very important
- The polygon array can be hardcoded at the beginning of the script
- The coordinate to verify must be passed as a parameter to the function
- Source code shall contain comments
- There are plenty of examples on the web
Thank you
项目ID: #10975755
关于项目
授予:
Hi, I can help you, I have experience with this kind of problems ( computational geometry ). please let me know if you are interested in my proposal. Cheers, F.
有5名威客正在参与此工作的竞标,均价$141/小时
Hello I am Algorithm expert and interested in this project. I have reviewed your requirements and confident to handle this project perfectly. Please communicate to discuss further. Regards Anshu
I did this type of task , while making expert system for Indain Army in C++ this system predict longitude latitude on map co-ordinate best fit for communication.. i deal with polygon with related to water body and 更多