# Gmt2kml and cpt and circle

**URL:** <https://forum.generic-mapping-tools.org/t/gmt2kml-and-cpt-and-circle/1030>\
**Category:** Q&A\
**Created:** [November 12, 2020, 4:17am UTC](https://forum.generic-mapping-tools.org/t/gmt2kml-and-cpt-and-circle/1030 "2020-11-12T04:17:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wbm06](https://avatars.discourse-cdn.com/v4/letter/w/34f0e0/32.png) [@wbm06](https://forum.generic-mapping-tools.org/u/wbm06)\
**Post date:** [November 12, 2020, 4:17am UTC](https://forum.generic-mapping-tools.org/t/gmt2kml-and-cpt-and-circle/1030/1 "2020-11-12T04:17:46Z")

</div>

I dont understand what is wrong if I want to use the option -Ccolor.cpt with  
gmt gmt2kml myfile.dat -Fs -Ccolor.cpt \> myfile.kml

gmt2kml [ERROR]: Cannot use continuous color palette. Here the idea is to associate different colours to each point depending on the amplitude value we can find on the 3rd column.

Any comment?

---

<div class="post-metadata">

**Author:** ![pwessel](https://yyz1.discourse-cdn.com/flex047/user_avatar/forum.generic-mapping-tools.org/pwessel/32/30_2.png) [@pwessel](https://forum.generic-mapping-tools.org/u/pwessel)\
**Post date:** [November 12, 2020, 4:33am UTC](https://forum.generic-mapping-tools.org/t/gmt2kml-and-cpt-and-circle/1030/2 "2020-11-12T04:33:52Z")

</div>

gmt2kml is a filter so input may come from files or stdin. We need to build the KML styles up front for the various colors. If you use a continuous CPT then there is an infinite number of colors (since we have not read any data yet). Just decimate your CPT by using a small increment and you get a finite number of colors.
