[mapguide-trac] #1096: <coordinates> tag in generated KML does not follow spec

MapGuide Open Source trac_mapguide at osgeo.org
Fri Sep 18 15:56:08 EDT 2009


#1096: <coordinates> tag in generated KML does not follow spec
-------------------------+--------------------------------------------------
 Reporter:  jcarranz     |         Owner:          
     Type:  defect       |        Status:  reopened
 Priority:  medium       |     Milestone:  2.2     
Component:  KML Service  |       Version:  2.1.0   
 Severity:  minor        |    Resolution:          
 Keywords:               |   External_id:          
-------------------------+--------------------------------------------------
Changes (by jbirch):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 Before the examples had to be pulled, I think I saw coordinates that
 looked like:

  x,y,z,
  x,y,z,
  x,y,z

 Though this is not tightly defined for KML 2.1, this is not the format
 used in any of the official guides or best practices, and the 2.2 spec
 defined this more tightly as:

 -----------------------------
  16.9 kml:coordinatesType

  16.9.1 Description

  String representing one or more coordinate tuples, with each tuple
 consisting of decimal values for geodetic longitude, geodetic latitude,
 and altitude. The altitude component is optional. The coordinate separator
 is a comma and the tuple separator is a whitespace. Longitude and latitude
 coordinates are expressed in decimal degrees only.
 -----------------------------

 I think that this means that the coodinates should look like:

  x,y,z x,y,z x,y,z

 or

  x,y,z
  x,y,z
  x,y,z

 If it's easy to drop the trailing comma on each coordinate, I'd encourage
 this fix.

-- 
Ticket URL: <https://trac.osgeo.org/mapguide/ticket/1096#comment:5>
MapGuide Open Source <http://mapguide.osgeo.org/>
MapGuide Open Source Internals


More information about the mapguide-trac mailing list