Skip to main content
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?

 

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

 

Takashi
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.
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