GEOS: LocationIndexOfLine.h Source File

GEOS 3.5.0

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

- File List

LocationIndexOfLine.h
1 /**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2005-2006 Refractions Research Inc.
7 * Copyright (C) 2001-2002 Vivid Solutions Inc.
8 *
9 * This is free software; you can redistribute and/or modify it under
10 * the terms of the GNU Lesser General Public Licence as published
11 * by the Free Software Foundation.
12 * See the COPYING file for more information.
13 *
14 **********************************************************************
15 *
16 * Last port: linearref/LocationIndexOfLine.java r731
17 *
18 **********************************************************************/
19
20 #ifndef GEOS_LINEARREF_LOCATIONINDEXOFLINE_H
21 #define GEOS_LINEARREF_LOCATIONINDEXOFLINE_H
22
23 #include <geos/geom/Coordinate.h>
24 #include <geos/geom/Geometry.h>
25 #include <geos/linearref/LinearLocation.h>
26
27 namespace geos
28 {
29 namespace linearref // geos::linearref
30 {
31
41 class LocationIndexOfLine
42 {
48 private:
49 const geom::Geometry* linearGeom;
50
51 public:
52
66 static LinearLocation* indicesOf(const geom::Geometry* linearGeom, const geom::Geometry* subLine);
67
68 LocationIndexOfLine(const geom::Geometry* linearGeom);
69
71 LinearLocation* indicesOf(const geom::Geometry* subLine) const;
72 };
73 }
74 }
75
76 #endif
geos::linearref::LocationIndexOfLine::indicesOf
static LinearLocation * indicesOf(const geom::Geometry *linearGeom, const geom::Geometry *subLine)
Determines the location of a subline along a linear Geometry.
geos::linearref::LocationIndexOfLine
Definition: LocationIndexOfLine.h:41
geos::geom::Geometry
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:167
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