encoded polyline from kml

728 views
Skip to first unread message

Whiterock

unread,
Oct 8, 2008, 3:19:23 PM10/8/08
to KML Developer Support - Advanced Support for KML
Is there any available way to take regular polyline kml files
generated by Google Earth and produce encoded polyline data? I have
found only one (www.gravoplex.com/polyline_encoder), which showed my
kml line on their map but didn't show on my map using the code given
by gravoplex.
I have many polylines in kml form and can not simply type them into
googles polyline encoder.

Roman N

unread,
Oct 13, 2008, 1:55:02 PM10/13/08
to KML Developer Support - Advanced Support for KML
Hi Whiterock,

Take a look at this page for resources on how to encode polylines for
Google Maps:

http://facstaff.unca.edu/mcmcclur/GoogleMaps/EncodePolyline/

You'll probably need to parse out the coordinates from the KML
manually, as I don't think the samples at the link above have KML
import functionality. You may also be able to combine the Java port at
the link above with libkml:

http://code.google.com/p/libkml/

- Roman
Reply all
Reply to author
Forward
0 new messages