1
0
Fork 0
Commit graph

251 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
59e2f22050 no more Point2d - use SGVec2d. 2012-10-11 20:57:53 -04: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
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
c016041337 Remove TriangleJRS. All tesselation is now done by CGAL. 2012-10-06 22:10:08 +02:00
Christian Schmitt
3d800bbb77 Clean up includes in the CMake files 2012-10-06 22:10:07 +02:00
Christian Schmitt
ca9a6dda13 Finally get rid of GPC 2012-10-06 22:10:07 +02:00
Christian Schmitt
37d07e6526 add GPC includes only where needed. also add newmat includes 2012-10-06 22:10:06 +02:00
Peter Sadrozinski
c1de74f4fa Some fixes
- genapt850 : some airports (LSMM) have multiple airport boundaries.
  This caused a lot of the airport to not get a smoothed base (so some landclass polys were not clipped against the airport).  Changed boundary from a single ClosedPolygon to a list.  Seems to work.
  Some misc warnings cleanup in scheduler, and parser

- Clipper using accumulator results in a significant speed boots - enable clipper and the accumulator by default.

- ogr-decode - most of the crashes I'm getting are due to non-continuous roads.  Within a line string, I create adjacent polys that snap correctly.  On the ends, I generate 90 degree angles.  Some linestrings should be consecutive.  As a workaround, I am now extending every start and end poly of linestrings by 0.1 meters.  It makes it better, but I need to do a better job of creating continuous roads.  This will require some preprocessing of the entire shapefile.  (Perhaps all line data shapefiles, to handle correct overpass / underpass logic)
2012-10-06 22:10:05 +02:00
Peter Sadrozinski
cf6d6f42b9 add bounding box calculations to optimize tesselation 2012-10-06 22:10:05 +02:00
Peter Sadrozinski
feeaf602b7 added seperate-segments option to ogr-decode.
- generates an intermediate file for the whole linestring, but as seperate poly/texcoord pairs
- construct generates the union ofthe polys for the main clip routine
- intersection ot the original segment with the clipped mask gives the clipped segment
  This cuts ~75% of clipping time for really complex tiles.  8 tiles for Madeira went from
  4:45:00 to 1:04:00
2012-10-06 22:10:05 +02:00
Peter Sadrozinski
465fccc6a0 checkpoint - madeira builds fine with individual line segments 2012-10-06 22:10:05 +02:00
Christian Schmitt
d83f1c265c Add textured lines to ogr-decode help output 2012-09-12 12:56:52 +02:00
Christian Schmitt
7774de4939 Adapt to SG changes 2012-08-26 22:22:40 +02:00
Christian Schmitt
873fff2afc Fix FSF address in headers and add a proper header to GenAirports850/main.cxx 2012-05-05 12:20:21 +02:00
Christian Schmitt
09d7be09c5 Do not print out terrafit help text two times 2012-04-25 21:10:07 +02:00
Christian Schmitt
a83bf32c2c Fix Windows-build linking issue and unify CMake files a bit 2012-04-07 14:57:22 +02:00
Peter Sadrozinski
372cbdf38f Added tgPolygonExpand() to grow / shrink polygons using clipper library.
- used to expand pavement polygons so they overlap slightly (5cm)
  This prevents slivers being formed between pavements when designers
  add their own taxiway shoulders, and try to line them up instead of
  placing the boundary 'under' the taxiway.
- also useed to create the default airport base.  This allows the base
  to follow the taxiways better - allowing concave boundaries, instead
  of the previous convex hull.

Memory leaks squashed.  Fixed several memory leaks reported by valgrind.
- GenApt850 can now run forever (or at least until it segfaults)

Very long linear segments in linear features are now broken up to
avoid triangulation errors

Added back some clipper boolean operations (diff and union).  These can
be used instead of the GPC functions by using tgPolyGonDiffClipper and
tgPolygonUnionClipper.  GPC had crashed in a few airports when clipping
linear features.  Using the clipper routines don't crash.  More investigation
is needed.  It may be something about the polygons being clipped more that
the clipping action itself.  In these problem airports, there are some
linear features extending far from the airport.
( I had thought those issues were fixed :( )

More warning cleanups.
2012-03-25 23:54:16 +02:00
Peter Sadrozinski
00afd0cb17 - I forgor to include my preliminary support to allow triangleJRS to return
success / failure.  I have some local changes to the lib to support it, but
  they aren't verified.  Checking in the support, that always returns success.
- allow clipper and GPC libraries to be included together.
  I need clipper for expanding polys, but I'm still using GPC for clipping.
2012-03-25 23:54:15 +02:00
PSadrozinski
27c31404ca Compile warnings cleanup round 1 2012-03-25 23:54:15 +02:00
PSadrozinski
bc3ecf8fe9 - Add --texture-line option to ogr-decode to generated polygons with texture parameters
- change cout to SG_LOG so we can turn down the verbosity
2012-03-25 23:54:15 +02:00
PSadrozinski
1eae25d17a removing automake files - just updating cmake build files from now 2012-03-25 23:37:26 +02:00
Martin Spott
ef2dbe235c Update to common practice 2011-11-22 15:24:47 +01:00
Frederic Bouvier
90ed31b46b Additionnal Win64 dependency 2011-11-10 20:07:37 +01:00
James Turner
7fb875b44b Fix release build issues with raw2ascii under cmake 2011-11-05 16:00:40 +00:00
Frederic Bouvier
1a1e984577 Build fgfs-master and tgvpf under Windows 2011-10-26 22:48:14 +02:00
Frederic Bouvier
e8e4d885c5 Build under Windows 2011-10-26 22:19:01 +02:00
James Turner
afe4be595f Modernise the terrafit file handling code. 2011-10-26 20:29:59 +01:00
Christian Schmitt
17dbaffadd Remove all plib deps completely. TG is now plib-free :) 2011-10-25 16:20:31 +02:00
Christian Schmitt
d8d3be6fb1 Change SG linking order and add more tools to the cmake build system
that compile now. Also change .gitignore files to include some new
binary names
2011-10-25 01:11:31 +02:00
Christian Schmitt
89ca2ae1e4 Add cmake install targets 2011-10-24 18:07:35 +02:00
James Turner
17b15a1824 Use detected GDAL include path. 2011-10-24 13:46:15 +02:00
James Turner
e59d2d3e47 Use new SimGear helpers to simplify some code. 2011-10-24 13:46:15 +02:00
James Turner
99562cfde6 CMake support for GDAL / building OGR decode. 2011-10-24 13:46:15 +02:00
James Turner
4e39bff58a Linux fixes for Cmake support. 2011-10-24 13:46:15 +02:00