GEODATA: A program for finding geographic data - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: GEODATA: A program for finding geographic data (/thread-7597.html) |
GEODATA: A program for finding geographic data - StephenG1CMZ - 01-15-2017 11:26 PM This program aims to load and search various geographic data sets. Note that the data itself is not provided and will normally need to be downloaded (or your own data provided). CSV data may be loaded using my CSV program. RE: GEODATA: A program for finding geographic data - StephenG1CMZ - 01-15-2017 11:31 PM Version. 0.1 meets the following objectives: It demonstrates use of my CSV program It allows airport data to be inspected (actually, it makes no assumptions and will display anything CSV can read if it fits onscreen). It provides a readable list of locations, that might later be integrated with my GEODESY routines, later allowing distances to be calculated without having to enter latitude and longitude. Code:
The code has been tested using Airports data formatted as described in this thread, which explains how I had to split the file for the Android. Link: http://www.hpmuseum.org/forum/thread-7103.html Note that the dataset is not in CSV format, in that some airport locations include commas within the location strings. The data remains readable, but additional fields are created. I intend to improve CSV parsing. Why airports? Apart from previously working on avionics software - There are less than 10 000 listed...(the professional dataset includes more). So a single list can be searched. And the data is more localised than just listing capital cities. The initial version makes no assumptions about the data fields. Update: The input help says strings must be in quotes. Actually, you just need to enter Alpha lock and remove the default 0 (unless searching for a number). RE: GEODATA: A program for finding geographic data - StephenG1CMZ - 01-27-2017 11:50 PM I have just tested this program using the new VC on the PC. It is able to load the airports datafile without having to split the file as on the Android (just change the filespec accordingly). On the PC, it loads in 5s. On Android (with the older 8151 VC) it loads in about 130s. RE: GEODATA: A program for finding geographic data - StephenG1CMZ - 02-07-2017 11:28 PM If you use only Android, it is necessary to cut-and-paste and split the file as described above. If you have access to a PC, either the VC on the PC or the VC on Android can process a single large file, using the new VC. You will need to be able to run VC or CK on the PC, so a library PC won't help. |