dmpvectorthinlayer.cpp
1.1 KB
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
/**************************************************************************
* file: dmpvectorthinlayer.cpp
* Author: qingxiongf
* Date: 2021-12-13 10:05:35
* Email: qingxiongf@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#include "dmpvectorthinlayer.h"
DmpVectorThinLayer::DmpVectorThinLayer(/* args */)
{
}
DmpVectorThinLayer::~DmpVectorThinLayer()
{
}
bool DmpVectorThinLayer::IsCurrentLayer(double d)
{
if(d > m_ddis)
{
return true;
}
return false;
}
bool DmpVectorThinLayer::Init(double minX, double minY, double maxX, double maxY, int dxCount, int dyCount,std::string tableName)
{
m_ddis = std::max( (maxX - minX)/ dxCount, (maxY - minY)/ dyCount);
m_tableName = tableName;
return true;
}
bool DmpVectorThinLayer::Init(double dis,std::string tableName)
{
m_ddis =dis;
m_tableName = tableName;
return true;
}
double DmpVectorThinLayer::GeDisPix()
{
return this->m_ddis;
}