GEOS  3.3.3
ExtractLineByLocation.h
1 /**********************************************************************
2  * $Id: ExtractLineByLocation.h 2809 2009-12-06 01:05:24Z mloskot $
3  *
4  * GEOS - Geometry Engine Open Source
5  * http://geos.refractions.net
6  *
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/ExtractLineByLocation.java rev. 1.10
18  *
19  **********************************************************************/
20 
21 #ifndef GEOS_LINEARREF_EXTRACTLINEBYLOCATION_H
22 #define GEOS_LINEARREF_EXTRACTLINEBYLOCATION_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 
38 {
39 
40 private:
41  const geom::Geometry *line;
42  geom::Geometry *reverse(const geom::Geometry *linear);
43 
51  geom::LineString* computeLine(const LinearLocation& start, const LinearLocation& end);
52 
60  geom::Geometry *computeLinear(const LinearLocation& start, const LinearLocation& end);
61 
62 public:
74  static geom::Geometry *extract(const geom::Geometry *line, const LinearLocation& start, const LinearLocation& end);
75 
77 
86  geom::Geometry *extract(const LinearLocation& start, const LinearLocation& end);
87 
88 };
89 }
90 }
91 #endif