Skip to main content
Solved

How to change color of lines and write it in Esri shape file

  • December 28, 2022
  • 2 replies
  • 184 views

gogopotter90
Contributor
Forum|alt.badge.img+14

Hello ,

 

I would like to have fixed color of lines and write it into Esri shape file.

i have used feature color setter or DGN styler but it does not work .

when I read the shapefile again , I have found it has random color .

Any help please

FME 2021

Best answer by caracadrian

ESRI SHP format doesn't store styling information. That is the normal behavior of a GIS software.

As a workaround I create a color attribute (RGB/HEX depending on software) and use the attribute as a color value when styling. You can use ColorCalculator custom transformer.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

caracadrian
Contributor
Forum|alt.badge.img+23
  • Contributor
  • 571 replies
  • Best Answer
  • December 28, 2022

ESRI SHP format doesn't store styling information. That is the normal behavior of a GIS software.

As a workaround I create a color attribute (RGB/HEX depending on software) and use the attribute as a color value when styling. You can use ColorCalculator custom transformer.


gogopotter90
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • 239 replies
  • December 28, 2022

ESRI SHP format doesn't store styling information. That is the normal behavior of a GIS software.

As a workaround I create a color attribute (RGB/HEX depending on software) and use the attribute as a color value when styling. You can use ColorCalculator custom transformer.

K, I got u .thanks