GEOS
3.7.2
include
geos
operation
distance
GeometryLocation.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
* Last port: operation/distance/GeometryLocation.java rev. 1.7 (JTS-1.10)
16
*
17
**********************************************************************/
18
19
#ifndef GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
20
#define GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
21
22
#include <geos/export.h>
23
24
#include <geos/geom/Coordinate.h>
// for composition
25
26
// Forward declarations
27
namespace
geos
{
28
namespace
geom {
29
class
Geometry;
30
}
31
}
32
33
34
namespace
geos
{
35
namespace
operation {
// geos::operation
36
namespace
distance {
// geos::operation::distance
37
38
50
class
GEOS_DLL
GeometryLocation
{
51
private
:
52
const
geom::Geometry
*component;
53
int
segIndex;
54
geom::Coordinate
pt;
55
public
:
63
static
const
int
INSIDE_AREA = -1;
64
74
GeometryLocation
(
const
geom::Geometry
*component,
75
int
segIndex,
const
geom::Coordinate
&pt);
76
84
GeometryLocation
(
const
geom::Geometry
*component,
85
const
geom::Coordinate
&pt);
86
90
const
geom::Geometry
* getGeometryComponent();
91
100
int
getSegmentIndex();
101
105
geom::Coordinate
& getCoordinate();
106
111
bool
isInsideArea();
112
};
113
114
}
// namespace geos::operation::distance
115
}
// namespace geos::operation
116
}
// namespace geos
117
118
#endif // GEOS_OP_DISTANCE_GEOMETRYLOCATION_H
119
geos::operation::distance::GeometryLocation
Represents the location of a point on a Geometry.
Definition:
GeometryLocation.h:50
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:25
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition:
Coordinate.h:84
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition:
Geometry.h:177
Generated by
1.8.17