Skip to main content
Question

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


makt
Contributor
Forum|alt.badge.img+1
  • Contributor
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?

 

3 replies

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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
Forum|alt.badge.img+6
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

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings