QGIS API Documentation 3.99.0-Master (2fe06baccd8)
Loading...
Searching...
No Matches
qgsspatialindexutils.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsgenericspatialindex.h
3 ------------------------
4 Date : December 2019
5 Copyright : (C) 2019 by Nyall Dawson
6 Email : nyall dot dawson 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 QGSSPATIALINDEXUTILS_H
17#define QGSSPATIALINDEXUTILS_H
18
19#include "qgis_core.h"
20
21#define SIP_NO_FILE
22
23class QgsRectangle;
24
26// forward declaration
27namespace SpatialIndex
28{
29 class IStorageManager;
30 class ISpatialIndex;
31 class Region;
32 class Point;
33
34 namespace StorageManager
35 {
36 class IBuffer;
37 }
38}
40
50class CORE_EXPORT QgsSpatialIndexUtils
51{
52 public:
53
57 static SpatialIndex::Region rectangleToRegion( const QgsRectangle &rectangle );
58
59};
60
61#endif // QGSSPATIALINDEXUTILS_H
A rectangle specified with double values.
Contains utility functions for working with spatial indexes.
static SpatialIndex::Region rectangleToRegion(const QgsRectangle &rectangle)
Converts a QGIS rectangle to a SpatialIndex region.