Say I have two airports given.
I can then get their coordinates.
Now that I have the beginning and end coordinates I can draw flight-path from the two locations.
Now my question is that given two end points is there a "preferred" way to calculate which nations the flight path flies over?
My two possibilities:
Approach 1: You "ping" the flight path at increments to see where the flight currently is using google's Geocoder. However I am under the impression this would cost a large amount of data.
Approach 2: Find some sort of polygonal data to represent the nations and see when countries' borders the flightpath intersect.
Now I'd prefer approach two; but I am not sure where to find good resources/data to use.
Any suggestions on a best approach?
So far information I've found are as follows;
- Link to http://www.naturalearthdata.com/features/
- Link below from the first responder
I notice that world_borders uses
shapefiles; is there a way to read/import those into a java environment?
Any open-source engines that can read the data? I am assuming that the
shapefile is what holds the polygonal country data?
Edit 2 For future readers: I found that for programming Java; the link in the comment of the answer below had good information.
namely using GeoTools to complete the project they have a step-by-step guide for Netbeans as well as Eclipse that I will report back with if it solved my problem.
Furthermore, I am using their step-by-step guide in conjuction with data from NaturalEarth.