Automating simbology python

1881
2
09-30-2015 09:40 AM
by Anonymous User
Not applicable

I have a geologic map with 230 geological units. Each unit has its own color, marker, ecc... It is possible to apply a scheme for each geological unit using a python script? Because I have an xml files that for each unit define color, border, marker ecc...

Thank you!

0 Kudos
2 Replies
WesMiller
Regular Contributor III

I don't know about from an xml file but if your willing to create a lyr file you could use Setting output symbology in scripts—Help | ArcGIS for Desktop

0 Kudos
BenHolmes1
New Contributor III

I don't think arcpy has the capability to change symbology (other than importing from an existing layer file).

You can use the comtypes module to access ArcObjects from Python. That will allow you to control symbology.

Have a look here for more information on ArcObjects and Python.

Python and ArcObjects

The snippits.py has some useful examples.

You will also probably need to look over the ArcObject help and Object Model Diagrams. Carto is the one which will have the symbology.

Ben