GEOS
3.12.0
include
geos
algorithm
InteriorPointLine.h
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: algorithm/InteriorPointLine.java r317 (JTS-1.12)
17
*
18
**********************************************************************/
19
20
#pragma once
21
22
#include <geos/export.h>
23
#include <geos/geom/Coordinate.h>
24
25
// Forward declarations
26
namespace
geos
{
27
namespace
geom {
28
class
Geometry;
29
class
CoordinateSequence;
30
}
31
}
32
33
34
namespace
geos
{
35
namespace
algorithm {
// geos::algorithm
36
47
class
GEOS_DLL
InteriorPointLine
{
48
public
:
49
50
InteriorPointLine
(
const
geom::Geometry
* g);
51
//Coordinate* getInteriorPoint() const;
52
53
bool
getInteriorPoint(
geom::Coordinate
& ret)
const
;
54
55
private
:
56
57
bool
hasInterior;
58
59
geom::Coordinate
centroid;
60
61
double
minDistance;
62
63
geom::Coordinate
interiorPoint;
64
65
void
addInterior(
const
geom::Geometry
* geom);
66
67
void
addInterior(
const
geom::CoordinateSequence
* pts);
68
69
void
addEndpoints(
const
geom::Geometry
* geom);
70
71
void
addEndpoints(
const
geom::CoordinateSequence
* pts);
72
73
void
add(
const
geom::Coordinate
& point);
74
75
};
76
77
}
// namespace geos::algorithm
78
}
// namespace geos
79
geos::algorithm::InteriorPointLine
Computes a point in the interior of an linear geometry.
Definition:
InteriorPointLine.h:47
geos
Basic namespace for all GEOS functionalities.
Definition:
Angle.h:25
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition:
Coordinate.h:216
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition:
Geometry.h:186
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition:
CoordinateSequence.h:56
Generated by
1.8.20