Hi,
i'm trying to get a value from a Python script called getValue and use this value to select the correct symbology layer for a ArcGIS map.
This is the first code:
and this is the second one.
The Dutch words are filenames.
Could anyone help me?
i'm trying to get a value from a Python script called getValue and use this value to select the correct symbology layer for a ArcGIS map.
This is the first code:
Code:
import arcgisscripting gp = arcgisscripting.create(9.3) intable = gp.GetParameterAsText(0) infield = gp.GetParametersAsText(1) # open cursor rows = gp.searchcursor(intable) row = rows.next() fval = row.GetValue(infield) gp.SetParameterAsText(2, str(fval))
Code:
import sys, string, os, arcgisscripting
gp = arcgisscripting.create()
gp.AddToolbox("filepath/Data Management Tools.tbx")
gp.AddToolbox("filepath/Mark Toolbox.tbx")
String = ? #This has to be the value from the GetValue script
VCI_Laag = "filepath\\Symbology_Files\\"+String +".lyr"
Grondsoorten_Verzadigd = "Grondsoorten_Verzadigd"
gp.ApplySymbologyFromLayer_management(Grondsoorten_Verzadigd, VCI_Laag)
Could anyone help me?
Comment