GEOS
3.8.0
include
geos
algorithm
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
#include <geos/geom/Location.h>
26
27
namespace
geos
{
28
namespace
algorithm {
// geos::algorithm
29
37
class
GEOS_DLL PointLocation {
38
public
:
39
49
static
bool
isOnLine(
const
geom::Coordinate& p,
const
geom::CoordinateSequence* line);
50
67
static
bool
isInRing(
const
geom::Coordinate& p,
const
std::vector<const geom::Coordinate*>& ring);
68
static
bool
isInRing(
const
geom::Coordinate& p,
const
geom::CoordinateSequence* ring);
69
82
static
geom::Location
locateInRing(
const
geom::Coordinate
& p,
const
std::vector<const geom::Coordinate*>& ring);
83
static
geom::Location
locateInRing(
const
geom::Coordinate
& p,
const
geom::CoordinateSequence
& ring);
84
85
};
86
87
88
}
// namespace geos::algorithm
89
}
// namespace geos
90
91
92
#endif // GEOS_ALGORITHM_POINTLOCATION_H
geos::geom::Location
Location
Constants representing the location of a point relative to a geometry.
Definition:
Location.h:58
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:25
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition:
Coordinate.h:84
geos::geom::CoordinateSequence
The internal representation of a list of coordinates inside a Geometry.
Definition:
CoordinateSequence.h:58
Generated by
1.8.17