]> git.mxchange.org Git - flightgear.git/blob - Polygon/names.hxx
Moved AreaType get_shapefile_type(GDBFile *dbf, int rec) to where it
[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 // Posible shape file types.  Note the order of these is important and
30 // defines the priority of these shapes if they should intersect.  The
31 // smaller the number, the higher the priority.
32 enum AreaType {
33     AirportKeepArea   = 0,
34     AirportIgnoreArea = 1,
35     OceanArea         = 2,
36     LakeArea          = 3,
37     DryLakeArea       = 4,
38     IntLakeArea       = 5,
39     ReservoirArea     = 6,
40     IntReservoirArea  = 7,
41     StreamArea        = 8,
42     CanalArea         = 9,
43     GlacierArea       = 10,
44     MarshArea         = 11,
45     VoidArea          = 9997,
46     NullArea          = 9998,
47     UnknownArea       = 9999
48 };
49
50
51 // return area type from text name
52 AreaType get_area_type( string area );
53
54 // return text form of area name
55 string get_area_name( AreaType area );
56
57
58 #endif // _NAMES_HXX
59
60
61 // $Log$
62 // Revision 1.4  1999/03/22 23:49:30  curt
63 // Moved AreaType get_shapefile_type(GDBFile *dbf, int rec) to where it
64 // belongs in ShapeFile/
65 //
66 // Revision 1.3  1999/03/01 15:35:53  curt
67 // Generalized the routines a bit to make them more useful.
68 //
69 // Revision 1.2  1999/02/26 22:10:42  curt
70 // Updated names and priorities of area types.
71 //
72 // Revision 1.1  1999/02/25 21:30:24  curt
73 // Initial revision.
74 //
75 // Revision 1.1  1999/02/23 01:29:05  curt
76 // Additional progress.
77 //