1999-02-25 21:30:24 +00:00
|
|
|
// names.hxx -- process shapefiles names
|
|
|
|
//
|
|
|
|
// Written by Curtis Olson, started February 1999.
|
|
|
|
//
|
|
|
|
// Copyright (C) 1999 Curtis L. Olson - curt@flightgear.org
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation; either version 2 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// This program is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with this program; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
// (Log is kept at end of this file)
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _NAMES_HXX
|
|
|
|
#define _NAMES_HXX
|
|
|
|
|
|
|
|
|
1999-03-27 05:31:24 +00:00
|
|
|
#include <Include/compiler.h>
|
|
|
|
|
|
|
|
#include STL_STRING
|
|
|
|
|
|
|
|
FG_USING_STD(string);
|
|
|
|
|
|
|
|
|
1999-02-26 22:10:42 +00:00
|
|
|
// Posible shape file types. Note the order of these is important and
|
|
|
|
// defines the priority of these shapes if they should intersect. The
|
|
|
|
// smaller the number, the higher the priority.
|
1999-02-25 21:30:24 +00:00
|
|
|
enum AreaType {
|
1999-03-27 05:31:24 +00:00
|
|
|
DefaultArea = 0,
|
|
|
|
AirportKeepArea = 1,
|
|
|
|
AirportIgnoreArea = 2,
|
|
|
|
OceanArea = 3,
|
|
|
|
LakeArea = 4,
|
|
|
|
DryLakeArea = 5,
|
|
|
|
IntLakeArea = 6,
|
|
|
|
ReservoirArea = 7,
|
|
|
|
IntReservoirArea = 8,
|
|
|
|
StreamArea = 9,
|
|
|
|
CanalArea = 10,
|
|
|
|
GlacierArea = 11,
|
|
|
|
MarshArea = 12,
|
1999-02-26 22:10:42 +00:00
|
|
|
VoidArea = 9997,
|
|
|
|
NullArea = 9998,
|
|
|
|
UnknownArea = 9999
|
1999-02-25 21:30:24 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
1999-03-01 15:35:52 +00:00
|
|
|
// return area type from text name
|
|
|
|
AreaType get_area_type( string area );
|
1999-02-25 21:30:24 +00:00
|
|
|
|
|
|
|
// return text form of area name
|
|
|
|
string get_area_name( AreaType area );
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _NAMES_HXX
|
|
|
|
|
|
|
|
|
|
|
|
// $Log$
|
1999-03-27 05:31:24 +00:00
|
|
|
// Revision 1.5 1999/03/27 05:31:25 curt
|
|
|
|
// Make 0 the default area type since this corresponds well with the conventions
|
|
|
|
// used by the triangulator.
|
|
|
|
//
|
1999-03-22 23:49:29 +00:00
|
|
|
// Revision 1.4 1999/03/22 23:49:30 curt
|
|
|
|
// Moved AreaType get_shapefile_type(GDBFile *dbf, int rec) to where it
|
|
|
|
// belongs in ShapeFile/
|
|
|
|
//
|
1999-03-01 15:35:52 +00:00
|
|
|
// Revision 1.3 1999/03/01 15:35:53 curt
|
|
|
|
// Generalized the routines a bit to make them more useful.
|
|
|
|
//
|
1999-02-26 22:10:42 +00:00
|
|
|
// Revision 1.2 1999/02/26 22:10:42 curt
|
|
|
|
// Updated names and priorities of area types.
|
|
|
|
//
|
1999-02-25 21:30:24 +00:00
|
|
|
// Revision 1.1 1999/02/25 21:30:24 curt
|
|
|
|
// Initial revision.
|
|
|
|
//
|
|
|
|
// Revision 1.1 1999/02/23 01:29:05 curt
|
|
|
|
// Additional progress.
|
|
|
|
//
|