POST
|
Attached are two layer packages of identical geometery, bound_1.lpk and bound_2.lpk. Both can be opened in Explorer 1700, but only bound_1.lpk will open in Explorer 1750. Both layer packages were produced from the same layer file. The difference is that bound_1.lpk was created through the ArcMAP 10.0 interface using the 'create layer package' context menu item bound_2.lpk was created with arcpy.PackageLayer_management() using the default settings for all optional parameters. The same problem occurs if I create layer packages from other layer files. I have replicated the problem on two separate PCs. Has anyone else found the same problem? Any ideas on what is going wrong? Any help would be greatly appreciated. My application uses layer packages to avoid Explorer placing file locks on layer files, and the layer packages are created using the arcpy library. Thank you, Drew
... View more
03-06-2012
04:00 PM
|
0
|
1
|
2727
|
POST
|
Is it possible to release shapefile locks through the .NET API after processing the shapefile? For example, there are lock files on the shapefile after executing the following, even though the table instance has gone out of scope and been disposed. string shapefile = "C\myshapefile.shp"; ESRI.ArcGISExplorer.Data.Table tbl = ESRI.ArcGISExplorer.Data.Table.OpenShapefile(shapefile); using (tbl) { foreach (ESRI.ArcGISExplorer.Data.Row row in tbl.GetRows()) { // do something } } Note that ESRI.ArcGISExplorer.Data.Row and ESRI.ArcGISExplorer.Data.RowCollection do not implement IDisposable and cannot be disposed. The locks will prevent an external process from writing to the shapefile and - as far as I can tell - can only be released by closing ArcGIS Explorer or by changing the map document, which is not an option. How can I release the locks and allow the external proces to write to the shapefile? In the arcpy (Python) library, you delete the cursor object and the lock is released. What is the equivalent in the ArcGIS Explorer API?
... View more
05-29-2011
09:49 PM
|
0
|
1
|
753
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|