GEOS
3.6.2
|
00001 /********************************************************************** 00002 * 00003 * GEOS - Geometry Engine Open Source 00004 * http://geos.osgeo.org 00005 * 00006 * Copyright (C) 2006 Refractions Research Inc. 00007 * 00008 * This is free software; you can redistribute and/or modify it under 00009 * the terms of the GNU Lesser General Public Licence as published 00010 * by the Free Software Foundation. 00011 * See the COPYING file for more information. 00012 * 00013 **********************************************************************/ 00014 00015 #ifndef GEOS_GEOM_DIMENSION_H 00016 #define GEOS_GEOM_DIMENSION_H 00017 00018 #include <geos/export.h> 00019 #include <geos/inline.h> 00020 00021 namespace geos { 00022 namespace geom { // geos::geom 00023 00025 // 00029 class GEOS_DLL Dimension { 00030 public: 00031 enum DimensionType { 00033 DONTCARE=-3, 00034 00036 True=-2, 00037 00039 False=-1, 00040 00042 P=0, 00043 00045 L=1, 00046 00048 A=2 00049 }; 00050 00051 //static const int P = 0; /// Dimension value of a point (0). 00052 //static const int L = 1; /// Dimension value of a curve (1). 00053 //static const int A = 2; /// Dimension value of a surface (2). 00054 //static const int False = -1; /// Dimension value of the empty geometry (-1). 00055 //static const int True = -2; /// Dimension value of non-empty geometries (= {P, L, A}). 00056 //static const int DONTCARE = -3; /// Dimension value for any dimension (= {FALSE, TRUE}). 00057 static char toDimensionSymbol(int dimensionValue); 00058 00059 static int toDimensionValue(char dimensionSymbol); 00060 00061 }; 00062 00063 } // namespace geos::geom 00064 } // namespace geos 00065 00066 #ifdef GEOS_INLINE 00067 # include "geos/geom/Envelope.inl" 00068 #endif 00069 00070 #endif // ndef GEOS_GEOM_DIMENSION_H