Tag Info

Hot answers tagged

4

I suppose that you are working with SDE. You should kill all connections using sdemon command-line tool. If there is an ArcSDE installed on PC where you a running the script then you can execute sdemon -o kill locally to kill all connections. Take a look at this help topic. I am not sure is it killing direct-connections on 10.0. I remember that it was a ...


3

QGIS 1.8 does not (and probably will not) support databases created with Spatialite 4.0. It requires rebuilding QGIS and setting the SPATIALITE flag to the 4.0 library which you must have already installed. And all the developers and packagers are focusing in the coming QGIS 2.0 rather than rebuilding 1.8. I believe that this next release of QGIS will use ...


3

Although it usually isn't hard to find the lock files (as @Marcin D describes), I would generally recommend against deleting them from a FileExplorer. ArcGIS sometimes doesn't release locks properly, and in those cases a workaround could be to manually delete the lock file (at least if you don't want to wait for ArcGIS to restart). Just be careful not to ...


2

If you are trying to edit a shapefile you will have to have exclusive access to the file (no other users accessing it) in order to get the lock for editing. You can see this question about how to "kick them off". Alternatively, you could just ask your co workers to stop using the shapefile while you edit.


2

I've just come up with the following construction: def main(): # my entire code if __name__ == "__main__": try: main() except Exception, e: import gc gc.collect() import traceback arcpy.AddError(traceback.format_exc()) This way I don't loose any messages and so far all locks have been released properly. ...


2

You can delete all variables set and cursor rows within a try/except block: try: # your code here except: # delete your variables here del myVariable1, myVariable2, myVariable4, row, rows


2

I don't think you will be able to delete the lock files while ArcMap is actually displaying the data. You will probably get the error 'File is in use' (because the lock file will be in use by ArcMap). Manual deletion of lock files is only really appropriate when a stray lock file (possibly left-over after a crash) is getting in the way, as opposed to a ...


1

This can be a problem in SQLite. SQLite does not grant policy for user. And I think it's about privilegs in the database and not in the QGIS application. The application can control the privilegs to edit the attributes (Properties o layer>Fields>Edit line>Checkbox Editable).


1

Viewing the contents of a file geodatabase OR editing its contents using an Esri product, it doesn't matter which, will produce a .LOCK file inside the file GDB's folder on the file system which can be seen via Windows Explorer. It will contain some numbers in its filename, one of which refers to the process ID (PID) of the active process connecting to it. ...


1

@Dan_h_b. Rename ArcCatalog.gx or if that doesn't work more broadly reset the entire application profile (http://forums.arcgis.com/threads/90079-Resetting-your-ArcGIS-application-profile). ESRI tech support always suggests resetting the application profile. It can be rough on customizations but if it works you can sometimes go back and one by one replace ...


1

Well from my experience the lock files are located in the same location as .shp files you'r opening in arcgis products. As you can 'StacjeTauron.shp' is opened in arcmap and the lock file is just below .shp file. With geodatabases its almost the same. Just go to the folder where the db is located and browse the .gdb file to find and delete locks.


1

You can try omitting the ".lock" extension in order to avoid removing those files. However, I think you may have to use the cleanup function through ArcObjects to remove everything. folder = "folder path" for the_file in os.listdir(folder): if ".lock" not in the_file: file_path = os.path.join(folder, the_file) try: if ...


1

Another possibility since you said you are using SDE is to delete shared locks from the layer_locks and table_locks tables using SQL, PL/SQL, T-SQL, etc. e.g.: DELETE FROM TABLE_LOCKS WHERE SDE_ID = :b1 AND REGISTRATION_ID = :b2 I would definitely not recommend this approach on a versioned geodatabase. See also: How are the various lock mechanisms ...


1

If you want to achieve that in ArcPad, I think you have to do some programming within ArcPad Studio. The available languages have been VBScript and Javascript, but I've heard them mention bringing Python on board at somepoint. Essentially you have to access the data table field, copy it's value and apply it to the empty field in another feature class. ...


1

WFS locking is so seldom used that the best documentation about the usage can be found from the WFS standards. Locks are only released after successful transaction or after the expiry period is passed. In WFS standard 1.1.0 default expiry time for locks is 5 minutes <xsd:attribute name="expiry" type="xsd:positiveInteger" use="optional" default="5"/> ...



Only top voted, non community-wiki answers of a minimum length are eligible