# Using CreateKmlFile

**URL:** <https://community.thinkgeo.com/t/using-createkmlfile/7186>\
**Category:** Services\
**Created:** [April 15, 2015, 10:30am UTC](https://community.thinkgeo.com/t/using-createkmlfile/7186 "2015-04-15T10:30:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dustin](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/d/5daacb/32.png) [@Dustin](https://community.thinkgeo.com/u/Dustin)\
**Post date:** [April 15, 2015, 10:30am UTC](https://community.thinkgeo.com/t/using-createkmlfile/7186/1 "2015-04-15T10:30:27Z")

</div>

Hi&nbsp;all,  
  
I’m&nbsp;trying&nbsp;to&nbsp;create&nbsp;a&nbsp;KML&nbsp;from&nbsp;a&nbsp;SHP&nbsp;file,&nbsp;which&nbsp;is&nbsp;working&nbsp;quite&nbsp;well,&nbsp;but&nbsp;I&nbsp;cannot&nbsp;seem&nbsp;to&nbsp;get&nbsp;the&nbsp;associated&nbsp;data&nbsp;with&nbsp;the&nbsp;features&nbsp;in&nbsp;the&nbsp;SHP&nbsp;file&nbsp;to&nbsp;be&nbsp;populated&nbsp;in&nbsp;the&nbsp;KML&nbsp;file.&nbsp;I&nbsp;would&nbsp;have&nbsp;expected&nbsp;it&nbsp;to&nbsp;be&nbsp;in&nbsp;an&nbsp;ExtendedData&nbsp;\<extendeddata\>element,&nbsp;but&nbsp;the&nbsp;generated&nbsp;files&nbsp;do&nbsp;not&nbsp;have&nbsp;this&nbsp;anywhere.&nbsp;Am&nbsp;I&nbsp;doing&nbsp;something&nbsp;wrong,&nbsp;or&nbsp;is&nbsp;ExtendedData&nbsp;not&nbsp;supported?&nbsp;  
  
Thanks&nbsp;for&nbsp;your&nbsp;help!  
  
-Dustin\</extendeddata\>

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [April 16, 2015, 1:40am UTC](https://community.thinkgeo.com/t/using-createkmlfile/7186/2 "2015-04-16T01:40:38Z")

</div>

Hi&nbsp;Dustin,&nbsp;  
&nbsp;&nbsp;  
&nbsp;We&nbsp;support&nbsp;read&nbsp;and&nbsp;write&nbsp;ExtentedData,&nbsp;but&nbsp;we&nbsp;need&nbsp;make&nbsp;sure&nbsp;the&nbsp;ExtendedData&nbsp;of&nbsp;KmlFeature&nbsp;contains&nbsp;values&nbsp;we&nbsp;want,&nbsp;so&nbsp;it&nbsp;can&nbsp;be&nbsp;saved&nbsp;to&nbsp;KML.&nbsp;If&nbsp;you&nbsp;found&nbsp;that’s&nbsp;empty&nbsp;please&nbsp;assign&nbsp;value&nbsp;to&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;the&nbsp;issue&nbsp;still&nbsp;don’t&nbsp;solved,&nbsp;please&nbsp;upload&nbsp;more&nbsp;detail&nbsp;code&nbsp;so&nbsp;I&nbsp;can&nbsp;help&nbsp;you&nbsp;debug&nbsp;and&nbsp;fix&nbsp;it.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don

---

<div class="post-metadata">

**Author:** ![julieta\_h](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/j/4bbf92/32.png) [@julieta\_h](https://community.thinkgeo.com/u/julieta_h)\
**Post date:** [April 30, 2015, 7:19pm UTC](https://community.thinkgeo.com/t/using-createkmlfile/7186/3 "2015-04-30T19:19:43Z")

</div>

Hello,&nbsp;I&nbsp;need&nbsp;to&nbsp;do&nbsp;the&nbsp;same,&nbsp;I&nbsp;mean&nbsp;create&nbsp;a&nbsp;KML&nbsp;from&nbsp;a&nbsp;SHP&nbsp;file,&nbsp;can&nbsp;you&nbsp;share&nbsp;an&nbsp;example&nbsp;to&nbsp;do&nbsp;this?&nbsp;  
&nbsp;Thanks&nbsp;in&nbsp;advance.

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [May 3, 2015, 10:34pm UTC](https://community.thinkgeo.com/t/using-createkmlfile/7186/4 "2015-05-03T22:34:22Z")

</div>

Hi&nbsp;Julieta,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Maybe&nbsp;we&nbsp;will&nbsp;build&nbsp;the&nbsp;sample&nbsp;for&nbsp;convert&nbsp;from&nbsp;a&nbsp;shape&nbsp;file&nbsp;to&nbsp;a&nbsp;KML&nbsp;in&nbsp;future,&nbsp;but&nbsp;I&nbsp;am&nbsp;sorry&nbsp;we&nbsp;don’t&nbsp;have&nbsp;it&nbsp;for&nbsp;now.&nbsp;  
&nbsp;&nbsp;  
&nbsp;If&nbsp;you&nbsp;want&nbsp;to&nbsp;implement&nbsp;that,&nbsp;you&nbsp;need&nbsp;make&nbsp;sure&nbsp;the&nbsp;format&nbsp;of&nbsp;KML&nbsp;then&nbsp;get&nbsp;all&nbsp;shape&nbsp;files&nbsp;from&nbsp;our&nbsp;layer&nbsp;and&nbsp;read&nbsp;all&nbsp;column&nbsp;values&nbsp;then&nbsp;save&nbsp;to&nbsp;different&nbsp;tags&nbsp;under&nbsp;KML.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Wish&nbsp;that’s&nbsp;helpful.&nbsp;  
&nbsp;&nbsp;  
&nbsp;Regards,&nbsp;  
&nbsp;&nbsp;  
&nbsp;Don
