POST
|
Many thanks Riyas, The problem is that while developing the script I run it on my developing machine and I am the only SDE user! So, it looks like the lock remained from a previous run. But it is random! Sometimes no problem! Other times LOCK! and I am used to fix it manually. I already informed the technicians about the problem and the workaround. However I like your idea and I will try it. Thanks again! Massimiliano
... View more
09-06-2014
04:03 AM
|
0
|
0
|
855
|
POST
|
The making of... ... from a not-programmer... ... ArcGIS @ work! I love Redlands (since 1994) P.S. (the code is already obsolete. LOL! I have a new version and soon I will release a newer one including the option to export the daily stuff in a transferable personal geodatabase) Comments/suggestion/critics are mostly welcome
... View more
09-04-2014
11:19 PM
|
0
|
0
|
2798
|
POST
|
Video version of the PDF I posted in another place of this space (I am a newcomer). PDF was converted (using Adobe Acrobat) in PNG slides and then i released the video using "FREEMAKE Video Converter". I found it useful to post the buletin on FACEBOOK (https://www.facebook.com/SAMOQUE) I will upload a "user's guide" with details about the "making of". Please comment
... View more
09-04-2014
11:04 PM
|
0
|
0
|
3524
|
DOC
|
I produce daily this document in the present format (PDF) via python (with embedded calls to GNU Wget and MS-Access)
... View more
09-04-2014
11:00 PM
|
0
|
0
|
2161
|
POST
|
Hi to everybody, I wrote a script that, daily, erases and recreates a bunch of layers (feature classes) and tables. The script works pretty well and completes the process succesfully with no error messages, but... ... here and there (frankly I do not see a pattern in the system behaviour) hung up due to a lock in one of the layers supposed to be deleted. I have to manually remove it: with ArcCatalog I just "manage" the layer's locks and remove the criminal one left by the previous script run. I work with ArcGIS suite 10.1 (Desktop + SDE for SQLServer + Server) Any idea? Massimiliano The piece of code I am posting is a failed attempt to remove the "hipothetical" lock programmatically... ... # Process: Select arcpy.AddMessage("13) Selecting Features from " + UQ_MP70temp + " to create " + UQ_MP70) if arcpy.Exists(UQ_MP70): arcpy.AddMessage(".13.a) Start Deleting process of " + UQ_MP70) AF_workspace = workingGDB user_name = "DBO" AF_users = arcpy.ListUsers(AF_workspace) icount = 0 for item in AF_users: arcpy.AddMessage(str(item.ID) + " - " + item.Name + " - " + user_name + " - " + str(icount)) if icount == 0: userid = item.ID if item.Name == user_name and icount >= 1: arcpy.DisconnectUser(AF_workspace, userid) arcpy.AddMessage(".13.b) " + user_name + " successfully disconnected") arcpy.AcceptConnections(AF_workspace, True) arcpy.Delete_management(UQ_MP70) arcpy.AddMessage(".13.c.1) UNLOCKED - " + UQ_MP70 + " successfully deleted") else: arcpy.Delete_management(UQ_MP70) arcpy.AddMessage(".13.c.2) NO LOCK - " + UQ_MP70 + " successfully deleted") icount = icount + 1 arcpy.Select_analysis(UQ_MP70temp, UQ_MP70, "FocosQueimadas_DBO_UQ_MP_co_15 = 3")
... View more
09-04-2014
10:36 PM
|
0
|
2
|
4659
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|