|
POST
|
Ran into this issue today. Solution was to simply delete the FORMS tag in the XML (.apl file) and everything in it. I'm sure there is a tag you can modify if you actually use the forms, but I didn't take the time to track that down.
... View more
11-14-2012
08:52 AM
|
0
|
0
|
2071
|
|
POST
|
Your whereClause and Output_Layer_Name variables are a little mangled I think. If you are using the default SELECT_BY value.
SELECT_BY = arcpy.GetParameterAsText(1)
if SELECT_BY == '#' or not SELECT_BY:
SELECT_BY = "\"ACCOUNT\" ='R0392800000'"
...
Output_Layer_Name = SELECT_BY
...
whereClause = "ACCOUNT = " + str(SELECT_BY) Also you make selections on two different layers but only process one? Also you should set up a workspace when working with layers. Also you need to use raw strings if using single back slashes. r"C:\Temp\Listing.dbf" I would try writing some pseudo code of what your logic is then trying to rewrite it a little cleaner.
... View more
11-14-2012
04:29 AM
|
0
|
0
|
792
|
|
POST
|
You can read this on how to pass variables to the tools. http://resources.arcgis.com/en/help/main/10.1/index.html#//00170000004m000000
... View more
11-13-2012
05:27 AM
|
0
|
0
|
1663
|
|
POST
|
It definitely looks like you have your mxd.save() outside of your loop. I would have it as the last line under your if statement to verify your file is an mxd. if filename.lower().endswith(".mxd"): ... arcpy.AddMessage("Finished replacing " + filename) mxd.save()
... View more
11-09-2012
02:58 PM
|
0
|
0
|
1858
|
|
POST
|
In a word, no. You must create an output raster since a layer simply points to the data. However, you should be able to create a temporary raster in the "in_memory" workspace, if this is simply intermediate data, and create a raster layer referencing that raster. Not all tools support in_memory feature classes/rasters as inputs or outputs. Off the top of my head I'm not sure if slice does or not.
... View more
11-09-2012
02:53 PM
|
0
|
0
|
857
|
|
POST
|
In your Geoprocessing Options, do you have "overwrite the outputs of geoprocessing operations" and "add results of geoprocessing operations to the display" checked? I also find it odd it takes 19 seconds to make a table view. Edit: You may have to make a permanent table to see it in your mxd after the tool runs.
... View more
11-01-2012
06:17 AM
|
0
|
0
|
695
|
|
POST
|
Try using the described name instead of the list object for the output fc name. for fc in fcList:
desc = arcpy.Describe(fc)
fcOut = os.path.join(destSpace, desc.name)
for dest in destList:
if fc == dest:
arcpy.Append_management([fc], fcOut, "NO_TEST" , "" , "")
... View more
10-31-2012
12:22 PM
|
1
|
0
|
1470
|
|
POST
|
To add to what Wayne said; you seem to be confusing the use of the Add Field Delimiters tool. This is to add delimiters to the field, not the attributes of the field. What specifically are the parameters you are passing to the script? Here's the help page on using the Add Field Delimiters tool. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000004n000000
... View more
10-31-2012
08:39 AM
|
1
|
0
|
2855
|
|
POST
|
This doesn't work? if arcpy.Exists(your_output):
arcpy.Delete_management(your_output)
... View more
10-31-2012
05:42 AM
|
0
|
0
|
1980
|
|
POST
|
There shouldn't be a problem, but I don't have 9.3 to check it on. Check to make sure your output and input directories are proper and exist.
... View more
10-29-2012
10:10 AM
|
0
|
0
|
2340
|
|
POST
|
I checked with 9 but getting the same error. I have attached a sample data file. Thanks a lot for helping me out, please take your time. Both worked fine for me. What version of ArcGIS are you using?
... View more
10-29-2012
09:11 AM
|
0
|
0
|
2340
|
|
POST
|
Try reducing the name splitting from 13 to 9 characters. It may be that it is a multi band raster and doesn't support 13 character file names. You can read about the formatting required for Esri Grids here. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009t0000000w000000 I seem to recall some issues when a file name starts with numeric characters, but that may be a different format I am thinking of.
... View more
10-29-2012
08:49 AM
|
0
|
0
|
2340
|
|
POST
|
You want to display the shapefile geographic data in your tkinter GUI outside of ArcMap? You would have to use some kind of drawing module. You could use something like Canvas in Tkinter with some geometry fiddling.
... View more
10-29-2012
08:23 AM
|
0
|
0
|
4257
|
|
POST
|
I think the issue is it doesn't like returning the field value. Try this. def FindLabel ( [Direction] ):
var = [Direction]
return "{}° {}' {}\"".format(var.split("-"))
... View more
10-29-2012
05:54 AM
|
0
|
0
|
1236
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-17-2011 10:36 AM | |
| 1 | 08-16-2012 10:48 AM | |
| 1 | 10-31-2012 08:39 AM | |
| 1 | 07-16-2012 01:52 PM | |
| 1 | 03-15-2012 10:57 AM |
| Online Status |
Offline
|
| Date Last Visited |
08-22-2024
11:12 PM
|