GEOS
3.8.1
include
geos
algorithm
InteriorPointArea.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2019 Martin Davis <mtnclimb@gmail.com>
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: algorithm/InteriorPointArea.java (JTS-1.17+)
16
* https://github.com/locationtech/jts/commit/a140ca30cc51be4f65c950a30b0a8f51a6df75ba
17
*
18
**********************************************************************/
19
20
#ifndef GEOS_ALGORITHM_INTERIORPOINTAREA_H
21
#define GEOS_ALGORITHM_INTERIORPOINTAREA_H
22
23
#include <geos/export.h>
24
#include <geos/geom/Coordinate.h>
25
26
// Forward declarations
27
namespace
geos
{
28
namespace
geom {
29
class
Geometry;
30
class
Polygon;
31
}
32
}
33
34
namespace
geos
{
35
namespace
algorithm {
// geos::algorithm
36
80
class
GEOS_DLL InteriorPointArea {
81
82
public
:
89
InteriorPointArea(
const
geom::Geometry* g);
90
97
bool
getInteriorPoint(geom::Coordinate& ret)
const
;
98
99
private
:
100
geom::Coordinate interiorPoint;
101
double
maxWidth;
102
103
void
process(
const
geom::Geometry* geom);
104
105
void
processPolygon(
const
geom::Polygon* polygon);
106
107
};
108
109
}
// namespace geos::algorithm
110
}
// namespace geos
111
112
#endif // GEOS_ALGORITHM_INTERIORPOINTAREA_H
113
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:24
Generated by
1.8.16