Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
目前,我有一条由 Google Earth 自动绘制的从 A 点到 B 点的路线。在 KML 文件中,LineString 坐标显示了相当多的点,但这对于我的项目来说还不够。有没有办法增加自动生成的坐标?或者有什么我可以使用的公式吗?谢谢。
如果您能解释为什么需要更多积分,那将会很有帮助。
一般来说,您可以通过在两个点之间添加另一个点来拆分每个段。
就像是:
splitLat = (lat1 + lat2)/2.0; splitLng = (lng1 + lng2)/2.0;
导致:
<coordinates> ... lat1, lat2, 0 splitlat, splitLng, 0 lat2, lng2, 0 ... </coordinates>