GEOS: LocationIndexOfPoint.h Source File

GEOS 3.5.0

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- File List

LocationIndexOfPoint.h
1 /**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2011 Sandro Santilli <strk@keybit.net>
7 * Copyright (C) 2005-2006 Refractions Research Inc.
8 * Copyright (C) 2001-2002 Vivid Solutions Inc.
9 *
10 * This is free software; you can redistribute and/or modify it under
11 * the terms of the GNU Lesser General Public Licence as published
12 * by the Free Software Foundation.
13 * See the COPYING file for more information.
14 *
15 **********************************************************************
16 *
17 * Last port: linearref/LinearGeometryBuilder.java r466
18 *
19 **********************************************************************/
20
21 #ifndef GEOS_LINEARREF_LOCATIONINDEXOFPOINT_H
22 #define GEOS_LINEARREF_LOCATIONINDEXOFPOINT_H
23
24 #include <geos/geom/Coordinate.h>
25 #include <geos/geom/Geometry.h>
26 #include <geos/linearref/LinearLocation.h>
27
28 namespace geos
29 {
30 namespace linearref // geos::linearref
31 {
32
40 class LocationIndexOfPoint
41 {
42
43 private:
44 const geom::Geometry *linearGeom;
45
46 LinearLocation indexOfFromStart(const geom::Coordinate& inputPt, const LinearLocation* minIndex) const;
47
48 public:
49 static LinearLocation indexOf(const geom::Geometry *linearGeom, const geom::Coordinate& inputPt);
50
51 static LinearLocation indexOfAfter(const geom::Geometry *linearGeom, const geom::Coordinate& inputPt, const LinearLocation* minIndex);
52
53 LocationIndexOfPoint(const geom::Geometry *linearGeom);
54
61 LinearLocation indexOf(const geom::Coordinate& inputPt) const;
77 LinearLocation indexOfAfter(const geom::Coordinate& inputPt, const LinearLocation* minIndex) const;
78 };
79 }
80 }
81 #endif
geos::geom::Coordinate
Coordinate is the lightweight class used to store coordinates.
Definition: Coordinate.h:60
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
geos::linearref::LocationIndexOfPoint
Definition: LocationIndexOfPoint.h:40
geos::linearref::LinearLocation
Represents a location along a LineString or MultiLineString.
Definition: LinearLocation.h:43
geos
Basic namespace for all GEOS functionalities.
Definition: IndexedNestedRingTester.h:25