1 /***************************************************************************
2   qgsgeometrymakevalid.h
3   --------------------------------------
4   Date                 : January 2017
5   Copyright            : (C) 2017 by Martin Dobias
6   Email                : wonder dot sk at gmail dot com
7  ***************************************************************************
8  *                                                                         *
9  *   This program is free software; you can redistribute it and/or modify  *
10  *   it under the terms of the GNU General Public License as published by  *
11  *   the Free Software Foundation; either version 2 of the License, or     *
12  *   (at your option) any later version.                                   *
13  *                                                                         *
14  ***************************************************************************/
15 
16 #ifndef QGSGEOMETRYMAKEVALID_H
17 #define QGSGEOMETRYMAKEVALID_H
18 
19 #define SIP_NO_FILE
20 
21 #if ( GEOS_VERSION_MAJOR == 3 && GEOS_VERSION_MINOR<8 )
22 
23 #include <memory>
24 
25 class QString;
26 class QgsAbstractGeometry;
27 
28 //! Implementation of QgsGeometry::makeValid(). Not a public API.
29 std::unique_ptr< QgsAbstractGeometry > _qgis_lwgeom_make_valid( const QgsAbstractGeometry *lwgeom_in, QString &errorMessage );
30 
31 #endif
32 
33 #endif // QGSGEOMETRYMAKEVALID_H
34