AnsweredAssumed Answered

Symbology of layer file to CSV

Question asked by Miha_K on Feb 6, 2017
Latest reply on Feb 7, 2017 by blake.terhune

I would like write RGB values of each polygon in attribute table and then convert to excel/CSV/txt file.

I found this script that writes RGB values for each polygon into attribute table. I created new script as it shows on this page. However when I run the tool, I get a message:

 

Executing: rgbValues D:\temp\GIS\eGeologija\KRANJ\SIMBOLOGIJA krpoly_opis_polygon #
Start Time: Mon Feb 06 18:15:25 2017
Running script rgbValues...
STARTED

======================================================================
D:\temp\GIS\eGeologija\KRANJ\SIMBOLOGIJA\TempGDB.gdb
Path: D:\temp\GIS\eGeologija\KRANJ\SHP\krpoly.shp
Spatial Reference: D48_Slovenia_TM
TEMPS SET
_R field exists
_G field exists
_B field exists

======================================================================

* FREQUENCIES & TEMP CARTO TILES
Failed script rgbValues...

Traceback (most recent call last):
File "D:\temp\GIS\eGeologija\RGB_values.py", line 107, in <module>
arcpy.Frequency_analysis(LayerPath, TempFrequency, FieldName, "")
File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\analysis.py", line 1276, in Frequency
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000735: Frequency Field(s): Value is required
Failed to execute (Frequency).


Failed to execute (rgbValues).
Failed at Mon Feb 06 18:15:26 2017 (Elapsed Time: 0.45 seconds)

 

 

Line 107 represents this line of code: arcpy.Frequency_analysis(LayerPath, TempFrequency, FieldName, "").

 

Here I do not know how to reapir script so I would appreciate your help!

Outcomes