# Intersecting Spherical Polygons

I would like some code that finds the intersection of two spherical polygons. For simplicity, consider both polygons to be on the surface of earth -- which, also for simplicity, should be considered a perfect sphere.

The software input is two text files. Each text file contains a listing of coordinates of a single polygon.

Find the intersection of the two polygons and provide the result. The result will either be no intersection, a polygon, or multiple polygons. If the result is a polygon are multiple polyongs, create text files in the same format as the input.

No user interface is needed. You can make the text files have static names and always be in static locations (like c:[url removed, login to view]).

Some relevant information can be found online by googling &quot;intersecting spherical polygons&quot;. These sources may be useful for someone with a good engineering or mathematics background. Please do account for the spherical nature of the problem (the flat surface version of the problem is one I can already solve and program myself).

Any programming language can be used. Please ask if you have questions.

Regards,

jagusa

---INPUT FILE DETAILS---

Example Input

Explanation:

Each line is vertex of the polygon provides as: latitude, longitude(in decimal degrees; WGS84, if that matters). Note that the first and last coordinates close the polygon and, thus, are always the same; vertices are given clockwise. Positive latitudes value are the northern hemisphere (like 45 means 45 degrees North), negative latitudes are in the southern hemisphere (-12.5 would mean 12.5 degrees South). Also, positive longitudes are in the eastern hemisphere; negative are the western hemisphere. You can cut, past, then search for the individual coordinates in Google Local for clarification.

--------------

Another sample of textfile inputs:

7.692156,77.450609

22.959595,89.906700

7.692156,77.450609

8.940580,105.278561

I am preparing to make the bid selection. I have attached an example .gif file which might be helpful. Feel free to send me a message via pmb if you have any final questions. Thank you all for bidding!

In response to several of bidders' questions ---

Source code and a description of a similar, non-spherical version of the problem can be found at:

http://www.codeguru.com/article.php/c8965

Writing the code built upon GNU-license source is fine. My purpose is for discussion in academic community. After reviewing literature on the problem, a large amount of information can be found using the search terms "clipping polygons".

The following ACM paper appears to address the algorithm (maybe?) -- http://portal.acm.org/citation.cfm?doid=159730.159732

regards,
jagusa

Compétences : Programmation C, Java, Python

Concernant l'employeur :
( 2 commentaires ) Loma Linda, United States

Nº du projet : #29564

## Décerné à:

cliver

Hello, I am an applied mathematician and can do that the best way. Thanks, Sergey

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(18 Commentaires)
5.9

## 17 freelance font une offre moyenne de \$194 pour ce travail

gogetter

I am a graduate in computer science and electrical engineering. I have created similar solutions in past (e.g. a tool for calculating volume of partially filled cylinders in horizontal or vertical positions). I can imp Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 8 jours
(2 Commentaires)
4.4
lakewoodtech

Hi, We are extremely interested in your project "Intersecting Spherical Polygons". We have understood your requirement and have analysed the documentations available. We have the capabilities to implement this for Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(1 Évaluation)
4.4
Nortus

Very good problem for ex-head of "Students ACM team". This problem is similar to ACM-problems during worldwide programming contest. I can really do it!

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(10 Commentaires)
4.8
kobai

Hello. We have already solved this task in our product. I provide you example through PMB. Thanks. kobai.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(1 Évaluation)
3.8
default

Hi, My name is Igor, I have a large IT deveplopment expirience. Here is my online resume: [url removed, login to view] It's nice tool and I can make it fast and comfortable for you. Greetings, Igor Racyborynsky Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(2 Commentaires)
3.4
DaedalusTech

Daedalus Technologies is a small business providing engineering services to the flight simulation and training community since 1990. Our services include Software Developement, Maintainance & Services, Website Design, Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 15 jours
(1 Évaluation)
2.0
pug

Hi, I can make it with c or C++ fot Windows or Linux.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
2.0
sarasa

Thanks in advance for offering the Project. I can solve this problem in C/C++. For Other details please see the PMB. Thank U.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(0 Commentaires)
0.0
senth75

1. This can be done with the given details. If you place the confirmation I can start the work.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0
MirceaMirea

It is a very interesting problem. I have a solid Math and computer science backqround and I am an organized person. Should you will decide to assign this job to me, it will be an honour to solve a such attractiv proble Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 10 jours
(0 Commentaires)
0.0
XenialLtd

Good day dear Glennon! We are glad to propose our development software services to You. Our aim is to provide our clients with solutions, which they really need by using quality, agulity and managed development proce Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 30 jours
(0 Commentaires)
2.6
akhi123

we have good skil in mathematical problems, and alog generation. we have understood your problem and requirements. we can do this

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0
prakashmehra

i have got good domain knowledge in modelling along with software [url removed, login to view] provide quality solution

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 7 jours
(0 Commentaires)
0.0
ranosoft

Hi, We take this oppurtunity to introduce ourself as an ISO 9001:2000 companyand also we are the first Indian IT company to have ISO14001 certification. [url removed, login to view] and 4 current in p Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 15 jours
(0 Commentaires)
0.0
boris01

I have experience with work in geodetic systems. I have made the same projects for AutoCAD with C++. (A sample windows interface may be convenient for this solution). Thanks. Boris.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 3 jours
(0 Commentaires)
0.0
USedat

We can make the fastest program by using assembly and code optimization techniques.

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 6 jours
(0 Commentaires)
0.0