GEOS
3.5.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
geos
algorithm
distance
DistanceToPoint.h
1
/**********************************************************************
2
*
3
* GEOS - Geometry Engine Open Source
4
* http://geos.osgeo.org
5
*
6
* Copyright (C) 2009 Sandro Santilli <strk@keybit.net>
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/distance/DistanceToPoint.java 1.1 (JTS-1.9)
16
*
17
**********************************************************************/
18
19
#ifndef GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
20
#define GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
21
22
#include <geos/geom/LineSegment.h>
// for composition
23
24
namespace
geos {
25
namespace
algorithm {
26
namespace
distance {
27
class
PointPairDistance;
28
}
29
}
30
namespace
geom {
31
class
Geometry;
32
class
Coordinate;
33
class
LineString;
34
class
Polygon;
35
}
36
}
37
38
namespace
geos {
39
namespace
algorithm {
// geos::algorithm
40
namespace
distance {
// geos::algorithm::distance
41
47
class
DistanceToPoint
48
{
49
public
:
50
51
DistanceToPoint
() {}
52
53
static
void
computeDistance(
const
geom::Geometry
& geom,
54
const
geom::Coordinate
& pt,
55
PointPairDistance
& ptDist);
56
57
static
void
computeDistance(
const
geom::LineString
& geom,
58
const
geom::Coordinate
& pt,
59
PointPairDistance
& ptDist);
60
61
static
void
computeDistance(
const
geom::LineSegment
& geom,
62
const
geom::Coordinate
& pt,
63
PointPairDistance
& ptDist);
64
65
static
void
computeDistance(
const
geom::Polygon
& geom,
66
const
geom::Coordinate
& pt,
67
PointPairDistance
& ptDist);
68
69
};
70
71
}
// geos::algorithm::distance
72
}
// geos::algorithm
73
}
// geos
74
75
#endif // GEOS_ALGORITHM_DISTANCE_DISTANCETOPOINT_H
76
Generated on Tue Feb 23 2016 23:18:53 for GEOS by
1.8.2