1
0
Fork 0
Commit graph

1230 commits

Author SHA1 Message Date
Martin Spott
c9d7fbbfcd Allow roads on top of airport skirts. 2014-04-02 22:24:22 +02:00
Christian Schmitt
edb37c01a3 Disable client/server build. This stuff is essentially unsupported.
Will probably be removed in the future.
2014-02-21 18:06:47 +01: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
Martin Spott
505a2ea982 Update to latest decode-script as used for World Scenery 2.0 2014-02-02 08:09:48 -08:00
Peter Sadrozinski
9bf7357297 warning cleanup and final checks - TNCM, EKNB, and LIMJ all look good 2014-01-23 18:17:43 -05:00
Peter Sadrozinski
c5d6c20998 additional fix for TNCM - handle western longitude and souther latitude rounding 2014-01-20 15:53:05 -05:00
Peter Sadrozinski
733f9347ab adding mutex around directory and file creation in tgconstruct.
fixes corruption of stage 2 data files, which would crash stage 3
lower print verbosity at INFO level.
2014-01-02 19:33:25 -05:00
Peter Sadrozinski
2aff051ea7 - detect and ignore triangles with duplicate nodes after converting
CGAL arbitrary precision numbers to double
2014-01-02 19:32:15 -05:00
Peter Sadrozinski
c9074ab45c Utilize SGBucket::get_corner when building clip rectangles in
ogr-decode, genapts, and tg-construct.
2013-12-31 13:40:31 -05:00
Peter Sadrozinski
5d45916b23 fix tile bounding box errors leading to z-fightine near tile borders
- round to coorect snap point when converting double to clipper uint64
- add tgPolygon::ToClipperfile to aid debugging clipper related issues
2013-12-31 09:21:10 -05:00
Peter Sadrozinski
36e75560e6 clipper 6.0x and supporting modifications
some debug fixes
2013-12-30 22:04:35 -05: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
Martin Spott
7cca6919ab Ease separation of the different stages 2013-10-14 07:30:05 -07:00
Martin Spott
f6a9b54bf9 Fix stage3 comment 2013-09-12 14:32:57 -07:00
Peter Sadrozinski
ecb1653eee fix memory leak in tgconstruct 2013-09-08 14:04:40 -04:00
Christian Schmitt
7d13ac32b0 Fix underlinking (newer binutils exhibits it) 2013-08-17 19:43:30 +02:00
Peter Sadrozinski
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 )
2013-08-17 10:52:31 -04:00
Peter Sadrozinski
9d4f65f766 hookup --debug to shapefile generation in ogrdecode 2013-07-23 20:54:53 -04:00
Peter Sadrozinski
4e16bb7bb6 fixed the crazy texturing issue.
I think we're ready for another world scenery test.
2013-07-13 11:15:46 -04:00
Peter Sadrozinski
dc6e420abf conditional compile the new edits from last known good terragear for
debugging the messed up texture coordinates
2013-07-06 14:44:56 -04:00
Peter Sadrozinski
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
2013-04-15 19:41:21 -04:00
Christian Schmitt
d42b7269cf Genapts850: Add a version 810 check. This version is unsupported. 2013-04-02 03:00:02 +02:00
Peter Sadrozinski
4f29c32c18 - fixes to get full world vmap0 working
- use exact construction when triangulating in CGAL
2013-03-26 19:20:53 -04: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
Christian Schmitt
a61df8aec0 Fix memory access beyond vector bounds. Reported by valgrind 2013-03-20 00:42:55 +01:00
Peter Sadrozinski
a74edcd91b fix ogr-decode double save issue
- added some experimental (and unused) iterative tests
2013-03-11 09:12:42 -04: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
Christian Schmitt
d469bc04a9 minor ogr-decode fixes 2013-02-03 17:22:36 +01:00
Christian Schmitt
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.
2013-01-10 16:19:04 +01:00
Christian Schmitt
e0cceae841 ogr-decode: be more verbose about the currently processed shapefile 2013-01-08 13:54:00 +01:00
Christian Schmitt
70ae2ecdfe tg_chopper.cxx: Fix typo that only became apparent on sphere (older boost version...) 2013-01-08 00:43:51 +01:00
Frederic Bouvier
d6e753014d Suppress warnings under Windows. The level of code duplication is remarkable. Maybe a template could fit 2013-01-06 00:22:11 +01:00
Frederic Bouvier
29e10a7314 Fix a namespace collision under Windows 2013-01-06 00:20:00 +01:00
Christian Schmitt
75519f886a tg-construct: fix windows build 2013-01-02 17:09:12 +01:00
Christian Schmitt
18bd2aa4e0 gdalchop: Remove automatic void removal. This is better done in an extra step before invoking the chop process 2013-01-02 15:37:33 +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
b007979a38 - multithreaded tgconstruct 2012-12-22 09:16:51 -05:00
Christian Schmitt
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.
2012-12-21 17:31:46 +01:00
Christian Schmitt
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.
2012-12-20 20:21:44 +01:00
Christian Schmitt
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.
2012-12-20 13:37:20 +01:00
Christian Schmitt
20751dd50b gdalchop: support automatic detection of arcsecs in source elevation files 2012-12-20 11:28:57 +01:00
Peter Sadrozinski
cb6ef16f5a fix resource leak - close gzfile after polygons read 2012-12-19 19:36:43 -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
Christian Schmitt
1e62b55664 Another compile fix (missing include) 2012-12-15 13:27:35 +01:00
Christian Schmitt
d10991cbb0 TNT header files were missing. They are templates and don't have to be in the makefile 2012-12-15 11:25:32 +01:00
Peter Sadrozinski
ce1f89f832 library reorg step 1
- no more Geometry
- delete unused files
2012-12-14 22:47:35 -05:00
Peter Sadrozinski
4b97381559 multi-threaded ogrdecode
- use --all-threads to use all available CPUs
- use --threads x to use x threads
2012-12-14 20:44:26 -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
720353d920 Make GDAL work again. Create same output as hgtchop does, convert to binary array format 2012-12-14 16:14:28 +01:00
Christian Schmitt
902d4d83bc Set needed boost components and link tg-construct against them 2012-12-11 14:12:58 +01:00
Peter Sadrozinski
257339abcb - remove extra debug 2012-12-09 18:18:21 -05:00
Peter Sadrozinski
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
2012-12-09 18:17:45 -05:00
Peter Sadrozinski
89e69a863f refactor from TGPolygon and TGSuperPoly to tgPolygon
fix for missing texture coordinates.  Need to kill, or shrink TGShape / clip ,asks, etc.
2012-12-09 18:13:48 -05:00
Peter Sadrozinski
c0555a1270 convert tg_nodes to SGGeod and SGVecd/f 2012-12-09 18:13:47 -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
965d639446 Add versioning to tg-construct, hgtchop and ogr-decode 2012-12-09 18:36:03 +01:00
Christian Schmitt
802b074d49 TGArray: convert to binary arr files, clean up memory leaks in terrafit
Binary array patch by James Turner
2012-12-06 10:16:25 +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
c9ab625a03 terrafit: another go at versioning 2012-12-05 00:07:01 +01:00
Christian Schmitt
0f2b36bb16 terrafix: disable versioning for now... :( 2012-12-04 22:58:47 +01:00
Christian Schmitt
ccec928116 Change the way versioning is done. I hope this will work under windows 2012-12-04 19:45:31 +01:00
Christian Schmitt
b61cfa500b Terrafit: make use of the versioning, clean up and fix options 2012-12-04 12:43: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
577f80482d Output lib: remove unused functions, use SG_LOG and clean up 2012-11-29 10:40:04 +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
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)
2012-11-27 00:43:08 +01:00
Christian Schmitt
00a0234686 Add a versioning infrastructure, remove old build files 2012-11-26 13:46:25 +01:00
Christian Schmitt
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
2012-11-26 08:34:43 +01:00
Christian Schmitt
097abcb9a6 genapts elevation: remove unused function 2012-11-26 08:29:16 +01:00
James Turner
4504d4764c Threaded terrafit.
Optional -j option specified number of threads to use for fitting. Defaults to 1, for the moment.
2012-11-25 22:37:28 +00:00
James Turner
d2b059c789 Use TerraGear getopt_long on Mac.
BSD getopt_long seems to differ in some key ways, and crashes (probably due to ambiguous externs). Use the TG local code on Mac to resolve this.
2012-11-25 21:39:37 +00:00
Christian Schmitt
be0ff2258c tg_unique_*: make MSVC happy with the rounding 2012-11-24 23:05:00 +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
f7bb81c370 TGArray: remove old code 2012-11-23 18:35:31 +01:00
James Turner
1b53799d51 TGArray: Speed up the construction and destruction 2012-11-23 18:30:37 +01:00
Christian Schmitt
7ed3965933 Remove unneeded includes and "using" declarations from header files 2012-11-23 12:47:25 +01:00
Christian Schmitt
d5659f4ac8 tg_unique_geod: second try: compile under MSVC 2012-11-22 17:50:34 +01:00
Christian Schmitt
1f6e6f6f68 tg_unique_geod: compile under MSVC 2012-11-22 17:47:37 +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
41e65fe6fa fix segmentation fault in gdalchop
- it still isn't working - it produces output files, but after fir / construct - terrain isn't right
2012-11-21 20:55:20 -05: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
Christian Schmitt
05091265a5 Add edge lights to old 810-type taxiways 2012-11-18 14:24:05 +01:00
Peter Sadrozinski
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.
2012-11-17 11:26:13 -05:00
Christian Schmitt
1c38c3e455 Use SGMisc rounding function everywhere 2012-11-15 10:47:22 +01:00
Christian Schmitt
75515f14ba fix MSVC build 2012-11-15 10:32:06 +01:00
Peter Sadrozinski
9df1e2a81b add a tgPolygon::Diff for diff againt another polygon
(unused for now, but was used in experiments)
2012-11-15 08:26:00 +01:00
Peter Sadrozinski
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
2012-11-15 08:25:48 +01:00
Peter Sadrozinski
79c9b17595 - fix taxiway texturing
- fix tgPolygon::FindIntermediateNodes
  we were messing up on east west segment nodes, so we had bad t-junctions
2012-11-14 09:21:55 +01:00
Peter Sadrozinski
f6a08f3095 handle closed poly case where clip results in no contours
when dumping accumylator, dump each stage in its own layer
2012-11-11 23:21:18 +01:00
Peter Sadrozinski
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#...

I think it may be time to stop running each airport in its own process and run in seperate threads.
The passing of parameters is geting confusing, and the reason for it seams to have disapeared with the
removal of triangleJRS
2012-11-11 23:21:18 +01:00
Christian Schmitt
620f941609 Port apt_surface and elevation to SGGeod 2012-11-11 23:21:17 +01:00
Peter Sadrozinski
780e836e8b Fix for helipad texturing
Fix for helipad base and clearing when we have borders
Remove extra debug statements
2012-11-11 23:21:17 +01:00
Christian Schmitt
fae73f38b5 apt_math: Rename the length variable to make its purpose clearer 2012-11-11 23:21:17 +01:00
Christian Schmitt
e9c3f3065c Change runway object routine. Do elevation calculation and model write out in one loop 2012-11-11 23:21:17 +01:00
Christian Schmitt
707e939337 More cleanup on the runway and helipad side. Remove point3d occurences from helipad light code. 2012-11-11 23:21:17 +01:00
Peter Sadrozinski
608057596b genapts port complete - time to debug 2012-11-11 23:21:17 +01:00
Christian Schmitt
820c9a6b5d Try to fix build with CGAL under MSVC 2012-11-11 19:09:30 +01:00
Christian Schmitt
858191ead9 Remove some warnings that MSVC complained about 2012-11-11 11:38:31 +01:00
Frederic Bouvier
9db8ec74f0 MSVC 10 compile fix 2012-11-10 19:44:43 +01:00
Frederic Bouvier
83f41ae4bc MSVC 10 compile fix 2012-11-10 19:41:58 +01:00
Frederic Bouvier
35ce3f8a49 MSVC 10 compile fix 2012-11-10 19:29:44 +01:00
Frederic Bouvier
9fa7f645d9 MSVC 10 compile fix 2012-11-10 18:41:07 +01:00
Christian Schmitt
92cb090ead gdalchop: some cleanup of the "using" directive 2012-11-08 19:46:11 +01:00
Christian Schmitt
da8003b1e3 Get rid of a system calls to gzip in demchop and gdalchop 2012-11-08 13:30:35 +01:00
Peter Sadrozinski
619bc7f1f7 a better fix for the boundary box fix 2012-11-07 21:55:58 -05:00
Peter Sadrozinski
c6d60ecd5b fix for the til matching issue created when converting from SGVec3d to SGGeod for bounding box 2012-11-06 19:32:17 -05:00
Christian Schmitt
bf7d86732d Remove the newmat dependency and bring in TNT templates as a substitute 2012-11-05 12:14:15 +01:00
Christian Schmitt
e77e5d43d5 Fix a bug in the water runway calculation: The area was made twice as long as needed. 2012-11-01 11:02:24 +01:00
Christian Schmitt
a5d1035717 Runway objects: do not add empty light objects that lead to a SG warning 2012-10-28 12:59:28 +01:00
Christian Schmitt
9587d6d292 Implement RAIL approach light system 2012-10-25 14:25:40 +02:00
Christian Schmitt
8896dbcba8 Implement omnidirectional REIL 2012-10-25 14:20:31 +02:00
Christian Schmitt
3155bbff0f Remove about 50% of the main light routine by using a loop 2012-10-25 13:42:14 +02:00
Christian Schmitt
cd436fcae9 Convert Calvert lights. This is the last part of the SGGeod/metric conversion.
Also remove now-unneeded includes and old functions
2012-10-24 15:40:00 +02:00
Christian Schmitt
2d9aa0bfa8 Convert gen_malsx to SGGeod 2012-10-24 15:40:00 +02:00
Christian Schmitt
368d290edc Convert gen_ssalx to SGGeod and metric system 2012-10-24 15:40:00 +02:00
Christian Schmitt
4dd1d5c2b1 Convert gen_alsf light function to SGGeod 2012-10-24 15:39:59 +02:00
Christian Schmitt
f86782119c Runway lights: correct the TDZ numbers and do some more cleanup 2012-10-24 15:32:13 +02:00
Christian Schmitt
1c8dbead04 Convert threshold lights to SGGeod and simplify the routine 2012-10-24 10:44:53 +02:00
Christian Schmitt
5e796d2dd5 Runway lights: convert ODALS to SGGeod 2012-10-24 10:40:32 +02:00
Peter Sadrozinski
9a78c73606 remove temporary simgear workaround 2012-10-22 17:56:44 -04:00
Peter Sadrozinski
7138b8509c some more very minor optimizations 2012-10-22 17:53:20 -04:00
Peter Sadrozinski
4f63c54d94 temporary workaround for read / write SGGeods to a gzip file.
- I'll revert this once I get my merge request in simgear
2012-10-21 15:54:29 -04:00
Peter Sadrozinski
fc304804ab Use the Accumulator in the Polygon Library, instead of passing one around.
The accumulator in the polygon library has the bounding box hit test, so it's faster
My test run decreased 16 seconds from 71 to 54.
2012-10-21 15:40:34 -04:00
Peter Sadrozinski
68640c4479 Convert OffsetPointBegin and OffsetPointEnd to SGGeod
Convert beznode locations to SGGeod
Optimize the distance calculations in linearfeature and closedpoly
2012-10-21 14:37:04 -04:00
Peter Sadrozinski
78a19db02d Convert OffsetPointMiddle to use GSGeod and SGVec3 in linear features 2012-10-20 14:51:50 -04:00
Peter Sadrozinski
ec750c6732 Start LinearFeature SGGeod conversion 2012-10-19 20:34:38 -04:00
Peter Sadrozinski
8698ab4e69 Use SGGeod as reference point in TGTexParams 2012-10-19 17:56:10 -04:00
Peter Sadrozinski
d629fa8215 remove unused texparams.hxx - it's in the Polygon Library, now 2012-10-19 17:56:10 -04:00
Christian Schmitt
7d7d4e41a6 Convert runway edge lights to SGGeod 2012-10-19 10:26:00 +02:00
Peter Sadrozinski
2dd32d2839 add --force option to hgtfit.
This option will ignore when loading, and replace when writing the
.fit.gz files.  Very useful when experimenting with different levels of detail.
2012-10-18 20:42:09 -04:00
Christian Schmitt
165f7e2481 Convert REIL lights function 2012-10-18 16:45:00 +02:00
Christian Schmitt
3b13084218 Convert runway touchdown zone lights to SGGeod 2012-10-18 16:45:00 +02:00
Christian Schmitt
365a89f20b Convert runway center line lights to SGGeod 2012-10-18 16:45:00 +02:00
Christian Schmitt
7d827457b9 Keep on constructing if node id is not found (segfaults if not caught) 2012-10-18 16:43:48 +02:00
Christian Schmitt
e4e7d8bffd Convert remaining runway functions to SGGeod 2012-10-18 14:53:01 +02:00
Christian Schmitt
8d4495d470 Use a SGGeod bounding box instead of SGVec3 for geodetic coordinates 2012-10-18 08:40:28 +02:00
Peter Sadrozinski
c336c134bf Use binary gzip files to store intermediate and shared edge files
Sort the nodelist to speedup node lookup after all nodes inserted
retrieve the node list just once in flatten elevation
2012-10-17 19:33:13 -04:00
Christian Schmitt
b6a4dacf33 Convert runway light vector calculation to SGVec3 and SGQuat 2012-10-17 14:24:47 +02:00
Christian Schmitt
306b125044 Use a SGGeod bounding box for the scheduler 2012-10-17 14:13:13 +02:00
Christian Schmitt
8a12f010f5 Convert apt_math functions and runway polygon creation to SGGeod/SGVec3 2012-10-17 14:12:17 +02:00
Christian Schmitt
bda3ee3a91 Convert helipad routine to Vec3 2012-10-17 13:25:06 +02:00
Christian Schmitt
4d3f1efd30 Convert Rectangle function to SGGeod 2012-10-17 12:55:35 +02:00
Christian Schmitt
f3f6cd50f1 Convert airport normal calculation to SGVec3 2012-10-17 12:38:12 +02:00
Christian Schmitt
3e80fdb649 Convert linearfeatures normal calculation to SGVec3 2012-10-17 12:37:56 +02:00
Christian Schmitt
b5c9eb5154 Convert airport objects to SGGeod and SGVec3 2012-10-17 12:35:03 +02:00
Christian Schmitt
440ef1cfbb Store SGGeod values in Point3d as deg, not rad 2012-10-17 11:10:00 +02:00
Christian Schmitt
a1a331db7c Remove old libs and tools that have better counterparts in GDAL/GRASS nowdays. genapts810 has to go as well 2012-10-17 11:07:48 +02:00
Christian Schmitt
8a092947da Time to remove old PAPI/VASI code from the runway lights routine 2012-10-17 09:41:23 +02:00
Christian Schmitt
aead9a1f9d USGS map file is only needed when --cover is enabled.
Also put the log output into the respective functions
2012-10-15 22:15:16 +02:00
Christian Schmitt
d6c3a67caf Convert construct to use a bounding box for setting lat/lon values
and thus make it consistent with genapts
2012-10-15 15:10:21 +02:00
Christian Schmitt
e8896f891c Remove another point2d occurence from Demchop 2012-10-13 13:06:31 +02:00
a7b49565b3 - adding bounding box clip optimization to tgconstruct
- revert some bad ogr-decode changes that caused too angular linear data
2012-10-13 00:18:15 -04:00
5917cb62d1 and fix the CMake file for the polygon library - didn't do a clean build before commit 2012-10-11 21:36:45 -04:00
71ef172b8f revert mistakenly committed tgconstruct with find_slivers enabled.
- I was using it to test the Point2d -> SGVec2d minimum angle calculations
2012-10-11 21:04:31 -04:00
59e2f22050 no more Point2d - use SGVec2d. 2012-10-11 20:57:53 -04:00
531ec93b29 fix for segmentation fault on ocean tiles
- don't save the intermediate data file when tile is ocean only
- don't do anything in later stages if intermediate file isn't found
2012-10-11 19:20:12 -04:00
Christian Schmitt
1abe94feba Remove genapts850 point2d files 2012-10-11 10:07:13 +02:00
Peter Sadrozinski
040cb87873 - clipper fix for hole issue
- some missed code cleanup
2012-10-09 22:07:22 -04:00
Peter Sadrozinski
f0d8d37671 - fix shape debug after rebase.
- improve the 32768 traingles per material workaround
2012-10-09 18:30:03 -04:00
Christian Schmitt
abfea1cd2d Remove Osgb36 (UKgrid) support. Such conversions should be done with the proper tools. 2012-10-09 12:26:52 +02:00
Christian Schmitt
c1d0a92ea8 Add cliptst to gitignore 2012-10-07 21:35:21 +02:00
Christian Schmitt
15365a3acd CMake: the deps are no longer optional. It makes no sense to compile without GDAL 2012-10-07 00:24:18 +02:00
Christian Schmitt
e18c939f66 Speed up linear feature clipping. This makes the creation of airports much faster. 2012-10-06 22:10:10 +02:00
Christian Schmitt
edf8e8310f Convert get_bounding_box to SGVec3d 2012-10-06 22:10:10 +02:00
Christian Schmitt
eaec9905f7 Issue 888: Apply to newconstruct: Correctly calculate the bucket center and radius.
The previous routine lead to offsets in the verts and
thus to problems in the transition shaders.
2012-10-06 22:10:10 +02:00
Christian Schmitt
29e77c4c40 Fix cliptst install routine 2012-10-06 22:10:10 +02:00
Peter Sadrozinski
cc0d913712 - refactor construct.cxx into smaller files
- remove Match - tile matching now handled in tgconstruct_shared.cxx
2012-10-06 22:10:09 +02:00
Peter Sadrozinski
c39e3e0542 elevation averaging and neighbor tile faces included in point normal calculation 2012-10-06 22:10:09 +02:00
Peter Sadrozinski
6a3a57f198 tile matching phase 1
- 3 stage construct
- insert neighbor vertexes from all sides
2012-10-06 22:10:09 +02:00
Peter Sadrozinski
779db9566b multistage coming along - need TGNodes derialization 2012-10-06 22:10:09 +02:00
Peter Sadrozinski
f52e3fef75 fix clipper usage to fix accumulator contours. 2012-10-06 22:10:09 +02:00
Peter Sadrozinski
b44c6c00d0 - some clipperfixes for tgconstruct. bring in clipper 4.8.9
Hopefully, we can start another clc06 test with this fix
- add lots of debug, in case more clipper issues uncovered
  added --debug-areas= allows turning on debug for an area
  can dump the accumulator when using it.
- fixed the swirlies round 2 workaround on tile output, rather than
  stopping the load of polygons at arbitrary threshold.
  (hopefully, we'll have a fix for this in simgear soon)
- modified ogr-decode (when using --texture-lines) to insert triangles
  instead of self-intersecting trapezoids when the turn angle between
  segments is too steep (hit this issue when experimenting with cgal-clipping)
  we were adding a lot of self intersecting polys on line data
- needed to add gdal library to all executables that link against Polygon
  TODO - combne Geometry and Polygon libs - they are completely joined, now.
2012-10-06 22:10:09 +02:00
Peter Sadrozinski
55bfcd80e7 fix for ogr-decode --line-width-column option.
When combined with the --line-width option, if the field is present, but has
no value, gdal returns 0.  Use the value from --line-width in this case.
2012-10-06 22:10:09 +02:00
Christian Schmitt
cd0ee283c0 Adapt helipad shoulder to newconstruct changes 2012-10-06 22:10:09 +02:00
Christian Schmitt
e367395813 Remove runway type check that always returns true 2012-10-06 22:10:09 +02:00
Christian Schmitt
eccb6d1388 Fix for a genapts810 segfault in conjunction with clipper use 2012-10-06 22:10:08 +02:00
Christian Schmitt
36c8cbbb15 genapts scheduler: improve info message 2012-10-06 22:10:08 +02:00
Christian Schmitt
c016041337 Remove TriangleJRS. All tesselation is now done by CGAL. 2012-10-06 22:10:08 +02:00
Christian Schmitt
65bcb00dee Switch old genapts to CGAL for tesselation 2012-10-06 22:10:08 +02:00
Christian Schmitt
e8936f773c genapts (old): removal of GPC introduced wrong runway polys in some cases. Add snap to fix this.
Fix airport skirts as well
2012-10-06 22:10:08 +02:00
Peter Sadrozinski
87df5b805e add help text for --share-dir 2012-10-06 22:10:08 +02:00
Peter Sadrozinski
3b2dfba225 - add --shared-dir option to get ready for new tile matching
and make it easier to share work and data dirs on a server
2012-10-06 22:10:08 +02:00
Christian Schmitt
916544f4fe Fix the wrong normals on the airport skirt, introduced by the GPC removal.
Simply changing the order of upper and lower points does the trick.
Also fix indentation
2012-10-06 22:10:08 +02:00
Christian Schmitt
28bc14e4cc Use CGAL for tesselation in genapts850 2012-10-06 22:10:07 +02:00