dmpxmlutils.cpp
763 Bytes
/**************************************************************************
* file: dmpxmlutils.cpp
* Author: wanzhongping
* Date: 2021-11-16 14:45:21
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#include "dmpxmlutils.h"
DmpRectangle DmpXmlUtils::readRectangle(const boost::property_tree::ptree &pNode)
{
DmpRectangle extent;
double xmin = pNode.get<double>("xmin");
double ymin = pNode.get<double>("ymin");
double xmax = pNode.get<double>("xmax");
double ymax = pNode.get<double>("ymax");
extent.set(xmin,ymin,xmax,ymax);
return extent;
}