GEOS  3.14.0dev
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 #pragma once
21 
22 #include <geos/geom/Coordinate.h>
23 #include <geos/geom/Geometry.h>
24 #include <geos/linearref/LinearLocation.h>
25 
26 namespace geos {
27 namespace linearref { // geos::linearref
28 
45 private:
46  const geom::Geometry* linearGeom;
47 
48 public:
49 
63  static LinearLocation* indicesOf(const geom::Geometry* linearGeom, const geom::Geometry* subLine);
64 
65  LocationIndexOfLine(const geom::Geometry* linearGeom);
66 
68  LinearLocation* indicesOf(const geom::Geometry* subLine) const;
69 };
70 }
71 }
72 
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition: Geometry.h:197
Represents a location along a LineString or MultiLineString.
Definition: LinearLocation.h:43
Determines the location of a subline along a linear Geometry.
Definition: LocationIndexOfLine.h:39
static LinearLocation * indicesOf(const geom::Geometry *linearGeom, const geom::Geometry *subLine)
Determines the location of a subline along a linear Geometry.
LinearLocation * indicesOf(const geom::Geometry *subLine) const
Caller must take of releasing with delete[].
Basic namespace for all GEOS functionalities.
Definition: Angle.h:25