8
votes
Remove lock on feature class
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 ...
4
votes
Accepted
Prerequisites for running Visual Studio 2012 ArcGIS desktop application exe on any machine don't have ArcGIS installed
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 ...
3
votes
IApplication in AxMapcontrol (FindExtensionByCLSID in ArcEngine Application)
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 ...
3
votes
Accepted
Unable to load DLL 'ArcGISVersion.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
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 ...
3
votes
Adding several shapefiles to GroupLayer fast using ArcObjects
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 ...
2
votes
Improving performance when merging features using ArcObjects
The right approach to unioning efficiently multiple polygons in ArcObjects is to store all polygons in a GeometryBag, create a new polygon using ITopologicalOperator interface and union the geomtrybag ...
2
votes
Accepted
ArcObjects - WFS:
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 ...
2
votes
Objects in this class cannot be updated outside an edit session
If you're working on an arcgis engine app then check your licence initializer
change bindingarcgisruntime method the below code
void BindingArcGISRuntime(object sender, EventArgs e)
{
//...
2
votes
Adding INDEX to IFeatureClass with ArcGIS SDK for Java?
Ihad the same problem and I resolved it by casting featureClass from IFeatureClass to FeatureClass:
IFeatureClass featureClass = featureWorkspace.openFeatureClass(shapefileName);
FeatureClass ...
2
votes
Accepted
Get IFeatureLayer from ILayer using ArcGIS Engine?
based on the conversation here is the code:
IMap mapControl = form.axMapControl2.ActiveView.FocusMap;
ICompositeLayer basemapCompositeLayer = (ICompositeLayer) mapControl.Layer[0];
ILayer ...
2
votes
Accepted
Setting Up Snapping Environment Snapping Type using ArcObjects
Cast them to ints, add them and recast back to esriSnappingType, like:
snappingEnvironment.SnappingType = (esriSnappingType)
((int)esriSnappingType.esriSnappingTypePoint +
(int)...
2
votes
The type 'ESRI.ArcGIS.Geodatabase.WorkspaceClass' has no constructors defined
You need to point edit to an existing workspace object not the base class. So you need to get a handle on the workspace you intend to edit before you point an IWorkspaceEdit interface to it.
Search ...
2
votes
"Geometry cannot have Z values" exception in ArcGIS Engine
I just encountered a similar problem and wanted to offer an answer since Richard Morgan's above comment solved the problem.
I had a point feature class that was not Z-enabled but was, at the same ...
2
votes
Accepted
Putting features (IFeature) into ifeatureclass with ArcGIS Engine?
You can not cast a FeatureClass into a ILayer! Here's the proper way to reach an ILayer from a FeatureClass:
....
IFeatureLayer fl = new ESRI.ArcGIS.Carto.FeatureLayer()
fl.FeatureClass = FC;
var l ...
2
votes
Displaying specific version of geodatabase on AxImapControl using ArcObjects in C#?
Problem Solved
pMap is Input arg MainMap and
axMapControl1.ActiveView.FocusMap is Input arg ChildMap
IObjectCopy esriObjectCopy = new ObjectCopyClass();
System.Object copyTarget = ...
2
votes
ArcObjects 10.0 Add-Ins
It is not possible to use Esri Addins, regardless of whether you are using Python Addins or .NET Addins, to extend a custom application. You can only use Esri Addins to extend ArcGIS for Desktop ...
2
votes
Building desktop map applications in ArcGIS Engine using Python?
Is it possible? Possibly, you can connect to ArcObjects from python using comtypes as demonstrated in this example: Accessing ArcObjects from Python?. I do not recommend this though. It is easier to ...
2
votes
Accepted
Using ArcGIS Engine with Background Geoprocessing (64 bit)
It's not actually as complicated as you'd think.
It's simply a matter of installing both the SDK environment (ArcEngine) and the 64bit Background Geoprocessing for ArcEngine. Once that's installed, ...
2
votes
Accepted
Why feature.shape can't use multipoint type?
I think you're having trouble because IPointCollection does't implement IGeometry or because you haven't set the spatial reference property, to add lots of points to a point collection as a multipoint,...
1
vote
Accepted
JAVA GIS create shapefile from FeatureLayer
I have solved this issue now and for those interested, the code is posted below... I help you all find this helpful:
public final class ExportLayerToShapefileAction extends SelectionAction {
public ...
1
vote
Save IAGSServerConnection connection properties on MXD
More generally, perhaps the question should be "How can I persist PropertySets in an Mxd?" If so, use an extension, implementing both IExtension and IPersistVariant. See "How to persist data in a ...
1
vote
Accepted
COM Exception when setting the DisplayField property
In this case the field NumEvents was not available until the DisplayRelationship was set up.
gridLayer = new FeatureLayerClass();
gridLayer.FeatureClass = layersFeatureWorkspace.OpenFeatureClass(...
1
vote
Start Editing Return Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))
I don't have a "50 reputation" to comment yet so I have to comment like this:
What is the licensed product of ArcGIS that you are running? ArcGIS Basic (formerly ArcView) cannot edit an SDE ...
1
vote
How to set up graduated colors for a layer using ArcObjects?
It's maybe too late for an answer, but I think thats what you needed - the
IClassBreaksUIProperties
IClassify classifyMethod = new NaturalBreaksClass();
(classBreaksRenderer as ...
1
vote
Accepted
Using intersect method of ItopologicalOperator gives error 0x80040239?
I found the solution at ArcObjects: Memory leak in IFeatureClass.Search (only on SDE with direct connect)
Code correction :
ITopologicalOperator4 topoOperateur = ((IClone)secteurPsr.Shape).Clone() ...
1
vote
ArcGIS standalone application deployment
Because you have classes that only belong to desktop (IGxDialog, ...), Installation of Desktop is a must do. furthurmore you need an ArcGIS Desktop (engine will not be enough) license to initialize ...
1
vote
Accepted
Access CommandItems programmatically with ArcObjects in ArcGIS Engine application
ESRI have "improved" their forum site and it's now hard to find any of the archived threads but I did find this code fragment in a thread from 2008. I've done very little in Engine so this may be a ...
1
vote
Rotate the map to GPS heading / direction in ArcGIS using ArcObjects SDK 10 for .NET
I have never tried them myself, but it looks like the iScreenDisplay interface has rotation functions: iScreenDisplay
Also check out screenDisplay.DisplayTransformation.Rotation()
Might be a good ...
1
vote
How to update/delete data from a datagridview?
I'm assuming that you are using Esri objects to connect to PostgreSQL.
Each row needs to be updated one row/feature at a time. A row and a feature are identical to a database in that a feature is a ...
1
vote
Port ArcGIS Engine to ArcGIS Runtime SDK for WPF?
Both of the options that you are evaluating are good solutions, we already have been working in something very similar application, and we choose ArcGIS runtime for WPF about a year ago, right now we ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
arcgis-engine × 341arcobjects × 170
arcgis-10.0 × 115
c# × 95
arcgis-10.1 × 20
.net × 17
development × 16
wpf × 12
arcgis-desktop × 11
enterprise-geodatabase × 11
shapefile × 10
arcgis-9.3 × 10
arcgis-server × 9
java × 9
arcmap × 7
features × 7
visual-studio × 7
arcgis-10.2 × 6
vb.net × 6
geoprocessing × 5
snapping × 5
polyline-creation × 5
arcpy × 4
coordinate-system × 4
postgresql × 4