1
0
Fork 0
Commit graph

241 commits

Author SHA1 Message Date
Peter Sadrozinski
071d98b3bc Lot's pf success on the quest to a full file parse.
Just three airports crashed, and no hangs.  One of the crashes is still NZSP
I don't know if I'll fix this soon.  It's the south pole problem with stuff
crossing the IDL.
- Added dome debug support for generating shapefiles from TGPolygon.
  This allows directly creating shapefiles instead of chopping a poly, then
  having to run poly2ogr on it.  The API is flexible, allowing multiple
  datafiles, and layers open simutaneously, and the features in the shapefiles
  have a description field that can be set.
- Added a restart-id= which allows a bash script to check the exit value of genapts,
  and automatically restart on the airport after the one that crashed.
  I've included an example script I have used.
- Stability fixes:
  1) actually, this is both stability, and graphical fix.  Some airport linear
     features and polygon contours were using bezier nodes for straight lines.
     When the control point lies just outside the line, the parser would attempt to
     draw a 'hook'  unfortunately, some of my calcs return NAN, and sometimes you just
     get crazy looking polys to attempt to clip - not good.
     Fix is to check cubic and quadratic nodes to see if they should really be linear.
     Substitute linear segments where apropriate.
  2) Along the same line as 1, There are some really short bezier segments, that were
     getting subdivided into the hard coded 8 segments.  Now, if the approximately linear
     distance of the curve is less than 4 meters, the curve is broken into 1/2 meter segments.
     Likewise, if the curve is greater than 800 meters, the curve is broken into 100 meter
     segments.
  3) Sometimes, during clipping, degenerate ontours are created.  Although these are cleaned
     before triangulation, there were still issues with generating the accumulation poly with
     the union operator, causing a crash.  I now simplify, and reduce degeneracy on all polys
     before clipping against the accumulator.
- Extra special bonus - successful completeion of an airport is printed in green :)
2012-03-25 23:54:16 +02:00
PSadrozinski
1eae25d17a removing automake files - just updating cmake build files from now 2012-03-25 23:37:26 +02:00
Maxime Guillaud
e4c19fefee Increase buffer size for the client-server messages and consistently use MAXBUF. 2012-02-27 13:37:08 +01:00
Martin Spott
74ae44ed47 Adjust to process/materials 2011-11-22 15:37:43 +01:00
James Turner
4914cb0645 Fix skipping of files when scanning polygons, to match previous behaviour. 2011-10-27 17:53:18 +01:00
Christian Schmitt
a7054d72b3 Better do not try to use btg.gz files as polygon source 2011-10-27 10:15:27 +02:00
Christian Schmitt
1c47d095b7 remove unused variables and functions 2011-10-27 09:04:08 +02:00
Frederic Bouvier
1a1e984577 Build fgfs-master and tgvpf under Windows 2011-10-26 22:48:14 +02:00
Christian Schmitt
17dbaffadd Remove all plib deps completely. TG is now plib-free :) 2011-10-25 16:20:31 +02:00
James Turner
881d83d245 Further de-PLIB-ification. 2011-10-25 12:03:04 +01:00
Christian Schmitt
89ca2ae1e4 Add cmake install targets 2011-10-24 18:07:35 +02:00
James Turner
4e39bff58a Linux fixes for Cmake support. 2011-10-24 13:46:15 +02:00
James Turner
83e6225460 CMake support for TerraGear, and PLIB/OSG/OpenGL removal. 2011-10-24 13:46:15 +02:00
Christian Schmitt
81244fb0fe clean up .gitignore files. Entries are applied recursively 2011-10-24 12:57:53 +02:00
Christian Schmitt
2186e2b89e remove all .cvsignore files 2011-10-24 12:57:53 +02:00
Maxime Guillaud
f20966c21c Increase RLIMIT_CPU to 12h (from 5mn) in fgfs-construct. I have never witnessed the infinite loop that this limit is supposed to catch - however complex tiles frequently require more than 5 minutes CPU. 2011-10-24 11:26:41 +02:00
James Turner
5c5db25930 Build-fixes for Mac 2011-10-12 23:00:35 +01:00
Christian Schmitt
1707ec7fbf fix parallel build 2011-09-28 14:45:16 +02:00
Martin Spott
55e68f9eda Merge branch 'master' of mapserver.flightgear.org:git/terragear-cs 2011-09-25 13:36:12 -07:00
Martin Spott
92a4c3ae72 Merge branch 'master' of /home/martin/local_fixes 2011-09-25 13:24:40 -07:00
Martin Spott
f8084b5fdf No CVS in here any more .... 2011-09-25 11:45:07 -07:00
Martin Spott
e3f798ac74 Further land cover names cleanup. 2011-09-08 05:45:20 -07:00
Martin Spott
d3068322d2 Add asphalt type 2011-09-02 03:19:02 -07:00
Martin Spott
cebf1bfbdc Reflect changes in land cover name simplification as well as
diversification.
2011-09-02 11:37:41 +02:00
Ralf Gerlich
0fdbcaff63 Adapt to changes in simgear 2011-03-27 10:05:14 +02:00
Frederic Bouvier
68dc3066d4 Comment out a useless empty loop 2010-10-04 08:21:47 +02:00
Frederic Bouvier
bbae3a98a6 Better fix by Geoff McLane 2010-10-02 10:25:36 +02:00
Frederic Bouvier
b408b351d0 Fix index trashing 2010-10-02 10:06:34 +02:00
Ralf Gerlich
4e9a529b1f Adapt to the removal of Point3D from simgear. 2010-07-31 19:21:59 +02:00
Ralf Gerlich
f68f25e0c5 Add remaining WorldScenery processing scripts. 2010-07-17 17:30:51 +02:00
Ralf Gerlich
868fa76d23 Jeff Taylor:
Fix "unable to open" messages on priorities/usgs files

Systems without write access to priorities or USGS files could not run
fgfs-construct.
This patch fixes that, so that write access to config files is no
longer required.
2010-06-25 11:04:26 +02:00
Frederic Bouvier
32b564ffaf Use Windows data types to make possible a Win64 build 2010-02-07 22:27:45 +01:00
Ralf Gerlich
95f595d730 Do not generate region points for hole areas in triangulation. 2010-01-24 00:02:41 -08:00
Ralf Gerlich
84cb4efe79 Add an option to fgfs-construct to disable landmass processing (closes #9). 2010-01-19 20:00:34 +01:00
Ralf Gerlich
3a83772a09 The island mask should actually contain islands, not water. 2010-01-19 19:39:28 +01:00
Ralf Gerlich
61ac48f3e5 Read the priorities for materials from a data file (closes #5) 2009-12-20 12:41:25 +01:00
Ralf Gerlich
824d734eb4 Load USGS-to-TerraGear translation from external file (closes #10) 2009-12-20 12:11:08 +01:00
Ralf Gerlich
1e8375a7e6 Adapt fgfs_tools_server to new relative paths on fgfs-construct commandline. 2009-06-07 20:40:57 +02:00
Ralf Gerlich
4ef15f03da Added flag to fg-construct to use the shared data of the constructed tile in addition to its neighbours'. Useful for rebuilding part of the scenery to fit the neighbours. 2009-06-05 21:49:59 +02:00
Ralf Gerlich
d72116c6ab Added a flag to protect Shared directory. Useful for rebuilding part of the scenery to fit with the rest. 2009-06-05 21:36:25 +02:00
Frederic Bouvier
2c2bc8b551 Remove unneeded code 2009-03-22 16:08:25 +01:00
Frederic Bouvier
4d59fad336 Honour --work-dir option and use portable code to iterate through directories 2009-03-21 11:28:15 +01:00
Frederic
0038e2153f Fix Linux generation after change made to compile with MSVC 7.1 2009-01-27 08:16:14 +01:00
Frederic Bouvier
50b1465421 MSVC 7.1 project files - Tile client 2009-01-27 08:16:14 +01:00
Frederic Bouvier
91e1f82e54 MSVC 7.1 project files - Tile server 2009-01-27 08:16:14 +01:00
Frederic Bouvier
7676da87a7 MSVC 7.1 project files - Build Tiles 2009-01-27 08:16:14 +01:00
Ralf Gerlich
4a35fedf64 Adapt to changes in simgear/compiler.h (removal of STL_* and SG_USING_STD() macros). 2008-08-08 12:17:43 +02:00
Ralf Gerlich
e813c093fc Adapt to current SimGear version (<iostream> include changes by fredb) 2008-06-17 11:06:35 +02:00
Ralf Gerlich
f4b4a7dc3c Revert "Do not load shared data of own tile."
The original commit did not solve the problem, as also neighbouring tiles were used multiple times due to an inconsistency in the tile grid calculations.
2008-01-08 03:07:31 -08:00
Ralf Gerlich
4f0ee5178f Stow the logfile away if a tile failed in fgfs-tools-client. 2008-01-08 12:03:50 +01:00