12

If you are using Arcpy scripting, data lock issues have become even more problematic with 10.1. If the locks are being created by your code, then you aren't cleaning up after yourself. Release all references to feature classes, workspaces, cursors, etc. The locks are removed when you have no more references to the objects being locked. Well, that is the ...


9

The terminology confuses me too but as far as I have understood: ArcObjects is a set components with which you can write a program to control any of the ESRI products (ArcGIS Desktop, ArcGIS Server or ArcEngine). See "What is ArcObjects?". ArcEngine is the kernel of ArcGIS without the user interface. You can't do anything with ArcEngine alone, you use it ...


8

A file geodatabase has 3 types of locks. SR - schema lock RD - read lock ED - edit lock The proposed solution by @StacyR will work in all situations except for exclusive edit locks (ED) according to arcgis help documentation. http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//003n0000007t000000


7

If the locks are being created by your code, then you aren't cleaning up after yourself. Release all references to feature classes, workspaces, cursors, etc. The locks are removed when you have no more references to the objects being locked.


7

If you create an ancillary table with the attributes (fkey,xcell,ycell), populated from the objectid and a gridding of the maximum Y coordinate (or centroid coordinate or upper-center envelope coordinate), then you could use SQL to update the table, with something like: UPDATE poly SET num = vtab.rownum FROM ( SELECT row_number() over (order ...


6

So far I have not found anything to help me ease the debugging experience of the ESRI COMException, and therefore decided to try and do something about it. I put the solution on gist.github.com for everybody to use. I used the resource ArcObjects error codes and copied all the error messages with codes and enums into a text file, about 1900+ lines. Not all ...


6

To answer the first part of your question, I think it helps to look at the additional text in the Creating Attribute Indexes help file about Multi-column indexes. The order in which fields appear in a multicolumn index is important. In a multicolumn index with column A preceding column B, column A will be used to conduct the initial search. Also, such ...


6

I'm guessing you may have general performance issues such as labeling, layer scale rendering, transparencies..etc. If you have ArcGIS for Server license you may try using the Analyze button on the Service Editor to test a map document for these performance warnings. Service Editor helps you identify potential performance bottlenecks and errors that you ...


5

There may be several options. If you package your script into a toolbox you could reference your toolbox (and tool) via ArcObjects as such: IGeoProcessor2 gp = new GeoProcessorClass(); gp.AddToolbox(@"C:\YourPath\YourToolbox.tbx"); parameters.Add(@"C:\YourPath\ParamsIfYouHaveThem.gdb\ParamFC"); gp.Execute("NameOfYourToolInsideReferencedToolbox", ...


5

Knowing which map scales match the zoom levels is important because sometimes caching a map takes a long time. If there’s any error in symbology or labeling settings for a certain zoom level, that map scale will need to be re-cached, which could take a lot of time. By browsing into the folders where the cached image tiles are stored, you can ...


5

There are at least 9 top reasons to use File Geodatabase over Personal Geodatabase. Unfortunately, there are still a lot more reasons to keep the old PGDB around; your dilemma being one of them. (no ESRI publication on this topic) I believe the primary purpose of FGDB over PGDB is storage capacity and performance of spatial data (drawing speed, retrieval, ...


4

You can use Snap (Editing) tool from ArcToolbox. It can be found in ArcToolbox\Editing\Snap. Set inaccurate polygons as Input features and accurate points after post-processing as Snapping Environment. Also set reasonable Distance parameter for points. Result of my testing the tool: This tool is only available with ArcEditor and ArcInfo licenses.


4

After several emails back and forth with ESRI customer support, I was unable to track down the source of this error. However, I decided to remove the LicenseInitializer that was put in place by Visual Studio when I created the project (this used the AoInitialize class to attempt to initialize the license). Instead, I placed an AxLicenseControl on the ...


4

Go to View->Data Frame Properties and switch your Coordinate System to DHDN_3_Degree_Gauss_Zone_3 and then click the Transformations... button to tell ArcMap how to get from the ETRS datum to DHDN.


4

This is a licensing issue. A standalone ArcEngine license does not support multi-user editing. According to ESRI's documentation, multi-user editing geodatabase functionality only exists for ArcGIS Server licensing. Since you have tagged this question with ArcGIS Server, I am going to assume that you have an ArcGIS server license. What you need to do is ...


4

The best is to check ESRIs product information sites on its products, they describe its key features pretty well. In short words: ArcGIS Engine is a pure Developer Toolkit to embed ESRIs GIS Technology (Map View controls and so on) in individual Desktop and/or Mobile (Windows 6.5 and 7 mobile) Applications which are not intended as a pure GIS application ...


4

It seem you have written an ArcEngine application. So, you must install ArcEngine Runtime on any machine you need to run your application. ArcEngine Runtime is the minimum. You can either install ArcEngine SDK or even ArcGIS Desktop to run you application. The Arc Application (Engine or Desktop), must match the version of sdk that you have built your ...


3

Since ArcGIS Desktop defaults to a direct connection when connecting to SDE starting with 10.1, you need to make sure that your clients have the appropriate SQL Server Native Client installed. Since we are running SQL Server 2012 we downloaded the native client portion of the SQL Server 2012 Feature Pack. After installing it on the client, the application ...


3

Here are two possible solutions for your problem: 1) Modify the ArcSDE System tables from your .NET application. The SDE_LAYERS and SDE_TABLE_REGISTRY tables contain rows that represent your table. The row for your table has a MINIMUM_ID field value, which is what the geodatabase will use when it inserts new rows. I don't recommend making changes to the ...


3

You saved a device context identifier, but ArcGIS creates and uses a different device context to print on afterwards. This means that what you draw in the layer extension is not visible in the output document. You cannot use IPrintAndExport in your case because it does not allow you to reach the device context used when printing and exporting. You will ...


3

I think I encountered a similar issue at Problem Initializing License for ArcEngine application. In my case, the application was binding just fine, as yours was, but when I tried to use any AxControls (Map, TOC, Toolbar), I got the same error that you did. I was unable to resolve the issue with technical support, but found a workaround for my project. If ...


3

It sounds like you need to explode your single part polygon to multipart: e.g. Explode polygon feature private void button1_Click(object sender, EventArgs e) { IWorkspaceFactory pwsf = new FileGDBWorkspaceFactoryClass(); IWorkspace pws = pwsf.OpenFromFile(@"D:\temp\Yogesh\Vector_YV5612\Vector_YV5612.gdb", 0); IFeatureWorkspace pfeatws = pws as ...


3

Using GDAL >= 1.10.0 compiled with SQLite and SpatiaLite, it's quite simple. Suppose we want to order the labels from left to right. Firstly, we have to calculate the distance of each feature from a common reference on the left of all geometries (e.g. -180th meridian) and then order the geometries by distance. ogr2ogr FRA_adm1_temp.shp FRA_adm1.shp -...


3

Have you tried using IMultiuserWorkspaceEdit. IWorkspaceEdit workspaceEdit = (IWorkspaceEdit)DB_Access.get_obj().ws; IMultiuserWorkspaceEdit multiuserWSE = (IMultiuserWorkspaceEdit)workspaceEdit; multiuserWSE.StartMultiuserEditing(esriMultiuserEditSessionMode.esriMESMVersioned); workspaceEdit.StartEditOperation(); IFeatureClass fc = DB_Access.get_obj().ws....


3

The problem was somehow the target CPU of the project had changed. If you go to project properties and then compile there are 2 places where the target platform is set. On the first line there is a dropdown for "Platform". This was correctly set to x86. But 4 rows down there is another drop down for "Target CPU". This was set to x64 somehow. Once I changed ...


3

ArcEngine doesn't work like ArcGIS Desktop. If you have the proper licensing for a functionality or extension (e.g. spatial analyst) in ArcEngine, then you can use the related Interfaces of that extension. ILocatorExtension, itself is dedicated to ArcGIS Desktop and can not be used with ArcEngine. With ArcEngine your should utilize : ILocatorWorkspace2 ...


3

I suspect you are being unrealistic, adding several hundred layers to a map document or even grouplayer will make the map document unwieldy and almost certainly unstable. If you think about it on each insertion it needs to place it in the TOC, symbolize the data and if left on refresh the map display. IEnumLayer to my knowledge only comes from IMap so your ...


2

Take a look at the code below. Full code in git repository can be here: https://bitbucket.org/bugramovic/fme_arcobjects_interop_example PrintStream out = System.out; FMEWorkspaceFactory fmeWorkspaceFactory = new FMEWorkspaceFactory(); IPlugInWorkspaceHelper plugInWorkspaceHelper = fmeWorkspaceFactory.openWorkspace( pathToFdlFiles ); ...


2

OpenStreetMap Loader for ArcGIS There is a geoprocessing script tool that will load the openstreetmap xml planet dump file into a file geodatabase. It works directly against the compressed *.bz2 file. It is a Python script and toolbox, designed to load the data without using too much memory whatever the size of the source data. The script has been updated ...


2

I think you need to execute arcpy.ListFeatureClasses to get a list of featureclasses in your geodatabase.


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