GEOS 3.14.0dev
Dimension.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2006 Refractions Research Inc.
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#pragma once
16
17#include <geos/export.h>
18
19namespace geos {
20namespace geom { // geos::geom
21
27class GEOS_DLL Dimension {
28public:
31 DONTCARE = -3,
32
34 True = -2,
35
37 False = -1,
38
40 P = 0,
41
43 L = 1,
44
46 A = 2
47 };
48
49 //static const int P = 0; /// Dimension value of a point (0).
50 //static const int L = 1; /// Dimension value of a curve (1).
51 //static const int A = 2; /// Dimension value of a surface (2).
52 //static const int False = -1; /// Dimension value of the empty geometry (-1).
53 //static const int True = -2; /// Dimension value of non-empty geometries (= {P, L, A}).
54 //static const int DONTCARE = -3; /// Dimension value for any dimension (= {FALSE, TRUE}).
55 static char toDimensionSymbol(int dimensionValue);
56
57 static int toDimensionValue(char dimensionSymbol);
58
59};
60
61} // namespace geos::geom
62} // namespace geos
63
64
Definition Dimension.h:27
DimensionType
Definition Dimension.h:29
Basic namespace for all GEOS functionalities.
Definition geos.h:39