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

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

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 = ...


1

In the absence of a more detailed description of your system, I would suggest to use Versioning when there are multiple editors. Study this document which explains every thing you need to know with the same parcel division example. If you use above given method you do not have to import or export the data.



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