-
-
Notifications
You must be signed in to change notification settings - Fork 3k
/
qgspostgisbox3d.h
71 lines (46 loc) · 1.91 KB
/
qgspostgisbox3d.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
/***************************************************************************
qgspostgisbox3d.h - PostgreSQL/PostGIS "box3d" representation and
transformation
-------------------
begin : Feb 1, 2005
copyright : (C) 2005 by Brendan Morley
email : morb at ozemail dot com dot au
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
/* $Id$ */
#ifndef QGSPOSTGISBOX3D_H
#define QGSPOSTGISBOX3D_H
#include <string>
#include "qgsrectangle.h"
/*!
* \brief PostgreSQL/PostGIS "box3d" representation and transformation
\author Brendan Morley
\date March 2005
This object is designed to represent and transform the PostGIS "box3d"
data type.
\note Only 2 dimensions are handled at this time.
*/
class QgsPostGisBox3d : public QgsRectangle
{
public:
/*! Constructor from a string
\param box3d The box3d formed as a PostGIS SQL string,
formed by functions such as PQgetvalue
*/
QgsPostGisBox3d( std::string box3d );
~QgsPostGisBox3d();
/*! Returns this object as a PostGIS SQL-compatible QString
*/
QString toStringAsBox3d();
protected:
double zmin;
double zmax;
};
#endif