POST
|
Hi all, I´m building a very simple model wich ideally should iterate trough a folder with raster files (.tiff) to use the tool Raster to Point with each one of them. I normally use the in-line variable %Name% to give a name for the output from the tool, but I don´t know why is not working with this tool. I was wondering if it could be because the output is a shapefile, not a raster. Do you know any other way I can use the name from the input to name the output from a tool?? Thank you very much
... View more
08-18-2014
12:54 PM
|
0
|
1
|
5377
|
POST
|
Thanks Joshua! I tried to mark it yesterday but couldn't...
... View more
06-05-2014
03:52 PM
|
0
|
0
|
836
|
POST
|
This is a section of a much bigger code that was made for ArcGIS 9.3 and Python 2.5, I'm trying to run it from ArcGIS 10.1 and Python 2.7. So this must be the problem in general... But I tried what jscheirer suggested and it worked!!! Now the field gets populated with the correct information!! Thanks a lot. Unfortunately the script stops without doing the last operation wich is to populate one single table with all this information. Maybe I'll have to make a new post later... hehehehe Thanks a lot for your advice and help!!! Cheers!
... View more
06-04-2014
01:11 PM
|
0
|
0
|
836
|
POST
|
Hello everyone, I have this python stand alone script wich is runing fine until gets to this part. if gp.Exists(lcp_name+".shp") == 0: gp.CostPath_sa("samp_lyr", cd_name, bl_name, "cost_path", "BEST_SINGLE", "") # Export the cost of the LCP vat = gp.searchcursor("cost_path") row_n = vat.next() cost1_list = [] while row_n: cost1_list.append(row_n.pathcost) row_n = vat.next() cost1 = sum(cost1_list) del vat, row_n, cost1_list # Turns the raster LCP to a polyline gp.RasterToPolyline_conversion("cost_path","temp.shp", "ZERO", "", "SIMPLIFY") gp.Dissolve_management("temp.shp", lcp_name+".shp") gp.delete_management("temp.shp") gp.delete_management("cost_path") # Calculate the length of the LCP. gp.Addfield_management(lcp_name+".shp", "LENGTH", "DOUBLE") gp.CalculateField_management(lcp_name+".shp", "LENGTH", "float(!SHAPE.LENGTH!)", "PYTHON") gp.Addfield_management(lcp_name+".shp", "COST", "DOUBLE") gp.CalculateField_management(lcp_name+".shp", "COST", cost1, "PYTHON") The error I get is: arcgisscripting.ExecuteError: Error 9999999: Error executing function. The field is not nullable. [COST]. Failed to execute <Calculate field> It creates the field "cost" but doesn't fill it. In ArcMap I open the shape and I'm able to fill it with zero value so I don't understand the error. Any suggestions?? Thanks a lot
... View more
06-04-2014
09:22 AM
|
0
|
6
|
4146
|
POST
|
Thanks Ian and James for your answers, Finally the problem was that if you use a feature class as an input destination (not a raster) the input field is not optional. So I had to create the field and write the name in the code. Cheers!!
... View more
04-11-2014
05:17 AM
|
0
|
0
|
822
|
POST
|
Hi everyone, First I would like to highlight that I´m an absolut newby with python. I trying to use this already created python tool but keep on receiving this error message: error 000861: Destination field is not valid: It's a nested code so would be difficult to put all the different variables but the specific part of the code that is giving this problem is this:
gp.CostPath_sa("samp_lyr", cd_name, bl_name, "cost_path", "BEST_SINGLE", "")
All the input variables are fine, the only error cames from the last one (destination field) wich it´s supposed to be an optional variable. That´s why the "", because is empty. Any suggestions?? Hope can understand the post. Thanks!!
... View more
04-10-2014
06:26 AM
|
0
|
3
|
1751
|
POST
|
Thanks!! Sorry for the delay in the answer... You are right, I think it´s a not supported symbology by REST API... when I have time I´ll try rendering the symbology and see what happens... Thank you again!!
... View more
06-12-2012
04:02 AM
|
0
|
0
|
166
|
POST
|
Hi everyone, I am an absolute beginner in this programing world, so I hope this question doesn´t sound stupid Here is the thing, I have a map with a pie charts symbology applied, published in server and declared as a feature layer in my Silverlight application. When I try to include a legend it doesn´t display the simbology the map has, but another completely different. If I publish it as a ArcGISDynamicMapServiceLayer I can see the symbology in my application but still can´t see it in the legend... Does anyone know how to solve this problem?? Thank you very much and congrats to all of you that help others in this forum....
... View more
05-25-2012
04:18 AM
|
0
|
2
|
396
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|