qt_osm_map

External: index
Internal: |- preamble -|- downloads -|- end -|

Preamble

2011-12-19: v0.0.8 - Added auto-load at startup, on a thread (workThread), of BOTH apt.dat[.gz], and scan of scenery threshold.xml files, through the sources loadAptDat and loadAirports respectively, and the handling of .gz files through utilities/zlib source. The loadAptDat will handle both 810 and X-Plane 850 apt.dat. Added some SimGear component sources - parts of SGGeodesy.cxx - to convert the 850 data, where only both the ends of the runways are given, to the 810 format of center (lat,lon), length, in feet, and heading, in degrees.

The thread loading of the 'standard' FG apt.dat, with some 26,000 airports, 32,000 runways typically takes less that 20 seconds in my 'slow' windows machines, and less that 4 seconds in my Ubuntu machine. The slightly larger X-Plane 850 apt.dat can take 3 times this, due to the extra math involved converting, and range checking, the some 41,000 runways, 33,500 airports, to the 810 center, length, heading format.

The thread scanning of the small amount of 'default' FG data scenery, 227 files, with just 27 airports is typically less that a seconds, but the scanning of a full Scenery 1.0.1, or a terrasync downloaded scenery folder, with 38.000 files, 15,000 airports, can take a minute or 2... But since the initial auto-loads are on a thread this does not 'block' the applications main UI thread.

loadAptDat includes a service to return an airport list sorted per the distance from a given airport ICAO - See the MENU Test -> Search ICAO..., after the chosen apt.dat has been loaded. This is blindingly FAST, typically much less that 100 ms, using the qSort(begin,end,sortService) function. This is also due to the storing of 'pointers' in the QList<PAD_AIRPORT> list, so sorting is a simple matter of exchanging pointers.

Another concept extended in this version of qt_osm_map is the saving of a list of previously chosen directories and files, so when a the Menu -> Set Root Paths, or -> Set Data File dialog are used, they present a 'list' of previously selected and used values.

dialog with lists

I thing this is a great idea for a very 'helpful' User Interface (UI) - while accepting a new path or file, it does NOT forget previous valid entries, and will continue to use this idea where I can. At present there is no limit on the number saved to the various 'lists', but maybe there should be...

2011-12-14: v0.0.7 - After more development in Ubuntu, and back to window for final testing, now happy with pathDialog...

2011-12-11: Added a class pathDialog to input the FG roots and scenery directories using the class dirDialog

This started as a Qt application to test OSM maps. The web interface of Qt includes the loading and displaying of a HTML page, AND the fantastic capability to call javascript from within the C++ code.

To compile and run these source examples you need to download 'Qt' - http://qt.nokia.com/ and install the SDK. And if desired also download and install the Qt Designer - a GUI application that rivals MSVC ;=)). If you know, and like the MSVC Integrated Development Environment (IDE), then Qt Designer does most, if not all, MSVC does - like color coded source editor, with context sensitive tooltip help, source level viewing during debug, easy goto when compile errors occur, full source searching, etc, etc, etc... and adds 'error' underlining when a statement does not appear complete or right.


top

Downloads

Some downloads: Only source code.
qt_osm_map-0.0.8-src.zip: Lots of improvements, especially regarding auto-load using a thread.
qt_osm_map-0.0.7-src.zip: Eventually happy with pathDialog class to get/browse for the FG root and scenery directories. Like each of the older versions, this just adds another 'test' menu item.

Date Link Size MD5
2011/12/19 qt_osm_map-0.0.8-src.zip 573,941 09372bb0fa55d6bd87f83fe7d686f4e5
Older versions
2011/12/14 qt_osm_map-0.0.7-src.zip 406,537 0a3c1ffee0b998000a42f292da1ce627
2011/12/11 qt_osm_map-0.0.6-src.zip 393,657 06e7b75e4b826932a764dd97cd343c24
2011/12/08 qt_osm_map-0.0.5-src.zip 394,016 0873787e1cc40fa988b99bcb5fe5ec01
2011/12/07 qt_osm_map-0.0.4-src.zip 385,868 b85d848de9b93f6854a4e14aac0bbf0a
2011/12/06 qt_osm_map-0.0.3-src.zip 380,918 3f40c5c1de1684bc6a151ef59d0d0fb7
2011/12/04 qt_osm_map-0.0.2-src.zip 379,785 f54bba50527b16d0f04696b7330856b8

 As stated, this is really just a TEST application, with no particular specific purpose, other than 'testing' various ideas and coding in Qt/C++...


top

Have FUN ;=)) - Geoff

EOP - qt_osm_map.htm

checked by Tidy  Valid HTML 4.01 Transitional