|
POST
|
Josh, From your spreadsheet it looks like anytime there is a feature class that shares the same name as the feature dataset it is in, that no feature classes are returned from listfeatureclasses(). I have attempted to test the same scenario with some of my data, but couldn't reproduce the issue. Could you share your complete code? What kind of geodatabase are these feature classes stored in and do you know what version the geodabatase is?
... View more
06-10-2011
08:37 AM
|
1
|
0
|
5881
|
|
POST
|
Josh, Is it truly random or if you run it on the same feature dataset every time are the same feature classes printed or ormitted each time? Could you send an example of what is printed and what actually exists in the geodatabase? Initially I am guessing that for example you have a topology in the feature dataset and this is printed, which is expected. ListFeatureClasses() will not return topologies. There are other data types that will not be returned as well. So you should look closely at what data types are not actually being returned in python.
... View more
06-08-2011
04:27 PM
|
1
|
0
|
5881
|
|
POST
|
Hi Josh, This is the order in which they are stored in the database, what you see in ArcCatalog has been sorted alphabetically to assist you in finding the proper feature class. If you wish to display the list of feature classes alphabetically in Python just call the sort method on the list of feature classes datasetList = arcpy.ListDatasets("*", "Feature")
for dataset in datasetList:
print dataset
fcList = arcpy.ListFeatureClasses("*","",dataset)
fcList.sort()
for fc in fcList:
print fc
... View more
06-07-2011
03:11 PM
|
1
|
0
|
5881
|
|
POST
|
Also I would add that once you have the path to the feature class you can use the function 'AddFieldDelimeters' to add the proper field delimeters for the field based on the workspace type. It will automatically know how to delimit a field in a file GDB vs. a PGDB for example.
fc = arcpy.getParamaterAsText(0)
fieldName = arcpy.getParamaterAsText(1)
newName = arcpy.AddFieldDelimiters(fc, fieldName)
sqlExp = newName + " = 5"
... View more
06-02-2011
03:59 PM
|
1
|
0
|
1354
|
|
POST
|
Hi Curtis, Thank you for posting this issue. We logged a defect for this issue, NIM066920 "Unicode escape is still being interpreted in Calculate Value (Model Builder) tool even when passing a raw string to the expression." Unfortunately the only workaround I have been able to discover is to hard code the path, either in the expression or in a Model Variable that you pass as an inline variable, to have double slashes instead of single slashes. For example "C:\\Users".
... View more
04-06-2011
08:32 AM
|
0
|
0
|
3067
|
|
POST
|
If the soultions discussed in this thread did not help in resolving the issue I would recommend you contact Technical Support for additional assistance on troubleshooting this issue.
... View more
04-05-2011
09:12 AM
|
0
|
0
|
377
|
|
POST
|
FYI - I noticed a difference between the versions of Arcmap in my situation. I created the layer package on a computer running ArcMap Build 2800. the users having difficulty reading this file were running Arcmap Build 2414. I recreated the layer package using build 2414 and there were no problems for any user. Aimee Hi Aimee, That is a good point and is worth mentioning. What you are finding is expected behavior. With the release of Service Pack 1 for ArcGIS 10 (Build 2800) the technology used to compress and zip packages changed and as a result customers without service pack 1 are unable to unpack those packages. For customers at 10 (Build 2414) the solution is to upgrade to service pack 1. For customers at 9.3.1 Service Pack 2 who wish to use layer packages created at 10 Service Pack 1 they should install the ArcGIS 9.3.1 Service Pack 2 Desktop Layer Packaging Patch.
... View more
03-29-2011
03:51 PM
|
0
|
0
|
1438
|
|
POST
|
Also a thing to consider is if your model does everything you want it to, there is no need to export it to python. If for example you want to setup a scheduled task to run your model, you do not need to export it to python you can just call the model from python and pass the necessary paramaters. As Kim said you are never going to be able to get as efficient a python script just by exporting your model to Python and there are very limited use cases for pursuing this workflow.
gp = arcgisscripting.create(9.3)
gp.AddToolbox("c:/mytoolboxes/custom_tools.tbx")
gp.MyModel_customtools("c:/mytoolboxes/test.gdb/inputFC")
... View more
03-28-2011
12:36 PM
|
0
|
0
|
1802
|
|
POST
|
You are right - I found the file. So, in that I am experiencing this problem - to where do I want to redirect the unpacking? It's was set on "Automatically select location". I set it to "D:/ESRI_unpacking". That did not correct the problem. Hi Walt, If that is a location you have read/write permissions to then it is unlikely that the cause of the problem is due to the location it is attempting to be unpackaged to. At this point I would recommend you contact technical support so that they may continue troubleshooting the issue and potentially use some other tools to determine why this process is failing.
... View more
03-24-2011
11:10 AM
|
0
|
0
|
1438
|
|
POST
|
For those of you running Windows 7: if you have redirected your My Documents folder to a network drive you will not be able to use the basemaps or ArcGIS Online. Windows 7 does not allow you to index a mapped drive and the map packages do use indexing. The only way we have found to get around this is to have your My Documents folder pointing your local hard drive. Hi Amber, I setup this test scenario. I have 2 Windows 7 machines on the internal network. I share a folder on on the 2nd machine. I mapped the location of the shared folder from the second maching on the first computer as the E:/ Drive. I created a folder called documents on the E:/ Drive. I then browsed to the My Documents folder in my C:/Users/UserName folder, right-clicked to open its properties, and changed to the location of that folder to the E:/Documents folder. I then started ArcMap and attempted to open a basemap. It opened succesfully and I confirmed that it did indeed unpack the layer to the E:/Documents folder or the shared folder on my second machine. Could you confirm this was the configuration you had? If not, how as it different? Could you pass along the OS of the server machine you are redirecting your My Documents to? If anyone else has a similar environment and can reproduce the issue could you please share the details?
... View more
03-24-2011
11:08 AM
|
0
|
0
|
1438
|
|
POST
|
I am using Windows 7 (64bit) and am experiencing the same problem. I do not have "ArcGISFileHandler.exe" on my computer (per Windows 7 search). So what now? Walt, You have to have the file handler executable or your wouldn't be able to run the software. On windows 64 bit the default location the file would be located is: C:\Program Files (x86)\Common Files\ArcGIS\bin However, if you changed the location of the install you can find the file in the same relative path. for example if you installed in D:\My Programs it would be located in: D:\My Programs\Common Files\ArcGIS\bin
... View more
03-24-2011
10:49 AM
|
0
|
0
|
1438
|
|
POST
|
I would recommend you use python. From python you could call the Make XY Event Layer tool and then pass the output of that to copy features to create a new feature class. This workflow wouldn't even need to touch ArcMap. If you are at ArcGIS 10 I would recommend starting with this help document page, A quick tour of ArcPy.
... View more
03-23-2011
02:06 PM
|
0
|
0
|
336
|
|
POST
|
Yes at the least I think tech support could get your full code sample and some sample data to reproduce the issue and potentially log a bug. I would be interested to hear what the final outcome is.
... View more
03-08-2011
08:10 AM
|
0
|
0
|
520
|
|
POST
|
And you are saying that after the code to create the geometry list that when you loop through the geometry list and process each individually that you get 5 feature classes each with one feature with unique geometry and if you process the whole geometry list you can one feature class with 5 features each with the same geometry? If that is the case I don't really have any idea what could be causing it and would recommend you contact Technical Support to troubleshoot it further.
# make a new geodatabase feature class for the streams:
for i in range (0, len(upstream)):
ln = upstream
arcpy.CopyFeatures_management(ln, "line" +str(i))
arcpy.CopyFeatures_management(upstream, "streams")
Also just to verify you might want to try running the code below just to get more of an idea of the geometry in the list. If the extents are different then the geometries you are creating are different and I am not really sure why they would not be outputed that way when passed to Copy Features.
for g in upstream:
print "Min X: {0}, Min Y: {1}, Max X: {2}, Max Y: {3}".format(g.extent.XMIN, g.extent.YMIN, g.extent.XMax, g.extent.YMax)
... View more
03-03-2011
04:18 PM
|
0
|
0
|
2442
|
|
POST
|
What is in quotes below can be found near the bottom of the linked page. Does this make any sense??? Brandon" Brandon, Check out the following help topic. This should accomplish what you are looking for: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Embedding_scripts_and_password_protecting_tools/005700000017000000/
... View more
03-02-2011
01:08 PM
|
0
|
0
|
2765
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-02-2011 03:59 PM | |
| 1 | 06-10-2011 08:37 AM | |
| 1 | 06-08-2011 04:27 PM | |
| 1 | 06-07-2011 03:11 PM | |
| 1 | 01-31-2013 02:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:22 AM
|