GEOS 3.15.0dev
LinealExtracter.h
1/**********************************************************************
2 *
3 * GEOS - Geometry Engine Open Source
4 * http://geos.osgeo.org
5 *
6 * Copyright (C) 2026 ISciences LLC
7 *
8 * This is free software; you can redistribute and/or modify it under
9 * the terms of the GNU Lesser General Public Licence as published
10 * by the Free Software Foundation.
11 * See the COPYING file for more information.
12 *
13 **********************************************************************/
14
15#pragma once
16
17#include <geos/export.h>
18#include <geos/geom/Geometry.h>
19#include <vector>
20
21namespace geos {
22namespace geom { // geos.geom
23namespace util { // geos.geom.util
24
29class GEOS_DLL LinealExtracter {
30
31public:
32
39 static void getLineals(const Geometry& geom, std::vector<const Geometry*>& lineals);
40
41 static void getLineals(const Geometry* geom, std::vector<const Geometry*>& lineals);
42
43 // Declare type as noncopyable
44 LinealExtracter(const LinealExtracter& other) = delete;
45 LinealExtracter& operator=(const LinealExtracter& rhs) = delete;
46};
47
48} // namespace geos.geom.util
49} // namespace geos.geom
50} // namespace geos
51
Basic implementation of Geometry, constructed and destructed by GeometryFactory.
Definition Geometry.h:196
Extracts the lineal (LineString/LinearRing/CircularString/CompoundCurve/MultiLineString/MultiCurve) e...
Definition LinealExtracter.h:29
static void getLineals(const Geometry &geom, std::vector< const Geometry * > &lineals)
Basic namespace for all GEOS functionalities.
Definition geos.h:38