36 reputation
4
bio website
location France
age
visits member for 2 years, 5 months
seen Apr 11 '13 at 9:27

Feb
20
awarded  Popular Question
Mar
1
awarded  Supporter
Feb
22
comment Python-arcpy : How make feature list from gdb and value list from field and use them in gaLayer function?
the code with a readable format is on another page [forum] (forumsig.org/showthread.php?t=33381). I'm sorry; I don't manage editing here... Nao
Feb
22
comment Python-arcpy : How make feature list from gdb and value list from field and use them in gaLayer function?
' Variables and loop <br/> inputGA = "C:/INTERP/COK.xml"<br/> #fc=list component/fcs=list<br/> for fc in fcs:<br/> #1st variable /"PJ" = targetfield<br/> inputDset1 = fc + " "+ "X=Shape Y=Shape "+ "F1=" +"PJ"<br/> #2nd variable<br/> inputDset2 = "C:/INTERP/data.gdb/dem"<br/> VARCOVAR = inputDset1 + ";" + inputDset2<br/> out = "cok"<br/> outLayer = out + fc<br/> # Process : GACreate<br/> for fc in fcs:<br/> gp.GACreateGeostatisticalLayer(inputGA,VARCOVAR,outLayer)'<br/>
Feb
22
comment Python-arcpy : How make feature list from gdb and value list from field and use them in gaLayer function?
I found the problem, and how to answer to my question above. I put my code below if that can help ... To use a list in the GACreateGeostatisticalLayer:#Set environment arcpy.env.workspace = "C:/INTERP/PJ.gdb" # Check out Geostatistical Analyst extension license. gp.CheckOutExtension("GeoStats")
Feb
22
awarded  Editor
Feb
21
comment Python-arcpy : How make feature list from gdb and value list from field and use them in gaLayer function?
Chad, Thank you for your answer. Indeed, I thought that your proposition could resolve the problem, however replace quotes by [ ] doesn't work. I have searched for the exact expression in arcgis 10 and the result is: arcpy.GACreateGeostatisticalLayer_ga("C:/INTERP/COK_.xml","C:/INTERP/PJ_class.g‌​dā€Œā€‹ā€Œā€‹b/j01012003 X=Shape Y=Shape F1=PJ_RacPJ;C:/INTERP/Data.gdb/dem1000", "GACreateGeostatisticalLayer1") So, all arguments are in quotes: model, inputs and output. It works for one feature (variable) and its covariable (here a DEM). Maybe the problem comes from the lists... (1/2)
Feb
20
comment Python-arcpy : How make feature list from gdb and value list from field and use them in gaLayer function?
Chad, Thank you for your answer. Indeed, I thought that your proposition could resolve the problem, however replace quotes by [ ] doesn't work. I have searched for the exact expression in arcgis 10 and the result is: arcpy.GACreateGeostatisticalLayer_ga("C:/INTERP/COK_.xml","C:/INTERP/PJ_class.gd‌​b/j01012003 X=Shape Y=Shape F1=PJ_RacPJ;C:/INTERP/Data.gdb/dem1000", "GACreateGeostatisticalLayer1") So, all arguments are in quotes: model, inputs and output. It works for one feature (variable) and its covariable (here a DEM). Maybe the problem comes from the lists. Could I simply use lists as I wrot
Feb
20
awarded  Student
Feb
20
asked Python-arcpy : How make feature list from gdb and value list from field and use them in gaLayer function?