GEOS
3.9.1dev
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
include
geos
operation
valid
TopologyValidationError.h
Go to the documentation of this file.
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2005-2006 Refractions Research Inc.
7
* Copyright (C) 2001-2002 Vivid Solutions Inc.
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
* Last port: operation/valid/TopologyValidationError.java rev. 1.16 (JTS-1.10)
17
*
18
**********************************************************************/
19
20
#ifndef GEOS_OP_TOPOLOGYVALIDATIONERROR_H
21
#define GEOS_OP_TOPOLOGYVALIDATIONERROR_H
22
23
#include <
geos/export.h
>
24
#include <string>
25
26
#include <
geos/geom/Coordinate.h
>
// for composition
27
28
// Forward declarations
29
// none required
30
31
namespace
geos
{
32
namespace
operation {
// geos::operation
33
namespace
valid {
// geos::operation::valid
34
40
class
GEOS_DLL
TopologyValidationError
{
41
public
:
42
43
enum
errorEnum
{
44
eError
,
45
eRepeatedPoint
,
46
eHoleOutsideShell
,
47
eNestedHoles
,
48
eDisconnectedInterior
,
49
eSelfIntersection
,
50
eRingSelfIntersection
,
51
eNestedShells
,
52
eDuplicatedRings
,
53
eTooFewPoints
,
54
eInvalidCoordinate
,
55
eRingNotClosed
56
};
57
58
TopologyValidationError
(
int
newErrorType,
const
geom::Coordinate
& newPt);
59
TopologyValidationError
(
int
newErrorType);
60
geom::Coordinate
& getCoordinate();
61
std::string getMessage();
62
int
getErrorType();
63
std::string toString();
64
65
private
:
66
// Used const char* to reduce dynamic allocations
67
static
const
char
* errMsg[];
68
int
errorType
;
69
geom::Coordinate
pt
;
70
};
71
72
73
}
// namespace geos.operation.valid
74
}
// namespace geos.operation
75
}
// namespace geos
76
77
#endif // GEOS_OP_TOPOLOGYVALIDATIONERROR_H
geos::operation::valid::TopologyValidationError::pt
geom::Coordinate pt
Definition:
TopologyValidationError.h:69
GEOS_DLL
#define GEOS_DLL
Definition:
export.h:28
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition:
Coordinate.h:60
export.h
geos::operation::valid::TopologyValidationError::eTooFewPoints
Definition:
TopologyValidationError.h:53
geos::operation::valid::TopologyValidationError::errorType
int errorType
Definition:
TopologyValidationError.h:68
geos::operation::valid::TopologyValidationError::eError
Definition:
TopologyValidationError.h:44
geos::operation::valid::TopologyValidationError::eRingSelfIntersection
Definition:
TopologyValidationError.h:50
geos::operation::valid::TopologyValidationError::eRepeatedPoint
Definition:
TopologyValidationError.h:45
geos::operation::valid::TopologyValidationError::eNestedHoles
Definition:
TopologyValidationError.h:47
geos::operation::valid::TopologyValidationError::errorEnum
errorEnum
Definition:
TopologyValidationError.h:43
geos::operation::valid::TopologyValidationError::eSelfIntersection
Definition:
TopologyValidationError.h:49
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:26
geos::operation::valid::TopologyValidationError::eInvalidCoordinate
Definition:
TopologyValidationError.h:54
Coordinate.h
geos::operation::valid::TopologyValidationError
Contains information about the nature and location of a geom::Geometry validation error...
Definition:
TopologyValidationError.h:40
geos::operation::valid::TopologyValidationError::eDuplicatedRings
Definition:
TopologyValidationError.h:52
geos::operation::valid::TopologyValidationError::eNestedShells
Definition:
TopologyValidationError.h:51
geos::operation::valid::TopologyValidationError::eHoleOutsideShell
Definition:
TopologyValidationError.h:46
geos::operation::valid::TopologyValidationError::eDisconnectedInterior
Definition:
TopologyValidationError.h:48
Generated by
1.8.11