GEOS  3.8.0dev
PointLocation.h
1 /**********************************************************************
2  *
3  * GEOS - Geometry Engine Open Source
4  * http://geos.osgeo.org
5  *
6  * Copyright (C) 2018 Paul Ramsey <pramsey@cleverlephant.ca>
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/PointLocation.java @ 2017-09-04
16  *
17  **********************************************************************/
18 
19 #ifndef GEOS_ALGORITHM_POINTLOCATION_H
20 #define GEOS_ALGORITHM_POINTLOCATION_H
21 
22 #include <geos/export.h>
23 #include <geos/geom/Coordinate.h>
24 #include <geos/geom/CoordinateSequence.h>
25 
26 namespace geos {
27 namespace algorithm { // geos::algorithm
28 
36 class GEOS_DLL PointLocation {
37 public:
38 
48  //static bool isOnLine(const Coordinate &p, const std::vector<Coordinate> &line);
49 
59  static bool isOnLine(const geom::Coordinate& p, const geom::CoordinateSequence* line);
60 
78  static bool isInRing(const geom::Coordinate& p, const std::vector<const geom::Coordinate*>& ring);
79  static bool isInRing(const geom::Coordinate& p, const geom::CoordinateSequence* ring);
80 
95  static int locateInRing(const geom::Coordinate& p, const std::vector<const geom::Coordinate*>& ring);
96  static int locateInRing(const geom::Coordinate& p, const geom::CoordinateSequence& ring);
97 
98 };
99 
100 
101 } // namespace geos::algorithm
102 } // namespace geos
103 
104 
105 #endif // GEOS_ALGORITHM_POINTLOCATION_H
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
Definition: PointLocation.h:36
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25
The internal representation of a list of coordinates inside a Geometry.
Definition: CoordinateSequence.h:58