Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arcobjects]

ArcObjects is a set of COM-based APIs from ESRI Inc. that are used in several of their products including ArcGIS Desktop, ArcGIS Engine and ArcGIS Server.

0
votes
0answers
9 views

ArcMap / ArcObjects - Type “OLEDBWorkspaceFactory” is not defined when creating a new workspace

Making an Add-In for ArcMap, refactoring old VBA code into VB.NET. Trying to create a new workspace with ArcObjects in VB.NET. I am getting the error: BC30002 Type "OLEDBWorkspaceFactory" is not ...
0
votes
1answer
25 views

Access Label from DockableWindow and Update text to it ArcObjects C# [on hold]

I am adding dock-able window and opening it on click of a button, I have a Text on it and I want to Update feature count in that Text box. When I draw a polygon on ArcMap I am able to get Feature ...
2
votes
1answer
34 views

Getting line segment object from points

I am fairly new to Arc Programming and am currently using .net to build my tool. There is not much back ground information as I am starting from a Blank Map. The goal of my tool is just to create a ...
0
votes
0answers
9 views

IAttributeEditorDriver Interface - Ericsson Network Engineer

I was going through the SDK documentation for the IAttributeEditorDriver interface and it has the functions I am after, but the SDK does not detail what object does it need to 'latch' to in order to ...
1
vote
1answer
36 views

Using ArcObjects in ArcPy to change map grids in Data Driven Pages

I'm a newcomer to Python and have been working on using ArcPy scripts to automate Data Driven Pages in ArcGIS. I would like some help please to use ArcObjects in ArcPy and change map grids in DDP with ...
0
votes
0answers
29 views

System.TypeLoadException: Types extending from COM objects should override all methods of an interface implemented by the base COM class

Ok, here is the situation. I am looking to get a custom arcobjects vb.net extension running correctly on ArcMap10.5. When loading nodes in an attachment viewer I receive the following error once ...
1
vote
2answers
36 views

Refreshing Versioned Feature Class using ArcObjects?

I have a FeatureClass A. This Feature Class is Versioned. User X has a tool open, that reads records from this Feature Class, by clicking a refresh button. The refresh button code is basically a ...
0
votes
0answers
17 views

ArcObjects SDK for .NET JSONToFeatures fails when large JSON file is used

I have a large JSON file which I download from ArcGIS Server REST (size is 140MB). When I try to execute the JSONToFeatures Geoprocessing tool on this file I get an error. Code: (call below method ...
0
votes
1answer
47 views

Esri ArcObjects SOE

For my prototype I have published a service with one layer. The layer has 3 polygons with an entitlement attribute. Only one polygons entitlement is set to true. I need to write an SOE (in Java) to ...
1
vote
0answers
26 views

ArcObjects, “License not intialized” error, but it should be initialized [closed]

In my VB.NET application, I am using ArcObjects 10.4 and I am initializing ArcGIS. I load a feature class from a shapefile. The problem is that I get an HRESULT error 0x80040228, which is 2147220952 ...
0
votes
1answer
15 views

ArcObjects: with transformation reprojected tiles are drawn with spaces

I have used this Code from Kirk to choose a transformation if the spatial reference do not match when adding a layer with tiles. The tiles already got automatically reprojected to the existing ...
0
votes
0answers
13 views

How can I obtain the layers and tables catalog from within an ArcGIS SOI?

I am writing an ArcGIS 10.4 SOI in .Net and I would like to obtain the layer name for a layer id during an HTTP REST request intercept. Currently, when the SOI is started the first time, two requests ...
2
votes
0answers
16 views

Pan viewer window changes scale first time

I have written a simple tool to pan a viewer window (if present) to the centre of the map view, which reduces the number of clicks required and mouse travel to Pan Viewer to Map Location, it works ...
1
vote
0answers
20 views

Updating shapefile metadata to show up in ArcCatalog?

I am attempting to update the metadata for a variety of shapefiles to change the information under 'Summary' (or 'Purpose'), 'Description' (or 'Abstract'), etc. in ArcCatalog's Description tab. I am ...
1
vote
0answers
20 views

What type of object is required for IViewRefresh.RefreshItem “Data” parameter?

Esri's help for this method specifies this as LPUNKNOWN, which is rather unhelpful since I don't speak COM. I've tried an envelope, a geometry, and a graphicsContainer; each time receiving "System....
0
votes
1answer
67 views

Using ArcGIS Engine with Background Geoprocessing (64 bit)

Could someone suggest how to use ArcGIS Engine Background Geoprocessing (64 bit) in ArcGIS Engine 10.4 ArcObjects console application? I am using C#, .Net 4.5.2 framework, ArcObjects SDK 10.4 to ...
1
vote
1answer
39 views

Closing ArcMap getting started dialog using ArcObjects by C#?

I don't want the ArcMap "Getting Started" dialog to appear after arcmap starts up. I have a login form in my Extension and after login I set a proper MXD for the user. So I don't want the "Getting ...
2
votes
0answers
142 views

Setup ArcGIS 10.6.1 SDK runtime in Visual studio 2017

I have ArcGIS 10.6.1 and I wish to setup ArcGIS Add-in in Visual Studio 2017 community edition. I installed Visual Studio followed by ArcGIS Desktop. Then I installed ArcGIS 10.6.1 runtime SDK. ...
4
votes
2answers
56 views

Extending ArcGIS Metadata Style?

I want to extend metadata style. I want to add three new fields in metadata of feature class. I know there are different standards of metadata which ArcGIS Supports. Is there any way or possibility ...
4
votes
1answer
46 views

ArcObjects: Convert Feature to JSON

I need to get the JSON from a feature using ArcObjects. According to I tried to following code, but it does not work: var jsonWriter = new JSONWriterClass(); jsonWriter.WriteToString(); var ...
2
votes
1answer
30 views

ArcObject10.1:Memory Leak with ILasDataset.Export()?

I have created a function for exporting to the las in the geometry range by the ILasDataset.Export method.now every time the function when it is called,it takes some memory,but doesn't release that ...
1
vote
0answers
55 views

Run-time error -2147467259 (80004005) in VBA when clicking and saving polygon to shapefile? [closed]

I'm fairly new to this project and to VB and got some of old code to fix. The task is to click a polygon on the screen with the mouse and then save it to a shapefile. When executing the code, it ...
2
votes
1answer
33 views

Fitting to Margins of Layout in ArcObjects?

What ArcObjects are involved in making "Fit to Margins" work for a given Page Layout? Easier to see from picture below:
1
vote
0answers
36 views

Load WFS via QuickImport from ArcGIS DataInteroperabilityTools

For a project I have to load a WFS layer in ArcMap programmatically. Since Version 10.0 there is no ability to use the FMEWorkspace as discussed here. The only way to load WFS-Data to ArcMap is to ...
3
votes
2answers
54 views

How am I supposed to use IWkb.ExportToWkb in C#?

ArcObjects provides an interface named IWkb for obtaining a WKB representation of a geometry. Generally, you can cast a geometry object to it: // WKB representation of POLYGON((0 0,1 0,1 1,0 1,0 0)) ...
2
votes
1answer
42 views

Combine multiple adjacent polygons into 1 polygon

I have a third party tool that is creating a color filled area by placing many polygons side by side. I need to combine these polygons into 1 polygon. Unfortunately changing the 3rd party tool is not ...
2
votes
0answers
39 views

Asynchronous creation of FeatureClass with BackgroundWorker failed

I use BackgroundWorker to create asynchronous class elements. When running to IFeatureClass pFeatureClass = pFeatureWorksapce.CreateFeatureClass(pFileName, pFields, null, null, esriFeatureType....
2
votes
1answer
528 views

Setting Embed Interop Types in ArcObjects to True or False?

I took over a new project with some legacy ArcObjects code and the original developer set the ArcObjects references "Embed Interop Types" property in Visual Studio to a mixture of "True" and "False". ...
3
votes
1answer
36 views

Is there a built in way to reduce the amount of points in an IElement

I have a polyline element and I want to reduce the number of points (vertices?) that make up the line. I know it will make the curved sections jagged and that is fine. I just want to control (perhaps ...
2
votes
1answer
42 views

Convert an IFeature to an IElement to display on the graphics layer

I have read some posts and looked at a few different examples but I am still having a problem. My problem seems to lay with the location of the IFeature's shape, they are coming back as x= 590241....
3
votes
3answers
94 views

Getting Layername from selected feature using ArcObjects?

I have a IEnumFeature list of selected Features obtained through IApplication.Document.ActiveView.Selection. From this selection I want to delete some feature, more specifically the features from one ...
6
votes
2answers
95 views

Custom ArcObjects Toolbar Unavailable for Some Users

I'm responsible for maintaining an extension to ArcMap that consists of a toolbar with a bunch of menus & commands & tools. It uses the old-style COM registration for all of its UI. Recent ...
3
votes
1answer
87 views

Determining validity of odd polygon using ArcObjects?

Using ArcGIS 10.4.1 a user in our department created a polygon and saved it to a feature class as shown below. The area covered is correct as at times it could overlap itself. I have calculated the ...
1
vote
0answers
51 views

Analyzing single Polygon or Polyline that overlaps itself using ArcObjects?

My current process is to determine obstructions in an area and determine properties of those obstructions as they relate to a centre polyline. Per the image below I take a polyline which denotes a ...
4
votes
1answer
73 views

Reshape ILineElement with ISelectionTracker in graphics container

End goal: Allow user to move points on a ILineElement using the selection handles from ISelectionTracker. Issue: Using my code below I am able to get the handles to appear on the line element, but it ...
0
votes
1answer
28 views

quickwatch on COM-objects does not show any information

While debugging my ArcObjects-code using VS2015 and .NET 4.5 I often try to inspect the data from my geodatabase. So for example see this code: public static bool PointsAreCollinear(IPoint from, ...
1
vote
0answers
32 views

ArcGIS C# RubberPoint.TrackExisting not working

I have a simple marker symbol I have drawn on the map. I am trying to use a rubber band to drag-move it to a new location. I think I am close because when I use .TrackNew instead of .TrackExisting the ...
3
votes
0answers
51 views

Symbolize Rubberband Tracker as it tracks

I am trying to symbolize a rubberband tracker as it is drawing. The default symbol is a simple black line. When setting the symbol of the line in the ScreenDisplay method and and calling ...
0
votes
0answers
55 views

Getting object info using Python in ArcGIS Desktop? [duplicate]

I want to get last clicked geometric object detailed properties: a Field-Value pair from a particular layer where this specific object resides using Python. In this case, I clicked on the triangle ...
0
votes
0answers
23 views

Getting Annotation Text Geometry Only (without leader line) as Polygon Using ArcObjects?

I have an annotation feature that also has a line callout (see picture). I need to use ArcObjects to get the polygon that surrounds ONLY the text (not the line callout). The following link is very ...
1
vote
2answers
62 views

Playing with Events of BaseTool to draw Geometries.in ArcGis using ArcObjects C#

I have been trying to create a tool that creates a line using points. The idea in my mind is to get the points from a onmousedown Event and putting them in generic list and draw the line geometries ...
1
vote
3answers
47 views

Getting shared distance of two parallel lines using ArcObjects?

I have 2 lines Line A, and Line B that share from point. The 2 lines at first share the same path and are parallel, then they split into different paths. I would like to calculate that segment in ...
1
vote
1answer
42 views

Converting Multipart annotation to Singlepart causes stale record

When converting a feature-linked multipart annotation to a singlepart in either the context menu within ArcMap, or with the ArcObjects interface I am left with an annotation that becomes stale. ...
1
vote
0answers
33 views

How export geodatabase version differences in ArcPy?

With ArcObjects I have this code in C# to export the differences to a XML file: ESRI.ArcGIS.GeoDatabaseDistributed.IVersionDataChangesInit pVDataChgs; var pvTemp = new ESRI.ArcGIS....
1
vote
1answer
89 views

Drawing a line using 2 points

I was trying to create a Basetool which will collect points onMouseDown event. I was trying my tool to draw a line with the points collected. To collect points I used List. I am just putting the code ...
2
votes
1answer
53 views

Change Layer's Label Property “Display coded value description”

I created labels for layer in according with this example They display coded value description from domain, but I need value itself. I can resolve it manually by unchecking this option "Layer's ...
2
votes
1answer
42 views

How to find the original vertex location from the OnVertexMoved event

So I am creating a fairly small, and hopefully simple, editor extension. This is in Arc 10.4. What I would like to do is this. If a user is editing a feature and is manipulating the edit sketch, ...
0
votes
0answers
46 views

Generate stream network for every pixel of flow direction as a polyline shapefile based on the raster cell value

I have a flow direction raster (coded with ESRI flow directional encoding scheme) and I want to generate stream network for every grid cell of flow direction raster as a polyline feature based on the ...
2
votes
1answer
61 views

Setting field visibility in ArcMap using C#?

I want to set certain fields of a featurelayer to be visible on startup. how would I go about changing the field visibility of certain fields? if (featureLayer.Name == "LayerName") { // Code to ...
2
votes
0answers
47 views

Using EntityFramework in ArcObjects?

I want to use an ORM to retrieve some data from The SQLServer such as user permissions. I am using ArcObjects SDK 10.4 . Although I have added the EntityFramework 6.0 and my tables to a model , ...