1
0
Fork 0
Commit graph

485 commits

Author SHA1 Message Date
Scott Giese
135ab745a5 Temporary: Remove obsolete ct (control tower) 2018-07-16 12:00:34 -05:00
xDraconian
acfecfbc4d GenAirport: Support apt.dat version 1100 parsing
GenAirport: Fix typos
2018-06-19 08:57:14 +01:00
Torsten Dreyer
c5dafbc409 allow setting of debug-level in genapts 2018-02-12 22:49:17 +01:00
Torsten Dreyer
95a34ae32a Compile again with latest SimGear
this patch implements the move of sgstream.hxx to simgear/io/iostreams
introduced with simgear commit 79f869a7f32910197be72b21f6489fbbba02c836
2017-06-25 10:47:32 +02:00
Torsten Dreyer
1e32e9bccb Fix missing std:: namespace, bug #1891
see https://sourceforge.net/p/flightgear/codetickets/1891/
Thanks to James Hester for the patch
2016-12-03 09:45:56 +01:00
Alessandro Menti
4c8455c0ee CMake: explicitly link Boost libraries
Explicitly link Boost libraries for programs that need it to prevent
"undefined reference to `boost::system::get_system_category()'" error
messages from appearing.
2016-12-03 09:44:24 +01:00
Martin Spott
8f48b13f09 Update to what we're actually using. 2015-10-07 11:31:59 -07:00
Peter Sadrozinski
4f59886aaa genapts fixes
- remove splinter remaval / merging
- remove snap after adding colinear nodes
- added zfighting detector - intersects all generated triangles against one another
- this fixes ELLX, and to a large extent all 'large' airport self z-fighting.
- very small z-fighting still exists at 72 airports.  This is down from over 100 before the fix.
2015-07-24 08:57:24 -04:00
Peter Sadrozinski
87fe67d5fc temporary workaround for accumulator diff failure.
- will log the failures to a file in current directory.
2015-05-27 09:53:45 -04:00
Peter Sadrozinski
314671886e genapt fix for transparent pavement - don't substitute with Grass - just ignore the poly 2015-02-07 07:57:04 -05:00
Christian Schmitt
95830a9a98 genapts850: Add support for bidirectional lights that were created as omnis until now 2015-01-25 10:57:20 +01:00
Christian Schmitt
d8d6f1ace1 Genapts: move all elevation-related functions into tg_surface, where they belong. 2014-11-16 21:18:52 +01:00
Peter Sadrozinski
c7c8c0be82 align tgconstruct and genapt to new sgbinobj api 2014-04-12 19:02:50 +02:00
j.mas
25294ee911 Incorrect double centerline in taxiways 2014-04-07 17:46:20 +02:00
Christian Schmitt
143ea6efe6 Move to new SGBucket API 2014-02-21 18:05:55 +01:00
Christian Schmitt
65462f1269 fix numerous compile errors caused by SG changes 2014-02-14 12:00:06 +01:00
Christian Schmitt
ac334ecca4 genapts850: allow lower-case ICAO codes for the --airport option 2013-11-15 23:57:19 +01:00
Christian Schmitt
3191c6464d genapts: correctly calculate bucket center and radius for the airport btg files.
We already fixed this for construct in 2012 in commit eaec9905f7
2013-11-14 20:54:54 +01:00
Peter Sadrozinski
c55eaeeb1d Potential fix for airports that could generate FPE on simgear load 2013-10-18 12:38:43 -07:00
Christian Schmitt
7d13ac32b0 Fix underlinking (newer binutils exhibits it) 2013-08-17 19:43:30 +02:00
Peter Sadrozinski
9d4f65f766 hookup --debug to shapefile generation in ogrdecode 2013-07-23 20:54:53 -04:00
Christian Schmitt
d42b7269cf Genapts850: Add a version 810 check. This version is unsupported. 2013-04-02 03:00:02 +02:00
Christian Schmitt
5132fa61d1 genapts: proper fix for LFPG segfault 2013-03-20 18:41:34 +01:00
Christian Schmitt
73f07b7506 Reset state machine to "simple" after closing a bezier curve.
Fixes a segfault at LFPG.
2013-03-20 12:57:33 +01:00
Christian Schmitt
b1dd1d9e36 Genapts: fix memory leaks 2013-03-20 12:57:25 +01:00
Peter Sadrozinski
08f5c17221 Fixes from full world parsing tests
- Use new SimGear API in construct to gather all tiles within a bounding box
- Bring in new clipper lib, which seems to fix more orientation issues
- Various debug cleanup
- Fix Find/Merge slivers - but leave it turned off
- New OffsetPoints for small speedup in GenApts - currently disabled
2013-03-10 09:42:07 -04:00
Christian Schmitt
0d0d1d36c9 Adapt logging function to SG logstream changes and enable multithreaded output again 2013-02-08 11:31:45 +01:00
Christian Schmitt
5c44d450d4 Bump minimum SG version. Make TG compile again. Own multithread logging is disabled for now. 2013-02-07 20:30:17 +01:00
Peter Sadrozinski
5b9375f102 - fixed multithreaded construct memory leak in TGArray usage ( need to clear corner and fitted lists ).
- reworked priorities.hxx/.cxx to make valgrind happy.  It also allows us to add more features per area (like smoothing).
- remove TG_MAX_AREA_TYPES - we had a merge request for this, but this does essentially the same thing with the refactoring.
- fixed some edge matching introduced in multithreaded construct.
- tgconstruct objects now live for an entire stage.  1 for each thread - this introduced the memory leaks, and some issues.
  interesting side effect is that we do less alloc / free, since we use std::vectors which when cleared, don't actually free
  memory, so by the end, we've allocated enough entries for the largest tile.
- fixed linear feature issue in genapts850 - the refactor caused some of the old clean functions to remove too many polys!
  with cgal, we need far less cleaning - just do what construct does, and we can still parse all airports, and lines are back.
2012-12-29 21:05:39 -05:00
Peter Sadrozinski
9f34a0c036 - fix airport area texturing
- fix ocean texturing for tiles with a coastline
2012-12-16 12:54:44 -05:00
Peter Sadrozinski
10db5bfbff - renamed Polygon library to terragear
- split the new implementation into respective class files
  (tg_misc is a catch all...)
2012-12-16 10:46:25 -05:00
Peter Sadrozinski
b1012cd5e9 - Point3D removed
- Moved AptSurface to the Polygon library - and made it more generic for
  possible future use in construct
2012-12-15 21:14:39 -05:00
Peter Sadrozinski
91b28879d4 no more TGPolygon or TGTriNodes 2012-12-15 11:20:46 -05:00
Peter Sadrozinski
ce1f89f832 library reorg step 1
- no more Geometry
- delete unused files
2012-12-14 22:47:35 -05:00
Peter Sadrozinski
cd3a1d647e - Use the tgPolygon SaveToGzFile / LoadFromGzFile functions to store the
results of OGRDecode, instead of ascii, completely different format
- move Utility functions to generate polys from line data into tgPolygon
  ( use this for both GenApts850 linear features, and OGRDecode )
- kill off old superpoly, and texparams
- add tgChopper which queues chopped polygons per bucket.
  When saved, result is less files (each tile has 1 file per shapefile decoded)
  Both genapt and ogrdecode now use tgChopper instead of Geometry/Util.cxx functions
- tgChooper acquires a global file name lock, so we can safely run genapts in
  paralell with ogrdecode.
  (this was dangerous before, as both could try to open the index file as write,
   the loser would segfault, later )
2012-12-14 10:23:13 -05:00
Christian Schmitt
f157a33d76 Use capitals for new airport surface materials 2012-12-10 00:11:50 +01:00
Christian Schmitt
930a2c0512 Add missing surface definitions for airport areas 2012-12-09 22:33:52 +01:00
Christian Schmitt
08b5b77864 Genapts: add version number and tweak console output a little bit 2012-12-05 00:50:07 +01:00
Christian Schmitt
755dc6465f Remove Output lib and put the functionality into genapts, the only place where it is needed 2012-11-29 18:34:52 +01:00
Christian Schmitt
ad9b2f70b5 Fix MSVC compilation, clean up a bit 2012-11-29 09:51:11 +01:00
Peter Sadrozinski
1929799b4b multithreaded genapt850 2012-11-28 19:10:42 -05:00
Christian Schmitt
097abcb9a6 genapts elevation: remove unused function 2012-11-26 08:29:16 +01:00
Peter Sadrozinski
05f46adacb fix runway shoulder base and clearing calculation.
- instead of expanding for each poly - account for shoulders when expanding base and clearing when building the runway.
- instead of doing a union for each base / clearing poly - add them to a list to do just one clip operation at the end.  This results in anoth 2-3% performance increase, and allows another 10 airports to build. just 4 don't build in addition to NZSP.
2012-11-24 08:46:04 -05:00
Peter Sadrozinski
b971c2b344 some more helipad cleanup - I'm not seeing the holes anymore 2012-11-24 08:44:50 -05:00
Peter Sadrozinski
31397acb85 fix some more of the texturing issues with non square helipads
- I can still get holes on helipads, but I think it's not a texturing
  issue, as I can build the helipad, side extensions, or borders seperatly.
  together, I can get holes.
2012-11-24 08:41:57 -05:00
Christian Schmitt
7ed3965933 Remove unneeded includes and "using" declarations from header files 2012-11-23 12:47:25 +01:00
Christian Schmitt
bc63d72de5 Support for runway guard lights (wig-wag) from apt.dat spec 2012-11-22 16:45:09 +01:00
Peter Sadrozinski
0fa30fdcab - fix airport hole contour gaps when crossing tile boundary
- disable FindSlivers (in genapt) - it creates more errors than it fixes
2012-11-20 21:33:17 -05:00
Peter Sadrozinski
3f072c42f8 genapt850 optomizations - use hashes for SGGeod, SGVec3f and SGVec2f lists 2012-11-18 12:59:03 -05:00
Christian Schmitt
c9f79718fa genapts linearfeatures: Remove more Point3D occurences 2012-11-18 17:11:56 +01:00