james
james

Reputation: 37

Increase number of coordinates in KML google earth

Currently I have a route plotted by Google Earth automatically from point A to B. In the KML files, the LineString coordinates show quite a number of points, but it not enough for my project. Is there a way to increase the coordinates generated automatically? or is there any formular that I can use? Thanks.

Upvotes: 0

Views: 322

Answers (1)

tocker
tocker

Reputation: 1792

It would be helpful if you can explain why you need more points.

Generally speaking, you can split each segment by adding another point between two points.

Something like:

splitLat = (lat1 + lat2)/2.0;
splitLng = (lng1 + lng2)/2.0;

resulting in:

<coordinates>
...
lat1, lat2, 0
splitlat, splitLng, 0
lat2, lng2, 0
...
</coordinates>

Upvotes: 1

Related Questions