Tag Info

Hot answers tagged

2

Your function is expecting a feature class Shared Sub ShowDistinctFieldAliasNames(ByVal featureClass As IFeatureClass) but you're passing in a document ShowDistinctFieldAliasNames(My.ArcMap.Document) To pass in a feature class, you'll have to find a layer in that document and verify that it's a feature class. Something like this: dim pLayer As ...


2

You'll need to use IMultiuserWorkspaceEdit in combination with IWorkspaceEdit: You'll need to specify whether the featureclass to edit is versioned or not: muWorkspaceEdit.StartMultiuserEditing(esriMultiuserEditSessionMode.esriMESMVersioned); or muWorkspaceEdit.StartMultiuserEditing(esriMultiuserEditSessionMode.esriMESMNonVersioned);


2

I had your problem before. I will share a productive solution to solve your problem with InstallShield Limited Edition. Create a console application project in visual studio and let's call it "InvokeESRIRegAsm". Fill program.cs file with these methods: static void Main(string[] args) { if (args == null) { ...


2

When using IMap.get_Layers you can supply a UID with the intended type, for example: UID pFeatureLayersUID = new UIDClass(); pFeatureLayersUID.Value = "{40A9E885-5533-11d0-98BE-00805F7CED21}"; IEnumLayer pMapLayers = gMap.get_Layers(pFeatureLayersUID, true); Will get you all the feature layers (Vector) in your current map recursively... normally you would ...


2

This how I would do it: Create your two points Cast polygon into ICurve Use the ICurve.QueryPointAndDistance Method and get the DistanceAlongCurve value for each point Use ICurve.GetSubcurve Method to extract the red curve you have identified in your image.


2

According to the product engineer at Esri responsible for the Find Dialog, there is no way to customize the context menu on the result items of the "Features" tab: The Find dialog was refactored many releases ago so it could be reused in ArcReader, Engine, ArcMap, ArcScene and ArcGlobe. As a result the context menu for find features results doesn’t ...


1

Further to what Vince has indicated.. create a spatial reference with ISpatialReferenceFactory3 (CreateSpatialReference is the easiest) and then find out what it is. You have the SRID/EPSG code so create a spatial reference object and then test its type (ISpatialReference is implemented by both geographic and projected coordinate systems and also unknown ...


1

You can use the Delete method in IFeature Interface. IFeature.Delete() For your code: ... lpVerFeat = lpVerFC.GetFeature(lpFeature.OID) lpVerFeat.Delete() ...


1

Looking at the API for the Interface IAddDataDialog it appears you need to set the Document property which you are not doing in the screen shot you supplied. May be that is the source of the problem? In the walk through example on how to build a map viewing application they simply add a reference to the add data button to a toolbar, that may be a simpler ...


1

You can get your feat geometry and create buffer using Topological operator. These code can use for you. double bufferDistance = 0.0; // Note: set buffer distance as you want. For eg:200 or 500 var featShape = feat.ShapeCopy as IGeometry; var topologicalOperator = featShape as ITopologicalOperator; var featureBuffer = ...



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