sailing309 / kml-samples

Automatically exported from code.google.com/p/kml-samples
0 stars 0 forks source link

KML options to define line characteristics of great circle, straight, followLatitude #258

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be useful to optionally be able to specify a line (or a line
segment) as straight, as following a great circle, or as following
latitude/longitude. There are at least two approaches to this idea: a
default for all line segments in the LineString declaration, and also as
(override) declarations for each line segment. There could be some other
lineMode options. Both approaches are for OPTIONAL syntax, preserving
current behavior. 

Here are a couple of examples of new syntax. 

       <LineString>
          <tessellate>1</tessellate>
          <altitudeMode>clampToGround</altitudeMode>
          <lineMode>followLatitude</lineMode>
          <coordinates> 
        -96.421509,40.950863,30000.0 
        -96.855469,59.277108,30000.0
        -116.773682,59.445075,30000.0
        -116.356201,40.96953,30000.0
        -96.421509,40.950863,30000.0
         </coordinates>
        </LineString>

Or alternatively, 
         <coordinates> 
        -96.421509,40.950863,30000.0
                   <followLatitude>1</followLatitude>
        -96.855469,59.277108,30000.0
                   <GreatCircle>1</GreatCircle>
                -116.773682,59.445075,30000.0
                   <followLatitude>1</followLatitude>
        -116.356201,40.96953,30000.0
                   <GreatCircle>1</GreatCircle>
        -96.421509,40.950863,30000.0
         </coordinates>

This might me applicable to polygons as well. I think it would fix some of
the concerns others have raised.

Original issue reported on code.google.com by landis...@gmail.com on 2 Mar 2009 at 3:58

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 27 Mar 2009 at 11:10

GoogleCodeExporter commented 8 years ago
In _Google Maps_ I want a great circle, using just two points,
<LineString><coordinates>120.866215,24.181668 
-87.78182,42.165869</coordinates></LineString>. Alas, there is no way.

Original comment by jidanni@gmail.com on 20 Feb 2011 at 3:06

GoogleCodeExporter commented 8 years ago
As suggested by a user under Issue 301 Comment 3 ...

"there should be a Kml selector on LineStrings, Polygons, and LinearRings for 
either GreatCircle or Rhumb to have them drawn either way. That would be the 
most flexible."

Original comment by nmc...@gmail.com on 6 Nov 2014 at 1:21