1 /***************************************************************************
2   qgsvectortilemvtutils.h
3   --------------------------------------
4   Date                 : April 2020
5   Copyright            : (C) 2020 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 QGSVECTORTILEMVTUTILS_H
17 #define QGSVECTORTILEMVTUTILS_H
18 
19 #define SIP_NO_FILE
20 
21 class QgsLineString;
22 
23 
24 /**
25  * \ingroup core
26  * \brief Assorted utility functions used during MVT decoding and encoding.
27  *
28  * \since QGIS 3.14
29  */
30 class QgsVectorTileMVTUtils
31 {
32   public:
33 
34     /**
35      * Returns whether this linear ring forms an exterior ring according to MVT spec
36      * (depending on the orientation - clockwise or counter-clockwise)
37      */
38     static bool isExteriorRing( const QgsLineString *lineString );
39 };
40 
41 #endif // QGSVECTORTILEMVTUTILS_H
42