On 10/03/2011 6:29 PM, Armin Burger wrote:
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:

GDAL/OGR uses the tag <ExtendedData> and places the attribute values in <SimpleData> tags, like
<Placemark>
   ...
<ExtendedData><SchemaData schemaUrl="#cities">
<SimpleData name="Name">Berlin</SimpleData>
<SimpleData name="GEONAMEID">3899412</SimpleData>
<SimpleData name="ISO2_CODE">DE</SimpleData>
<ExtendedData>

This leads to a much better display in Google Earth.

I have added this in http://trac.osgeo.org/mapserver/ticket/3728 and possibly address it before 6.0 or shortly after.

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.

The is added to the current svn and will be available for beta2 (ticket <http://trac.osgeo.org/mapserver/ticket/3728>). The docs are also updated. Note that the metedata is KML_NAME_ITEM to follow other metada names used.


best regards,

--
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: yass...@dmsolutions.ca
http://www.dmsolutions.ca/

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


_______________________________________________
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to