Tag Info

Hot answers tagged

3

(I don't have enough rep to comment so I'm answering instead.) @Michalis Avraam This isn't enirely true, a FGDB 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. ...


1

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 ); ...


1

In this case the field NumEvents was not available until the DisplayRelationship was set up. gridLayer = new FeatureLayerClass(); gridLayer.FeatureClass = layersFeatureWorkspace.OpenFeatureClass(layerName); gridLayer.Name = "Density Grid"; gridLayer.Cached = true; gridLayer.Selectable = true; gridLayer.ShowTips = true; [...] // Create relationship between ...


1

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 workspace so if that is what you are using that could be your problem. If you are using ArcEngine, verify the licensed product that you are initializing your ...


1

Cast them to ints, add them and recast back to esriSnappingType, like: snappingEnvironment.SnappingType = (esriSnappingType) ((int)esriSnappingType.esriSnappingTypePoint + (int)esriSnappingType.esriSnappingTypeEndpoint + (int)esriSnappingType.esriSnappingTypeVertex + (int)esriSnappingType.esriSnappingTypeEdge);


1

I found the solution thaks to : ArcObjects: Memory leak in IFeatureClass.Search (only on SDE with direct connect) Code correction : ITopologicalOperator4 topoOperateur = ((IClone)secteurPsr.Shape).Clone() as ITopologicalOperator4; IGeometry geomPsr = ((IClone)currentPsr.Value.Shape).Clone(); IPolyline polylinePsr = geomPsr ...


1

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 red herring? ICommand command = new ControlsZoomToSelectedCommandClass(); command.OnCreate(this.axMapControl1.Object); command.OnClick();


1

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 starting point.


1

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 row with a geometry registered with the database. In the same way a FeatureClass is a table with a geometry column. At some stage you have a featureclass, that ...


1

Here is one way to get feature x and y coordinates (in VB though, just some minor syntax changes needed): Private Sub AddXY_Points() Dim fCursor As IFeatureCursor Dim aFeature As IFeature Dim thePoint As IPoint fCursor = fClass.Update(Nothing, False) aFeature = fCursor.NextFeature Do Until aFeature Is ...


1

The first step is to set up your data so that you can retrieve the coordinates. You need two create two separate fields X and Y or Lat/Long whichever makes the most sense for your data and coordinate system. From there you need to right click and select "Calculate Geometry". This should calculate the X and Y coordinates for all of your points in the ...


1

based on the conversation here is the code: IMap mapControl = form.axMapControl2.ActiveView.FocusMap; ICompositeLayer basemapCompositeLayer = (ICompositeLayer) mapControl.Layer[0]; ILayer basemapSubLayer = basemapCompositeLayer.Layer[0]; if (basemapSubLayer.Valid) { if (basemapSubLayer is IFeatureLayer) { IFeatureLayer featureLayer1 = ...



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