<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 10/03/2011 6:29 PM, Armin Burger wrote:
    <blockquote cite="mid:4D795EEB.2030709@gmx.net" type="cite">Currently
      the fields/items of the layers (defined under map file METADATA
      KML_INCLUDE_ITEMS) are exported to a KML tag "&lt;description&gt;"
      and inserted as HTML table. While this is of course possible, a
      cleander way would be how GDAL/OGR exports the attributes:
      <br>
      <br>
      GDAL/OGR uses the tag &lt;ExtendedData&gt; and places the
      attribute values in &lt;SimpleData&gt; tags, like
      <br>
      &lt;Placemark&gt;
      <br>
      &nbsp;&nbsp; ...&nbsp;&nbsp;&nbsp; <br>
      &nbsp;&nbsp; &lt;ExtendedData&gt;&lt;SchemaData schemaUrl="#cities"&gt;
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&lt;SimpleData name="Name"&gt;Berlin&lt;/SimpleData&gt;
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&lt;SimpleData name="GEONAMEID"&gt;3899412&lt;/SimpleData&gt;
      <br>
      &nbsp;&nbsp;&nbsp;&nbsp;&lt;SimpleData name="ISO2_CODE"&gt;DE&lt;/SimpleData&gt;
      <br>
      &nbsp;&nbsp; &lt;ExtendedData&gt;
      <br>
      <br>
      This leads to a much better display in Google Earth.
      <br>
      <br>
    </blockquote>
    I have added this in <a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapserver/ticket/3728">http://trac.osgeo.org/mapserver/ticket/3728</a> and
    possibly address it before 6.0 or shortly after.<br>
    <br>
    <blockquote cite="mid:4D795EEB.2030709@gmx.net" type="cite">In
      addition to the KML_INCLUDE_ITEMS, another possibility to define a
      field/item used in KML for the &lt;name&gt; tag would be useful,
      like OGR allows this via the NameField option. So maybe a METADATA
      definition like KML_NAME_FIELD could do this.
    </blockquote>
    <br>
    The is added to the current svn and will be available for beta2 (<a
      href="http://trac.osgeo.org/mapserver/ticket/3728">ticket</a>).&nbsp;
    The docs are also updated. Note that the metedata is KML_NAME_ITEM
    to follow other metada names used.<br>
    <br>
    <br>
    best regards,<br>
    <br>
    <pre class="moz-signature" cols="72">-- 
----------------------------------------------------------------
Assefa Yewondwossen           
Software Analyst   

Email: <a class="moz-txt-link-abbreviated" href="mailto:yassefa@dmsolutions.ca">yassefa@dmsolutions.ca</a>    
<a class="moz-txt-link-freetext" href="http://www.dmsolutions.ca/">http://www.dmsolutions.ca/</a>

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------

</pre>
  </body>
</html>