Google Earth KML -
how links cities curve (line) in kml google earth?
first, since on i'm assuming asking kml perspective , not in desktop application. need have coordinates of 2 cities. create kml document following docs using coordinates in coordinates element (note don't need "lookat" element, bring camera relevant area):
<?xml version="1.0" encoding="utf-8"?> <kml xmlns="http://www.opengis.net/kml/2.2"> <document> <name>linestring.kml</name> <open>1</open> <lookat> <longitude>-122.36415</longitude> <latitude>37.824553</latitude> <altitude>0</altitude> <range>150</range> <tilt>50</tilt> <heading>0</heading> </lookat> <placemark> <name>unextruded</name> <linestring> <extrude>1</extrude> <tessellate>1</tessellate> <coordinates> -122.364383,37.824664,0 -122.364152,37.824322,0 </coordinates> </linestring> </placemark> <placemark> <name>extruded</name> <linestring> <extrude>1</extrude> <tessellate>1</tessellate> <altitudemode>relativetoground</altitudemode> <coordinates> -122.364167,37.824787,50 -122.363917,37.824423,50 </coordinates> </linestring> </placemark> </document> </kml>
if don't have city altitudes leave them out , sure set altitudemode element "clamptoground" , tesselate element "1" (meaning true). if forget lines may disappear underground.
Comments
Post a Comment