]> git.mxchange.org Git - flightgear.git/blob - Polygon/names.hxx
Initial revision.
[flightgear.git] / Polygon / names.hxx
1 // names.hxx -- process shapefiles names
2 //
3 // Written by Curtis Olson, started February 1999.
4 //
5 // Copyright (C) 1999  Curtis L. Olson  - curt@flightgear.org
6 //
7 // This program is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22 // (Log is kept at end of this file)
23  
24
25 #ifndef _NAMES_HXX
26 #define _NAMES_HXX
27
28
29 // libgfc.a includes need this bit o' strangeness
30 #if defined ( linux )
31 #  define _LINUX_
32 #endif
33 #include <gfc/gadt_polygon.h>
34 #include <gfc/gdbf.h>
35 #undef E
36 #undef DEG_TO_RAD
37 #undef RAD_TO_DEG
38
39
40 // Posible shape file types
41 enum AreaType {
42     AirportKeepArea = 0,
43     AirportIgnoreArea = 1,
44     MarshArea = 2,
45     OceanArea = 3,
46     LakeArea = 4,
47     DryLakeArea = 5,
48     IntLakeArea = 6,
49     ReservoirArea = 7,
50     IntReservoirArea = 8,
51     StreamArea = 9,
52     CanalArea = 10,
53     GlacierArea = 11,
54     VoidArea = 9997,
55     NullArea = 9998,
56     UnknownArea = 9999
57 };
58
59
60 // return the type of the shapefile record
61 AreaType get_area_type(GDBFile *dbf, int rec);
62
63 // return text form of area name
64 string get_area_name( AreaType area );
65
66
67 #endif // _NAMES_HXX
68
69
70 // $Log$
71 // Revision 1.1  1999/02/25 21:30:24  curt
72 // Initial revision.
73 //
74 // Revision 1.1  1999/02/23 01:29:05  curt
75 // Additional progress.
76 //