正在显示
4 个修改的文件
包含
0 行增加
和
90 行删除
@@ -11,7 +11,6 @@ SET (TILESERVER_SRCS | @@ -11,7 +11,6 @@ SET (TILESERVER_SRCS | ||
11 | wmts/dmpesribundlev2provider.cpp | 11 | wmts/dmpesribundlev2provider.cpp |
12 | wmts/dmpabstractesribundleprovider.cpp | 12 | wmts/dmpabstractesribundleprovider.cpp |
13 | wmts/dmpcapabilitiesoperation.cpp | 13 | wmts/dmpcapabilitiesoperation.cpp |
14 | - # dmpwmtsservice.cpp | ||
15 | wmts/dmpwmtsutils.cpp | 14 | wmts/dmpwmtsutils.cpp |
16 | tms/dmptms.cpp | 15 | tms/dmptms.cpp |
17 | tms/dmptmstileprovider.cpp | 16 | tms/dmptmstileprovider.cpp |
@@ -28,7 +27,6 @@ SET (TILESERVER_HDRS | @@ -28,7 +27,6 @@ SET (TILESERVER_HDRS | ||
28 | wmts/dmpabstractesribundleprovider.h | 27 | wmts/dmpabstractesribundleprovider.h |
29 | wmts/dmpcapabilitiesoperation.h | 28 | wmts/dmpcapabilitiesoperation.h |
30 | wmts/dmpcapabilitiesprovider.h | 29 | wmts/dmpcapabilitiesprovider.h |
31 | - # dmpwmtsservice.h | ||
32 | wmts/dmpwmtsutils.h | 30 | wmts/dmpwmtsutils.h |
33 | tms/dmptms.h | 31 | tms/dmptms.h |
34 | tms/dmptmstileprovider.h | 32 | tms/dmptmstileprovider.h |
@@ -22,7 +22,6 @@ | @@ -22,7 +22,6 @@ | ||
22 | #include "dmplogger.h" | 22 | #include "dmplogger.h" |
23 | #include "dmptileproviderfactory.h" | 23 | #include "dmptileproviderfactory.h" |
24 | #include "dmpserverrequest.h" | 24 | #include "dmpserverrequest.h" |
25 | -#include "dmpwmtsservice.h" | ||
26 | #include "dmpwmts.h" | 25 | #include "dmpwmts.h" |
27 | #include "dmptilelayer.h" | 26 | #include "dmptilelayer.h" |
28 | 27 |
1 | -/************************************************************************** | ||
2 | -* file: dmpwmtsservice.cpp | ||
3 | - | ||
4 | -* Author: wanzhongping | ||
5 | -* Date: 2021-07-28 11:34:16 | ||
6 | -* Email: zhongpingw@chinadci.com | ||
7 | -* copyright: 广州城市信息研究所有限公司 | ||
8 | -***************************************************************************/ | ||
9 | -#include "dmpwmtsservice.h" | ||
10 | - | ||
11 | -// DmpWMTSService::DmpWMTSService() | ||
12 | -// : DmpService() | ||
13 | -// { | ||
14 | -// map_type_ = MapServerType::WMTS_SERVER; | ||
15 | -// //AddProperty("tilePath","/usr/local/dmap4/gdmap/_alllayers"); | ||
16 | -// //AddProperty("tilePath","/mnt/d/Code/tiles/gdmap/_alllayers"); | ||
17 | -// //AddProperty("tileVersion","1"); | ||
18 | -// } | ||
19 | -// DmpWMTSService::~DmpWMTSService() | ||
20 | -// { | ||
21 | -// } | ||
22 | -// bool DmpWMTSService::Read(boost::property_tree::ptree &pt_node) | ||
23 | -// { | ||
24 | -// try { | ||
25 | -// enabled_ = pt_node.get<bool>("enabled"); | ||
26 | -// capabilities_ = pt_node.get<std::string>("capabilities"); | ||
27 | - | ||
28 | -// //读取属性 | ||
29 | -// for (auto property : pt_node.get_child("properties")) | ||
30 | -// { | ||
31 | -// std::string key = property.first; | ||
32 | -// std::string val = property.second.data(); | ||
33 | -// AddProperty(key, val); | ||
34 | -// } | ||
35 | - | ||
36 | -// } | ||
37 | -// catch(std::exception ex) { | ||
38 | -// return false; | ||
39 | -// } | ||
40 | -// return true; | ||
41 | -// } | ||
42 | -// bool DmpWMTSService::Write(boost::property_tree::ptree &pt_node) | ||
43 | -// { | ||
44 | -// pt_node.put("typeName", (int)map_type_); | ||
45 | -// pt_node.put("capabilities", capabilities_); | ||
46 | -// pt_node.put("enabled", enabled_); | ||
47 | - | ||
48 | -// boost::property_tree::ptree pt_subitem; | ||
49 | -// std::map<std::string, std::string>::iterator iter = properties_.begin(); | ||
50 | -// while(iter != properties_.end()) | ||
51 | -// { | ||
52 | -// pt_subitem.put(iter->first, iter->second); | ||
53 | -// ++iter; | ||
54 | -// } | ||
55 | -// pt_node.put_child("properties", pt_subitem); | ||
56 | - | ||
57 | -// return true; | ||
58 | -// } |
1 | -/************************************************************************** | ||
2 | -* file: dmpwmtsservice.h | ||
3 | - | ||
4 | -* Author: wanzhongping | ||
5 | -* Date: 2021-07-28 11:34:06 | ||
6 | -* Email: zhongpingw@chinadci.com | ||
7 | -* copyright: 广州城市信息研究所有限公司 | ||
8 | -***************************************************************************/ | ||
9 | - | ||
10 | -#ifndef __dmpwmtsservice_h__ | ||
11 | -#define __dmpwmtsservice_h__ | ||
12 | -#include "dmpservice.h" | ||
13 | - | ||
14 | - | ||
15 | -// class DmpWMTSService : public DmpService | ||
16 | -// { | ||
17 | -// public: | ||
18 | -// DmpWMTSService(); | ||
19 | -// virtual ~DmpWMTSService(); | ||
20 | -// virtual bool Read(boost::property_tree::ptree &pt_node) override; | ||
21 | -// virtual bool Write(boost::property_tree::ptree &pt_node) override; | ||
22 | - | ||
23 | - | ||
24 | -// protected: | ||
25 | -// std::string capabilities_; | ||
26 | -// bool enabled_; | ||
27 | -// }; | ||
28 | - | ||
29 | -#endif // __dmpwmtsservice_h__ |
请
注册
或
登录
后发表评论