Skip to main content
Question

How to write color information based on attributes for a shp file?

  • May 23, 2014
  • 3 replies
  • 22 views

makt
Contributor
Forum|alt.badge.img+1
I presume I can't write a .lyr file since no such writer exists (is this an ESRI restriction?).

 

 

Is there any hack that would allow for setting colours based on attributes and then write this information to some other type of file that can later be used by a GIS to color a .shp automatically?

 

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.

3 replies

takashi
Celebrity
  • May 23, 2014
Hi, I think there is no way to store color information for shp file other than storing as feature attributes.

 

Takashi

darkspatiallord
Contributor
Forum|alt.badge.img+7
Do you have a .lyr file already setup?

 

If it is there you could write to an mxd and reference the .lyr set up file.

gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 28, 2014
Hi,

 

 

the lyr file is a OLE2 Compound Document format and not published.

 

Apparently u can acces it (and with some fiddling even write them) using tools.

 

see for instance

 

http://gis.stackexchange.com/questions/107/are-the-esri-lyr-and-mxd-data-format-specs-published