提交 e3a2be45 编写于 作者: 丁劲犇's avatar 丁劲犇 😸

Warpping between -180W and 180E is a special situation to dealwith.

上级 80768d78
......@@ -41,22 +41,8 @@ namespace QTVP_GEOMARKER{
m_lon2 += 360;
while (m_lon2 - m_lon1 > 180)
m_lon2 -= 360;
while (m_lon1 < -180)
{
m_lon1 += 360;
m_lon2 += 360;
}
while (m_lon1 >180)
{
m_lon1 -= 360;
m_lon2 -= 360;
}
m_llap[i-1].setX(m_lon1);
m_llap[i].setX(m_lon2);
}
}
void geoGraphicsPolygonItem::adjust_coords(int nNewLevel)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册