# ColorByProperty draw style not applying colours to shapefile layer in GPlates 2.5.0

**URL:** https://discourse.gplates.org/t/colorbyproperty-draw-style-not-applying-colours-to-shapefile-layer-in-gplates-2-5-0/3244
**Category:** Q&A
**Created:** [22 April 2026 05:18 UTC](https://discourse.gplates.org/t/colorbyproperty-draw-style-not-applying-colours-to-shapefile-layer-in-gplates-2-5-0/3244 "2026-04-22T05:18:29Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![chhei](https://discourse.gplates.org/letter_avatar_proxy/v4/letter/c/90ced4/32.png) [@chhei](https://discourse.gplates.org/u/chhei)
#### Post date: [22 April 2026 07:05 UTC](https://discourse.gplates.org/t/colorbyproperty-draw-style-not-applying-colours-to-shapefile-layer-in-gplates-2-5-0/3244/2 "2026-04-22T07:05:02Z")

</div>

Hello @cchan

to use the shapefile attributes you need to put in `gpml:shapefileAttributes:<YourAttributeName>` in the `property_name` field (and not just the attribute name). Then it should work. So in your case: `gpml:shapefileAttributes:ID`.

It’s one of those slightly quirky, unintuitive things in GPlates that you cannot put the direct attribute name in but instead need to refer to the way the file is wrapped into GPlates internal representation in GPML.

The CPT file should be continuous and not have breaks, so I can’t see why the CPT should not work. Seeing that you’re using discrete values it might even be possible to use the GMT-style categorical format for CPTs such as the [example one here](https://github.com/GenericMappingTools/gmt/blob/master/share/cpt/gmt/categorical.cpt) - but you’d need to test that.

Cheers, Christian

 ![image](https://discourse.gplates.org/uploads/default/original/1X/6fbdb29473c6a397ca705eaec1d3104e115f891d.png)

---

_[View the full topic](https://discourse.gplates.org/t/colorbyproperty-draw-style-not-applying-colours-to-shapefile-layer-in-gplates-2-5-0/3244)._
