1
0
Fork 0
Commit graph

1154 commits

Author SHA1 Message Date
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
Christian Schmitt
3732f63117 Bump minimum required SG version to be sure we have the threads changes from there available 2013-01-07 22:56:11 +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
76e7d8fcbe Set minimum required GDAL version 2012-12-20 22:15:31 +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
Frederic Bouvier
1438b48b8b Fix Windows build against Boost 2012-12-14 09:11:18 +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
10c8041526 Bump version in master 2012-12-08 22:55:24 +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