GEOS 3.14.0dev
DimensionLocation.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (c) 2024 Martin Davis
7 * Copyright (C) 2024 Paul Ramsey <pramsey@cleverelephant.ca>
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************/
15
16#pragma once
17
18#include <geos/geom/Location.h>
19#include <geos/export.h>
20
21namespace geos { // geos.
22namespace operation { // geos.operation
23namespace relateng { // geos.operation.relateng
24
25
26class GEOS_DLL DimensionLocation {
28
29public:
30
31 enum DimensionLocationType {
32 EXTERIOR = 2, // == Location.EXTERIOR
33 POINT_INTERIOR = 103,
34 LINE_INTERIOR = 110,
35 LINE_BOUNDARY = 111,
36 AREA_INTERIOR = 120,
37 AREA_BOUNDARY = 121
38 };
39
40 static int locationArea(Location loc);
41
42 static int locationLine(Location loc);
43
44 static int locationPoint(Location loc);
45
46 static Location location(int dimLoc);
47
48 static int dimension(int dimLoc);
49
50 static int dimension(int dimLoc, int exteriorDim);
51
52};
53
54} // namespace geos.operation.relateng
55} // namespace geos.operation
56} // namespace geos
57
Location
Constants representing the location of a point relative to a geometry.
Definition Location.h:32
Basic namespace for all GEOS functionalities.
Definition geos.h:39