GEOS
3.7.2
include
geos
linearref
ExtractLineByLocation.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/ExtractLineByLocation.java rev. 1.10
17
*
18
**********************************************************************/
19
20
#ifndef GEOS_LINEARREF_EXTRACTLINEBYLOCATION_H
21
#define GEOS_LINEARREF_EXTRACTLINEBYLOCATION_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
36
class
ExtractLineByLocation
37
{
38
39
private
:
40
const
geom::Geometry *line;
41
geom::Geometry *reverse(
const
geom::Geometry *linear);
42
50
geom::LineString* computeLine(
const
LinearLocation& start,
const
LinearLocation& end);
51
59
geom::Geometry *computeLinear(
const
LinearLocation& start,
const
LinearLocation& end);
60
61
public
:
73
static
geom::Geometry *
extract
(
const
geom::Geometry *line,
const
LinearLocation& start,
const
LinearLocation& end);
74
75
ExtractLineByLocation(
const
geom::Geometry *line);
76
85
geom::Geometry *
extract
(
const
LinearLocation& start,
const
LinearLocation& end);
86
87
};
88
}
89
}
90
#endif
geos
Basic namespace for all GEOS functionalities.
Definition:
IndexedNestedRingTester.h:25
geos::linearref::ExtractLineByLocation::extract
static geom::Geometry * extract(const geom::Geometry *line, const LinearLocation &start, const LinearLocation &end)
Generated by
1.8.17