1
0
Fork 0

Commit graph

  • efc4386423 Merge VMap0 procedures into a single file Martin Spott 2013-08-24 07:04:14 -07:00
  • f6dca14b0d Don't rename *and* update files on the same commit .... Martin Spott 2013-08-22 08:40:13 -07:00
  • 08b628e647 Commit before re-write .... Martin Spott 2013-08-21 15:34:09 -07:00
  • 7d13ac32b0 Fix underlinking (newer binutils exhibits it) Christian Schmitt 2013-08-17 19:43:30 +02:00
  • d71aacde76 finally fixed the crazy valleys / ridges - issue is caused by very long edges. osm_coastline has lots of them. - split_long_edges info was getting lost in many cases, as clipper 'optimizes' the output. To work around this, I would gather the nodes before a clip, then add them back after. Unfortunately, I was only getting one of the polygons nodes ( sometimes, just a bucket - 4 nodes ) Peter Sadrozinski 2013-08-17 10:52:31 -04:00
  • 9d4f65f766 hookup --debug to shapefile generation in ogrdecode Peter Sadrozinski 2013-07-23 20:53:53 -04:00
  • 23aa8a8ef3 Bump required SG version number Martin Spott 2013-07-13 08:57:22 -07:00
  • 4e16bb7bb6 fixed the crazy texturing issue. I think we're ready for another world scenery test. Peter Sadrozinski 2013-07-13 11:15:46 -04:00
  • dc6e420abf conditional compile the new edits from last known good terragear for debugging the messed up texture coordinates Peter Sadrozinski 2013-07-06 14:44:56 -04:00
  • a6098f3c4a - fix ogr-decode missing landclass sometimes, sgBucketSpan returned an extra row ( a sliver ) chop would pick this and save it as the landclass output - instead of the full bucket poly. construct wouldn't have any poly for the area, and mark it as ocean Peter Sadrozinski 2013-04-15 19:39:38 -04:00
  • d42b7269cf Genapts850: Add a version 810 check. This version is unsupported. Christian Schmitt 2013-04-02 02:56:59 +02:00
  • 4f29c32c18 - fixes to get full world vmap0 working Peter Sadrozinski 2013-03-25 19:25:05 -04:00
  • 5132fa61d1 genapts: proper fix for LFPG segfault Christian Schmitt 2013-03-20 17:35:01 +01:00
  • 73f07b7506 Reset state machine to "simple" after closing a bezier curve. Fixes a segfault at LFPG. Christian Schmitt 2013-03-20 12:49:36 +01:00
  • b1dd1d9e36 Genapts: fix memory leaks Christian Schmitt 2013-03-19 16:53:28 +01:00
  • a61df8aec0 Fix memory access beyond vector bounds. Reported by valgrind Christian Schmitt 2013-03-19 15:05:48 +01:00
  • a74edcd91b fix ogr-decode double save issue - added some experimental (and unused) iterative tests Peter Sadrozinski 2013-03-11 09:12:42 -04:00
  • 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 Peter Sadrozinski 2013-03-10 09:42:07 -04:00
  • 0d0d1d36c9 Adapt logging function to SG logstream changes and enable multithreaded output again Christian Schmitt 2013-02-08 11:26:22 +01:00
  • 5c44d450d4 Bump minimum SG version. Make TG compile again. Own multithread logging is disabled for now. Christian Schmitt 2013-02-07 20:03:27 +01:00
  • d469bc04a9 minor ogr-decode fixes Christian Schmitt 2013-02-03 17:22:36 +01:00
  • 5c83e4e5b5 tg_chopper.cxx: do not exit the process completely if we encounter the same amount of nodes after clipping as before. Instead, only return and keep processing. Christian Schmitt 2013-01-10 16:17:18 +01:00
  • e0cceae841 ogr-decode: be more verbose about the currently processed shapefile Christian Schmitt 2013-01-08 13:54:00 +01:00
  • 70ae2ecdfe tg_chopper.cxx: Fix typo that only became apparent on sphere (older boost version...) Christian Schmitt 2013-01-08 00:42:25 +01:00
  • 3732f63117 Bump minimum required SG version to be sure we have the threads changes from there available Christian Schmitt 2013-01-07 22:56:11 +01:00
  • d6e753014d Suppress warnings under Windows. The level of code duplication is remarkable. Maybe a template could fit Frederic Bouvier 2013-01-06 00:22:11 +01:00
  • 29e10a7314 Fix a namespace collision under Windows Frederic Bouvier 2013-01-06 00:20:00 +01:00
  • 75519f886a tg-construct: fix windows build Christian Schmitt 2013-01-02 17:09:12 +01:00
  • 18bd2aa4e0 gdalchop: Remove automatic void removal. This is better done in an extra step before invoking the chop process Christian Schmitt 2013-01-02 15:28:07 +01:00
  • 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. Peter Sadrozinski 2012-12-29 21:05:39 -05:00
  • b007979a38 - multithreaded tgconstruct Peter Sadrozinski 2012-12-22 09:16:14 -05:00
  • 6d72319a68 gdalchop: improve speed, especially when using a high number of datasets. We only pass images to gdal now, if they intersect in any way with the current bucket. Christian Schmitt 2012-12-21 17:28:49 +01:00
  • 76e7d8fcbe Set minimum required GDAL version Christian Schmitt 2012-12-20 22:15:31 +01:00
  • 5b6329e5ad The previous commit brought up some issues with certain source formats. We now create a copy of the original dataset and use that for processing, as GDAL needs to write some changes. Christian Schmitt 2012-12-20 18:53:20 +01:00
  • 6d50ec366c gdalchop: interpolate nodata pixels before processing. This yields much nicer scenery tiles as terrafit does not have to work with these missing data fields. Tested at LOWI. Christian Schmitt 2012-12-20 13:08:51 +01:00
  • 20751dd50b gdalchop: support automatic detection of arcsecs in source elevation files Christian Schmitt 2012-12-20 11:28:57 +01:00
  • cb6ef16f5a fix resource leak - close gzfile after polygons read Peter Sadrozinski 2012-12-19 19:36:43 -05:00
  • 9f34a0c036 - fix airport area texturing - fix ocean texturing for tiles with a coastline Peter Sadrozinski 2012-12-16 12:54:44 -05:00
  • 10db5bfbff - renamed Polygon library to terragear - split the new implementation into respective class files (tg_misc is a catch all...) Peter Sadrozinski 2012-12-16 10:46:25 -05:00
  • b1012cd5e9 - Point3D removed - Moved AptSurface to the Polygon library - and made it more generic for possible future use in construct Peter Sadrozinski 2012-12-15 21:14:39 -05:00
  • 91b28879d4 no more TGPolygon or TGTriNodes Peter Sadrozinski 2012-12-15 11:14:04 -05:00
  • 1e62b55664 Another compile fix (missing include) Christian Schmitt 2012-12-15 13:27:35 +01:00
  • d10991cbb0 TNT header files were missing. They are templates and don't have to be in the makefile Christian Schmitt 2012-12-15 11:25:32 +01:00
  • ce1f89f832 library reorg step 1 - no more Geometry - delete unused files Peter Sadrozinski 2012-12-14 22:20:24 -05:00
  • 4b97381559 multi-threaded ogrdecode - use --all-threads to use all available CPUs - use --threads x to use x threads Peter Sadrozinski 2012-12-14 20:44:26 -05:00
  • 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 ) Peter Sadrozinski 2012-12-14 10:14:54 -05:00
  • 720353d920 Make GDAL work again. Create same output as hgtchop does, convert to binary array format Christian Schmitt 2012-12-13 19:35:43 +01:00
  • 1438b48b8b Fix Windows build against Boost Frederic Bouvier 2012-12-14 09:11:18 +01:00
  • 902d4d83bc Set needed boost components and link tg-construct against them Christian Schmitt 2012-12-11 14:10:48 +01:00
  • 257339abcb - remove extra debug Peter Sadrozinski 2012-12-09 18:13:22 -05:00
  • 6edeadd86e removed tgshape - each area is now just a list of polys fixed linear data texturing fixed water area spacial query adjustment - works just like linear query, now Peter Sadrozinski 2012-12-02 14:53:21 -05:00
  • 89e69a863f refactor from TGPolygon and TGSuperPoly to tgPolygon fix for missing texture coordinates. Need to kill, or shrink TGShape / clip ,asks, etc. Peter Sadrozinski 2012-12-02 11:01:31 -05:00
  • c0555a1270 convert tg_nodes to SGGeod and SGVecd/f Peter Sadrozinski 2012-11-29 19:24:31 -05:00
  • f157a33d76 Use capitals for new airport surface materials Christian Schmitt 2012-12-10 00:11:50 +01:00
  • 930a2c0512 Add missing surface definitions for airport areas Christian Schmitt 2012-12-09 22:33:52 +01:00
  • 965d639446 Add versioning to tg-construct, hgtchop and ogr-decode Christian Schmitt 2012-12-09 18:36:03 +01:00
  • 10c8041526 Bump version in master Christian Schmitt 2012-12-08 22:55:24 +01:00
  • 802b074d49 TGArray: convert to binary arr files, clean up memory leaks in terrafit Binary array patch by James Turner Christian Schmitt 2012-12-03 10:44:05 +01:00
  • 08b5b77864 Genapts: add version number and tweak console output a little bit Christian Schmitt 2012-12-05 00:49:19 +01:00
  • c9ab625a03 terrafit: another go at versioning Christian Schmitt 2012-12-05 00:06:33 +01:00
  • 0f2b36bb16 terrafix: disable versioning for now... :( Christian Schmitt 2012-12-04 22:58:47 +01:00
  • ccec928116 Change the way versioning is done. I hope this will work under windows Christian Schmitt 2012-12-04 19:44:28 +01:00
  • b61cfa500b Terrafit: make use of the versioning, clean up and fix options Christian Schmitt 2012-12-04 00:54:02 +01:00
  • 755dc6465f Remove Output lib and put the functionality into genapts, the only place where it is needed Christian Schmitt 2012-11-29 18:03:04 +01:00
  • 577f80482d Output lib: remove unused functions, use SG_LOG and clean up Christian Schmitt 2012-11-29 10:37:31 +01:00
  • ad9b2f70b5 Fix MSVC compilation, clean up a bit Christian Schmitt 2012-11-28 20:40:18 +01:00
  • 1929799b4b multithreaded genapt850 Peter Sadrozinski 2012-11-27 20:37:25 -05:00
  • 3dfe15559e TGArray: memset allocates ~1,5 GB (!) of memory for empty elevation arrays. Change this back to the old behaviour (3x3 columns instead of 20000x20000) Christian Schmitt 2012-11-27 00:38:19 +01:00
  • 00a0234686 Add a versioning infrastructure, remove old build files Christian Schmitt 2012-11-24 11:46:15 +01:00
  • 4708d72c0e terrafit: MSVC compile fix for sleep(), remove unsigned warnings SG's timestamp functions might be a (better) alternative, but they are much bigger than a single line of code Christian Schmitt 2012-11-26 08:30:01 +01:00
  • 097abcb9a6 genapts elevation: remove unused function Christian Schmitt 2012-11-25 14:08:03 +01:00
  • 4504d4764c Threaded terrafit. James Turner 2012-11-25 22:37:28 +00:00
  • d2b059c789 Use TerraGear getopt_long on Mac. James Turner 2012-11-25 21:39:37 +00:00
  • be0ff2258c tg_unique_*: make MSVC happy with the rounding Christian Schmitt 2012-11-24 23:04:17 +01:00
  • 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. Peter Sadrozinski 2012-11-23 19:34:35 -05:00
  • b971c2b344 some more helipad cleanup - I'm not seeing the holes anymore Peter Sadrozinski 2012-11-22 18:55:12 -05:00
  • 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. Peter Sadrozinski 2012-11-21 23:04:22 -05:00
  • f7bb81c370 TGArray: remove old code Christian Schmitt 2012-11-23 18:35:31 +01:00
  • 1b53799d51 TGArray: Speed up the construction and destruction James Turner 2012-11-23 18:30:37 +01:00
  • 7ed3965933 Remove unneeded includes and "using" declarations from header files Christian Schmitt 2012-11-22 18:33:37 +01:00
  • d5659f4ac8 tg_unique_geod: second try: compile under MSVC Christian Schmitt 2012-11-22 17:50:34 +01:00
  • 1f6e6f6f68 tg_unique_geod: compile under MSVC Christian Schmitt 2012-11-22 17:47:37 +01:00
  • bc63d72de5 Support for runway guard lights (wig-wag) from apt.dat spec Christian Schmitt 2012-11-22 16:45:09 +01:00
  • 41e65fe6fa fix segmentation fault in gdalchop - it still isn't working - it produces output files, but after fir / construct - terrain isn't right Peter Sadrozinski 2012-11-21 20:55:20 -05:00
  • 0fa30fdcab - fix airport hole contour gaps when crossing tile boundary - disable FindSlivers (in genapt) - it creates more errors than it fixes Peter Sadrozinski 2012-11-20 21:33:17 -05:00
  • 3f072c42f8 genapt850 optomizations - use hashes for SGGeod, SGVec3f and SGVec2f lists Peter Sadrozinski 2012-11-18 12:57:25 -05:00
  • c9f79718fa genapts linearfeatures: Remove more Point3D occurences Christian Schmitt 2012-11-18 17:11:56 +01:00
  • 05091265a5 Add edge lights to old 810-type taxiways Christian Schmitt 2012-11-18 14:24:05 +01:00
  • b013ad6b7b Fix some gaps in and around airports - these gaps were caused by a late clipper stage that optomizes the resulting polygon after clipping - including removal of nodes whose edges have the same slope. I was unable to disable this optomization without breaking clipper - it would just hang. So all clipper operations now save the subject nodes before, and reinsert after the op. - cleaned up some debug - genapts is so fast now, that we can just print out the summaries. Peter Sadrozinski 2012-11-17 11:26:13 -05:00
  • 1c38c3e455 Use SGMisc rounding function everywhere Christian Schmitt 2012-11-15 10:47:22 +01:00
  • 75515f14ba fix MSVC build Christian Schmitt 2012-11-15 10:32:06 +01:00
  • 9df1e2a81b add a tgPolygon::Diff for diff againt another polygon (unused for now, but was used in experiments) Peter Sadrozinski 2012-11-14 20:25:34 -05:00
  • d2bc41428c fix the other FindIntermediateNodes error. This seems to have fixed the hole in the runway at LIMA as well - I think it's ok for master Peter Sadrozinski 2012-11-14 19:55:18 -05:00
  • 79c9b17595 - fix taxiway texturing - fix tgPolygon::FindIntermediateNodes we were messing up on east west segment nodes, so we had bad t-junctions Peter Sadrozinski 2012-11-13 21:09:23 -05:00
  • f6a08f3095 handle closed poly case where clip results in no contours when dumping accumylator, dump each stage in its own layer Peter Sadrozinski 2012-11-07 19:25:42 -05:00
  • 76ee23a294 Adding new construct style debug to genapt850. format is --debug-runways=icao:rwy#,rw#... --debug-pavements=icao:rwy#,rw#... --debug-features=icao:feat#,feat#... Peter Sadrozinski 2012-11-06 22:50:29 -05:00
  • 620f941609 Port apt_surface and elevation to SGGeod Christian Schmitt 2012-11-03 00:15:11 +01:00
  • 780e836e8b Fix for helipad texturing Fix for helipad base and clearing when we have borders Remove extra debug statements Peter Sadrozinski 2012-11-02 10:03:55 -04:00
  • fae73f38b5 apt_math: Rename the length variable to make its purpose clearer Christian Schmitt 2012-10-30 10:22:02 +01:00
  • e9c3f3065c Change runway object routine. Do elevation calculation and model write out in one loop Christian Schmitt 2012-10-29 21:03:47 +01:00