<!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 "<description>"
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 <ExtendedData> and places the
attribute values in <SimpleData> tags, like
<br>
<Placemark>
<br>
... <br>
<ExtendedData><SchemaData schemaUrl="#cities">
<br>
<SimpleData name="Name">Berlin</SimpleData>
<br>
<SimpleData name="GEONAMEID">3899412</SimpleData>
<br>
<SimpleData name="ISO2_CODE">DE</SimpleData>
<br>
<ExtendedData>
<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 <name> 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>).
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>