Question

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


Badge
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

Userlevel 2
Badge +17
Hi, I think there is no way to store color information for shp file other than storing as feature attributes.

 

Takashi
Badge +1
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.
Badge +3
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

 

Reply