|
POST
|
Has anyone run into this issue? I have a script that takes a bunch of points in a FGDB, creates a line with them, buffers the line then does some more analysis and outputs a polygon to a FGDB. At the last stage where I want to do a negative buffer on the polygon I've created, I get an error. I try opening the feature class in ArcMap/Catalog and I can't do a buffer positive or negative. I can run other GP tools on it, merge, intersect, dissolve etc, but not buffer. I tried running repair geometry on it and it found nothing wrong. Here is the interesting part. If I change the buffer output from a FGDB feature class to a shapefile it works fine. If I export the feature class from FGDB to a shapefile, then run the buffer with the output as a FGDB it works fine. I have reached the end of my troubleshooting abilities. Any ideas? Here is the error I get. ERROR 999999: Error executing function. cannot buffer a geometry by a distance of zero units Failed to execute (Buffer).
... View more
03-29-2012
12:11 PM
|
0
|
1
|
1494
|
|
POST
|
may you mean something like this? (Unofficial) That is just a photoshopped version of the 9.3.1 GP model. A lot changed in the arcpy module, enough that I would consider following that diagram a bad idea.
... View more
03-28-2012
01:15 PM
|
0
|
0
|
1596
|
|
POST
|
You can try using the make feature layer tool (http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00170000006p000000) then updating the amphibology (edit: symbology of course, darn autocorrect, but was too funny to delete out) with the existing layer you have. If I am following what you are trying to accomplish.
... View more
03-28-2012
08:45 AM
|
0
|
0
|
1971
|
|
POST
|
It depends if you want to make this layer permanent, as in create a .lyr file, or just add it to the map as a one off. You can accomplish the later using make feature layer.
... View more
03-28-2012
07:55 AM
|
0
|
0
|
933
|
|
POST
|
To make that automatic, without adding any code, I believe you need to change the setting in ArcMap under Geoprocessing > Geoprocessing Options "Add results of geoprocessing operations to the display"
... View more
03-28-2012
07:49 AM
|
0
|
0
|
1971
|
|
POST
|
Does it work in IDLE? If you keep using PythonWin for arcpy processing you are going to have a bad day. Give PyScripter a whirl. http://code.google.com/p/pyscripter/
... View more
03-26-2012
01:25 PM
|
0
|
0
|
1805
|
|
POST
|
This thread covers a similar problem. http://forums.arcgis.com/threads/49172-how-to-check-if-cursor-object-is-empty?highlight=empty+layer+cursor
... View more
03-26-2012
01:22 PM
|
0
|
0
|
2504
|
|
POST
|
Failure! At around 200 mxds it crashed. System process was using close to 3GB, pythonw process using less than 400MB. My memory must have failed me, I must not have run it on all the MXDs I thought I had the first round. Must have broken it up into sub directories and ran it a couple of times instead of running off everything under the root dir. Of course I was also using the computer at the same time as it was processing and I left it to run over night before, maybe that had something to do with it.
... View more
03-26-2012
12:40 PM
|
0
|
0
|
1676
|
|
POST
|
This line should have given you an error rasterlist=arcpy.ListRasters Proper syntax is rasterlist=arcpy.ListRasters()
... View more
03-26-2012
12:25 PM
|
0
|
0
|
1745
|
|
POST
|
Yes it was with large address aware. I have a few other things running right now so I won't be able to revert it back to it's original format until tomorrow. I did notice at over 100 mxds it isn't clearing down to the level it was before. Seems to shoot up when it hits a bunch of errors with the tables that I originally posted about but then drops back down, just not all the way. Just a guess, Arc may be trying to log errors with the GP tool in the background and not managing it very well.
... View more
03-26-2012
12:15 PM
|
0
|
0
|
1676
|
|
POST
|
After more than 50 mxds there hasn't been any noticeable memory increase. Fluctuates from 260MB to 500MB but seems to be clearing alright every iteration. It does seem to clear more memory when it finishes a folder chain if that helps. If there is a memory leak it is in the KBs per mxd, at least in my environment.
... View more
03-26-2012
11:57 AM
|
0
|
0
|
1676
|
|
POST
|
Here's the post that got me going. A few other memory management tips in the thread too. http://forums.arcgis.com/threads/35655-Pool-from-multiprocessing-issues?p=121358&viewfull=1#post121358
... View more
03-26-2012
11:04 AM
|
0
|
0
|
1676
|
|
POST
|
Sure I'll try re running it again. I ran it over night and didn't have much logging on as it was really just a test, but everything worked so I never bothered with checking if there were any issues other than if all the mxds could be opened and had the correct new SDE isntance. I have made my python process large address aware so that may have helped.
... View more
03-26-2012
10:46 AM
|
0
|
0
|
2581
|
|
POST
|
Are those shapefiles in your workspace directory? Try setting the full path for these variables. And add a .shp to your output as well. inCover="P:/workspace/Kreisumring.shp"
unionCover="P:/workspace/Gemeinden.shp"
outCover="P:/workspace/vereinigt.shp" Edit: Jake again!
... View more
03-26-2012
10:39 AM
|
0
|
0
|
1540
|
| 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
|