line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
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
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
#ifndef GEOS_ALGORITHM_LOCATE_POINTONGEOMETRYLOCATOR_H |
17
|
|
|
|
|
|
|
#define GEOS_ALGORITHM_LOCATE_POINTONGEOMETRYLOCATOR_H |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
namespace geos { |
20
|
|
|
|
|
|
|
namespace geom { |
21
|
|
|
|
|
|
|
class Coordinate; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
} |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
namespace geos { |
26
|
|
|
|
|
|
|
namespace algorithm { // geos::algorithm |
27
|
|
|
|
|
|
|
namespace locate { // geos::algorithm::locate |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
/** \brief |
30
|
|
|
|
|
|
|
* An interface for classes which determine the {@link Location} of |
31
|
|
|
|
|
|
|
* points in {@link Polygon} or {@link MultiPolygon} geometries. |
32
|
|
|
|
|
|
|
* |
33
|
|
|
|
|
|
|
* @author Martin Davis |
34
|
|
|
|
|
|
|
*/ |
35
|
1
|
|
|
|
|
|
class PointOnGeometryLocator |
36
|
|
|
|
|
|
|
{ |
37
|
|
|
|
|
|
|
private: |
38
|
|
|
|
|
|
|
protected: |
39
|
|
|
|
|
|
|
public: |
40
|
1
|
|
|
|
|
|
virtual ~PointOnGeometryLocator() |
41
|
1
|
50
|
|
|
|
|
{ } |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
/** |
44
|
|
|
|
|
|
|
* Determines the {@link Location} of a point in an areal {@link Geometry}. |
45
|
|
|
|
|
|
|
* |
46
|
|
|
|
|
|
|
* @param p the point to test |
47
|
|
|
|
|
|
|
* @return the location of the point in the geometry |
48
|
|
|
|
|
|
|
*/ |
49
|
|
|
|
|
|
|
virtual int locate( const geom::Coordinate * /*const*/ p) =0; |
50
|
|
|
|
|
|
|
}; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
} // geos::algorithm::locate |
53
|
|
|
|
|
|
|
} // geos::algorithm |
54
|
|
|
|
|
|
|
} // geos |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
#endif // GEOS_ALGORITHM_LOCATE_POINTONGEOMETRYLOCATOR_H |