POST
|
IIS has Anonymous Access Enabled but I am not quite sure what you mean by SOM. I am using 10.1 which is the only version I have ever had.
... View more
10-16-2013
09:39 AM
|
0
|
0
|
219
|
POST
|
Hello, I trying to set a map service to "Public, available to everyone" in Manager. After setting this I noticed that the REST URL still required a username and password so I go back into Manager and the service is set back to locked. I try setting it again and notice the lock symbol changed to unlocked (I then restart the service) but if I refresh Manager's browser it resets itself to locked. Very frustrating!! (I am using token authentication) Anyone seen this before? Ideas?
... View more
10-15-2013
11:54 AM
|
0
|
2
|
795
|
POST
|
Works! Only thing is that it only renames the .shp files and none of the associated files (.dbf,.prj, ect.) so the merge gives an error saying it cannot be completed probably because it cannot see the associated filetypes. However, I assume that I can just rewrite this for each of the filetypes and once they are all renamed the merge should work as expected? Fingers crossed.
... View more
12-06-2012
11:18 AM
|
0
|
0
|
961
|
POST
|
I tried the first one and the logic seems to make sense to me but I get an 'exeptions.NameError'>: name 'ws' is not defined' So I am looking over the rename function to see what those parameters are all about. Can't be far from it now. Again man thanks for all the help.
... View more
12-06-2012
09:49 AM
|
0
|
0
|
961
|
POST
|
Caleb, I went and renamed the files by hand and it worked like a charm. Thanks for the help. Now I just have to get the rename code to work so I don't have to do them all by hand.
... View more
12-06-2012
08:54 AM
|
0
|
0
|
961
|
POST
|
You are right. Im missing a forward slash after "D:". Now I just feel silly. So I was able to print the Listing file but now at the mergeManagment I get the same error but with the actual filenames I was looking for at least. arcpy.Merge_management(Listing,"MergedFile.shp")
Runtime error <class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid. ERROR 000732: Input Datasets: Dataset campus_ortho.tiles.tile00.v5.shp;campus_ortho.tiles.tile01.v8.shp;campus_ortho.tiles.tile02.v5.shp;campus_ortho.tiles.tile03.v6.shp;campus_ortho.tiles.tile04.v5.shp;campus_ortho.tiles.tile05.v9.shp;campus_ortho.tiles.tile06.v9.shp;campus_ortho.tiles.tile07.v9.shp;campus_ortho.tiles.tile08.v10.shp;campus_ortho.tiles.tile09.v8.shp;campus_ortho.tiles.tile10.v8.shp;campus_ortho.tiles.tile11.v8.shp;campus_ortho.tiles.tile12.v8.shp;campus_ortho.tiles.tile13.v9.shp;campus_ortho.tiles.tile14.v9.shp;campus_ortho.tiles.tile15.v8.shp;campus_ortho.tiles.tile17.v8.shp;campus_ortho.tiles.tile18.v9.shp does not exist or is not supported Failed to execute (Merge).
>>> An example of the shapefile names would be "campus_ortho.tiles.tile00.v5.shp" whereas each tile from my project was assigned a unique name upon export. Does this name have anything to do with the error I am recieving? I am not sure what characters are reserved in filenames when it comes to this.
... View more
12-06-2012
07:28 AM
|
0
|
0
|
961
|
POST
|
So this is what my code looks like (copied from the python window). I am sure I have some simple error but it is hard to fix when your still at the starting gate. Is there some way that I can actually see what the Listing looks like? As in have it create a simple .txt or something similar so I can see if the ListFeatureClasses command is even finding what it is supposed to find? I tried to simply "print Listing" but all I get are "[]" as a result which makes me think it is not seeing the file in the first place for some reason. This file has about 15 shapefiles (and their associated files) generated by the eCognition image processing software and I am using it for testing because I have much bigger ones with thousands of very small shapefiles that I am really gonna need Python for. Anyway, my error message below is talking about input parameters. Really wish they offered a python course here at my university. Again I appreciate the help from you guys. import arcpy
>>> arcpy.env.workspace = "D:eCognition Results/Landcover/Buildings"
>>> Listing = arcpy.ListFeatureClasses()
>>> arcpy.Merge_management(Listing,"MergedFile.shp")
Runtime error <class 'arcgisscripting.ExecuteError'>: Failed to execute. Parameters are not valid. ERROR 000735: Input Datasets: Value is required Failed to execute (Merge).
... View more
12-06-2012
06:57 AM
|
0
|
0
|
4043
|
POST
|
I'm getting an error for invalid input. This seems to be the same problem I have had with the other scripts. Can't find any extra info on the input parameters in the help section.
... View more
12-05-2012
01:09 PM
|
0
|
0
|
4043
|
POST
|
Hello, I am very new to Python scripting and apparently not very good at it. I have a single folder with many shapefiles that I need to merge into a single shapefile. They are in the same projection and will not hit the 2gb limit so I assume this would be the easiest type of script to write. I have been trying to execute from PythonWin since that is the IDE the ESRI training uses but at this point I don't care where I execute it just that it works. I assume the workflow to be something like: import arcpy, set the environment to that particular folders location, apply overwrite to true, create a list of the shapefiles in the folder (i assume by telling it to look for all files with the ending ".shp"), the using the Merge_management to execute the merge. So with that said, could anyone offer some help. I have found a few other scripts online but they have some extra arguements for parsing and what not and I could not get them to work. All help appreciated
... View more
12-05-2012
09:00 AM
|
0
|
19
|
16236
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|