1
0
Fork 0
Commit graph

291 commits

Author SHA1 Message Date
david
4d37243a5b Added a convenience constructor, non-const accessors, and an
isOverlapping method to test for overlap with another rectangle.
2002-07-23 01:32:40 +00:00
david
1f2d16fe6c Added a getBounds() method to get the bounding rectangle for the line. 2002-07-23 01:31:58 +00:00
david
f30ffc0d1f Added new independent classes for a bounding rectangle and a
multi-segment line, then pulled some local code out of tgvpf into
util.[ch]xx so that it can be used by other modules.
2002-07-22 22:01:39 +00:00
curt
6bd8a08f8b Additional tweaks to runway lighting (these have been sitting around
for a couple weeks ... I must have forgotten to commit.)
2002-06-15 13:39:45 +00:00
curt
3ace596df0 Cameron Moore:
polygon.cxx.diff
- Fixed an incorrect delete[] call that could fail on a non-Linux
  platform during genapts

split-bin.cxx.diff
- Fixed uninitialized z() values that were being printed during tgvpf
2002-06-15 13:31:51 +00:00
david
6e5f833cc3 ANSI C++ fixes; use SimGear logging instead of iostream. 2002-05-21 17:05:10 +00:00
curt
14a58f9bdf Changes to track updates in simgear. 2002-05-13 15:12:51 +00:00
david
58634b2dfc - use SG_LOG throughout instead of cout/cerr
- in main.cxx, make the default log level SG_INFO rather than SG_DEBUG
  (developers can easily change it back during testing)

- replace all instances of exit() with an exception throw, caught in
  main.cxx, so that the program can go on processing the rest of the
  airports; to restore the old behaviour, just add an exit() to the
  catch clause

(Unfortunately, this still does not guarantee a full processing run,
because triangle.c in the library can invoke exit() when it gets
hopelessly confused.)
2002-03-22 15:05:54 +00:00
david
f42cdc4578 Added --min-lat, --max-lat, --min-lon, and --max-lon arguments to
build airports for a limited area.
2002-03-20 22:52:26 +00:00
curt
82f409ba67 Oops, fixed some 'typo' type bugs I missed in the first go around. 2002-03-13 05:08:21 +00:00
curt
a22b83516b More incremental work towards automatically generating runway lights. 2002-03-13 03:51:39 +00:00
david
5c19f61da1 Fixed namespace bugs that kept G++ 3.0 from compiling (mostly improper
use of namespaces with cout/cerr/endl).
2002-02-28 15:34:12 +00:00
curt
750437b242 Extremely *alpha* start at generating sample runway lights. 2002-02-27 23:08:15 +00:00
curt
8f07f918ae Roughing in some initial structure to facilitate runway lighting. 2002-02-27 18:58:06 +00:00
curt
5cbacb4a7a Misc tweaks. 2002-02-27 18:53:10 +00:00
curt
645abd08c1 Minor tweaks from last round of photo inserting. 2002-02-27 18:52:40 +00:00
curt
c5f9e48267 Add a skirt around airport as a first line defense against pixel
wide border gaps.
2002-02-25 15:22:32 +00:00
curt
2a068e31e8 Removed auto generated file. 2002-02-25 15:19:47 +00:00
curt
0c7c478ce2 Split 'close_enough() function into 2d and 3d versions. 2002-02-25 15:18:57 +00:00
curt
4346b42897 Add hole flag to output 2002-02-25 15:18:06 +00:00
curt
af24dc6d24 Did a bit of code restructuring. Hopefully to open things up to add
runway lighting.
2002-02-25 05:11:55 +00:00
david
90fe08a7c0 Cygwin patches from Dave Luff. 2002-01-30 14:10:00 +00:00
david
fb472072cd Cygwin patches from Dave Luff. Reformatted (line wrap). 2002-01-30 14:09:44 +00:00
david
d2b2afc33d Cleaned up errors and warnings, mostly namespace problems with cout
and cerr, but also some SimGear linking problems.
2002-01-30 13:52:37 +00:00
david
b0a62b8c67 Added autogen.sh script to simplify creating autogenerated files. 2001-12-30 02:28:31 +00:00
david
bb4f7ffdfb Ignore more autogenerated files. 2001-12-30 02:24:10 +00:00
david
d3515ccc03 Bug fixes and improvements. 2001-12-30 02:22:11 +00:00
david
bc882d259d Added new area types Bog, Sand, Lava, FloodLand, IntermittentStream,
and PackIce, to support vmap0.
2001-12-30 02:21:23 +00:00
david
2b8ef0e7ae Removed autogenerated file from CVS. 2001-12-30 02:18:17 +00:00
david
a4e1215761 Ignore files for autogenerated files. 2001-12-30 02:16:03 +00:00
curt
c0b4508955 - fixes to support clamping to a small grid (improves triangulation)
(These are not yet enabled by default because we haven't addressed what
  happens when snapping a hole boundary, but not the original object to
  fit in the hole.)
2001-09-18 21:51:24 +00:00
curt
d1424d75c7 - add --height and --width options to build an area less than 10x10 2001-09-18 21:50:18 +00:00
curt
d8dc110d99 - don't clip against landmass (no longer suitable with new poly types)
- reduce the minimum area for a non-sliver by two orders of magnitude,
  to allow small road, river, and railroad segments
2001-09-18 21:50:06 +00:00
curt
73bd6d2087 - generate Makefiles for src/Lib/vpf and src/Prep/TGVPF 2001-09-18 21:30:12 +00:00
curt
bc0e84e259 - yet more bug-fixes to deal with padding IFO records to 80
characters; now works with DCW ponet files
- fixed another minor bug
- compatibility fixes
2001-09-18 21:28:47 +00:00
curt
e5028b5637 - added snap() function to snap a polygon to a grid 2001-09-18 21:27:54 +00:00
curt
afbe4fccbd - added Town area type for future use
- moved Town below Urban in priority list
- give freeways, roads, and railroads priority over lakes of various
  sorts
2001-09-18 21:27:33 +00:00
curt
c69d333d32 - added new program, tgvpf, to generate polygons from Vector Product
Format databases.
2001-09-18 21:24:14 +00:00
curt
3050aca5c7 - new library to support NIMA's Vector Product Format 2001-09-18 21:17:48 +00:00
curt
4e43a03fcb Shuffling. 2001-09-18 19:41:46 +00:00
curt
4f82e609e4 Rearranging tools. 2001-09-18 19:40:49 +00:00
curt
0bf8231029 Removed ... 2001-09-18 18:07:59 +00:00
curt
7a4bac978e Various Irix fixes. Thanks Erik! 2001-07-31 20:14:54 +00:00
curt
e03579349b Updated color scheme. 2001-07-31 20:14:36 +00:00
curt
f4d1b34776 Added support for tie down areas (width > 150 feet) and support for lakebed
taxiway types.
2001-07-31 20:13:56 +00:00
curt
fd2fc30ef5 - added support for points coverages -- can generate rectangular area
from points (i.e. villages)
2001-07-30 19:58:46 +00:00
curt
343dd022d0 - fixed bug that caused character-field (20-1) IFO fields to fail if they
straddled record boundaries; it appears the the E00 format expects
  all records to be right-padded with spaces to a length of 80 including
  the final newline (!!!)
- added some comments in case anyone is ever foolish enough to try to
  extend this library
2001-07-30 19:58:32 +00:00
curt
8506a3f4d5 - modified landcover code to borrow a cover type from an adjoining
tile if it ends up as default -- this will help avoid resolution
  errors near rivers, urban areas, etc.
2001-07-30 19:58:10 +00:00
curt
f9a8370433 Tweak size of grass area surrounding taxiways. 2001-07-16 01:57:46 +00:00
curt
19d9392863 Renamed libgpc to libgenpolyclip to avoid a conflict with the gnu pascal
compiler.
2001-07-11 00:43:55 +00:00