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.

Filter by
Sorted by
Tagged with
5 votes
2 answers
2k views

A bug in ESRI Line Geometry WKB that adds needless, trailing 0's behind otherwise valid WKB?

[Update 7.13.2012] My coworker noticed the the ESRI Line WKB is malformed contains unspecified trailing data, and since he's not active on GIS.SE, I posted his remarks as an answer. I'll wait a few ...
0 votes
1 answer
27 views

How to find if a point feature is snapped to a line using ArcObjects

Background to the problem: When I use the Editor Split tool on a line, the line gets split into 2, and a junction is placed between the two lines. When I use the Editor merge tool, the 2 lines are ...
1 vote
1 answer
193 views

Show updated xy coordinates 'live'?

I want to create add-in tool to show x y coordinate on status bar live. protected override void OnMouseMove(ESRI.ArcGIS.Desktop.AddIns.Tool.MouseEventArgs arg) { //this.Enabled = !...
1 vote
1 answer
3k views

Building Polygon from array of points in ArcObjects and C# [closed]

I have seen this code in ArcPy which is used to create a Polygon from a string of Points(X , Y). Can you let me know how I can us something like this to generate a polygon from an array of X,y values ...
11 votes
4 answers
24k views

Remove lock on feature class

When i try to delete a feature class , after or during the use of an Arcgis engine app which uses the same feature class i got an error concerning the lock , so i can't get ride of this lock until i ...
1 vote
1 answer
392 views

ArcGIS .Net Framework SDK for 10.8: Does not install correctly

When using the installer: ArcObjects_SDK_for_NET_Framework_108_172796 with having Visual Studio 2017 and ArcGIS 10.8 installed, the select features is missing the VS 2017 (see second image) Steps ...
0 votes
1 answer
23 views

Using SimplifyPolygon Class in ArcObjects

I want to use the SimplifyPolygon Class that existed in ArcObjects 10.3 in ArcObjects 10.6, but I cannot find it in 10.6. How do I apply the SimplifyPolygon Class in ArcObjects 10.6?
2 votes
1 answer
430 views

Need to convert from ISpatialReference to SpatialReference

I am attempting to write a method in C# that will accept as input, an ESRI.ArcGIS.Geometry.ISpatialReference object and convert it to an ESRI.ArcGIS.Client.Geometry.SpatialReference object. I need ...
2 votes
2 answers
3k views

How to use the IRelationalOperator interface to check if a point feature within a polygon feature?

I use the following code to check if a point feature is within a polygon feature pFeaBlock is a polygon feature and Fea is a point feature int blockID = -1; IFeatureCursor pBlockCursor = this....
0 votes
1 answer
162 views

BaseCustomLayer draw is not hit

I create an object derived from BaseCustomLayer which draws a polyline. I call Map.addLayer(myBaseCustomLayer) and the function public override void Draw(esriDrawPhase drawPhase, IDisplay Display, ...
2 votes
2 answers
807 views

Create a dbf table by copying the structure of another dbf table

I have a dbf table and I wish to automatically create another dbf table with a different name but with exactly the same structure i.e.fields as the existing table. Is there any ready code in VBA and ...
5 votes
1 answer
399 views

Generate Mobile Map Cache from ArcObjects

As of ArcGIS 10, is there a way to generate a mobile map cache using ArcObjects? This can be done in a stand-alone Python script: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//...
5 votes
3 answers
2k views

How can I determine the layer name in an edit session?

I have a problem with an editor extension in an Add-In for ArcGIS 10. The editor extension listens on different events occuring on shapefile layers via registering listeners: mEditEvents....
0 votes
1 answer
836 views

How to add an existing feature class to a new feature dataset

I have a feature class. IFeatureClass AOIfc = AOIfws.OpenFeatureClass("BrigadeAOI"); I need to be able to put this feature class into a feature dataset that is newly created. The following ...
8 votes
2 answers
2k views

Can custom map tiles be consumed via ArcObjects within my ArcGIS 10 Desktop AddIn?

Can I programmatically consume and render custom map tiles in ArcMap via our ArcGIS 10 Desktop AddIn? The AddIn is built using the ArcObjects SDK for C#/.NET and ArcGIS 10. Pulling and rendering map ...
1 vote
1 answer
382 views

polygon vertex to vertex distance calculation in arcobjects

I have polygon with multipart (donuts) I want to calculate vertex to vertex distance. I tried to get outer ring vertex to vertex distance and it is working. Could you please tell me how to get inner ...
1 vote
1 answer
1k views

Creating a graph from a Field values (VBA ArcObjects)

I have a combobox that shows all fields of a shapefile. I want to get these values programmatically in a label--Count, Minimum, Maximum, Sum, Mean, Standard Deviation--and populate a graph of the ...
3 votes
1 answer
1k views

How can I programmatically project the Z value of a z-aware feature point, using ArcObjects in .NET/C#?

I discovered the following code leaves the Z coordinate of featurePt untouched: // if not WGS84 project it if (!SpatialRefsEqual(featureSpatialRef, srWgs84)) { // featurePt here is a Z-Aware ...
1 vote
1 answer
558 views

ArcObjects SDK for .NET Framework with Annual Educational Advanced (ArcInfo) Single Use License

I usually use my organization's ESRI account when at work, but I am now working at my home Desktop PC. On my home PC, I have an ArcGIS 10.6 annual educational license that I do not want to sacrifice. ...
4 votes
1 answer
1k views

Checkout Spatial Analyst extention, ArcObjects code

Update After investigating more closely the CODE 2 sample below (at the end of this post), it does check out spatial analyst (sa) extension, however it does not reflect it in the Tools>Extensions ...
0 votes
2 answers
768 views

Improve Export PDF export speed

I have an ArcObjects VBA code that exports a series of group layers listed in a table (also listed in the table of contents) to pdf. For each group layer/export the legend also changes to represent ...
0 votes
1 answer
371 views

Making point move to right or left using ArcObjects?

I want to make a point and the point can move to the right or to the left. To make the point I can handle it , but I can already confused in the movement of the point. This code for draw point ...
0 votes
1 answer
1k views

Geoprocessor: using arc toolbox in vb.net

i am doing the following in order to use the predefined tool points to line in arctool box Dim ptoline As ESRI.ArcGIS.DataManagementTools.PointsToLine = New ESRI.ArcGIS.DataManagementTools....
0 votes
1 answer
283 views

ArcObjects(Java) - register table to geodatabase ESRI 10.3

We are in need of connecting to the Oracle SDE schema for registering Tables to the sde schema using only ArcObjects(Java) is it possible to do that with no dependency. Assume the geodatabase was ...
0 votes
1 answer
176 views

How get the toolbar added with 'OnCustomizationEvent' from interface 'ICustomizationFilter'?

I'm implementing the interfaz ICustomizationFilter, and using the event 'OnCustomizationEvent' of this way: public sealed partial class eManager : Extension, ICustomizationFilter { public bool ...
0 votes
1 answer
212 views

With in Version Difference (DifferenceTypeUpdateNoChange) how to pass IQueryFilter in ArcObjects

I want to know only real shape edits between 2 versions. How can I pass iQueryfilter to DifferenceTypeUpdateNoChange? public void DifferenceTypeUpdateNoChange(ITable sourceTable, ITable ...
2 votes
1 answer
206 views

Creating a selection set from selected features using select by location

I am trying to convert my VBA code to vb.net. I use “Select by location” to select all the points that intersect lines. Then I want to click a button to put the points into a selection set. Then I can ...
26 votes
9 answers
8k views

Getting started with ArcObjects?

What is the best route or place to get started with ArcObjects if one is not a developer and not aiming to become a developer? I've been using gis professionally for a long time, almost two decades, ...
1 vote
2 answers
5k views

Creating graphic point by xy value using ArcObjects

I have implemented this code to create point event layer by xy text file. However, I'm wondering how to create a point graphic by xy value? This script draws point graphic by mouse down. When I ...
2 votes
1 answer
527 views

ArcObjects OnChangeFeature event not firing unless you move feature

I am displaying points, lines and polygons on ArcMap as features with an addin. I want my end users to be able to change features (move geometries, add vertex, delete vertex etc) and get the updated ...
2 votes
0 answers
764 views

Rendering raster layer from DTED based on height color map

I have a raster layer that was create from DTED file (dt1 specifically), created by the following code: var rasterLayer = new RasterLayer(); rasterLayer.CreateFromFilePath(dtedFilePath); The dted ...
1 vote
2 answers
220 views

Understanding and using user provided file structure [closed]

I have at my disposal a folder with data provided to me by a person that knows nothing about GIS. I have the impression that its file structure was generated by some esri desktop product. I have only ...
1 vote
0 answers
158 views

Proper disposal of layers [closed]

I have a group layer. Its purpose is to show feature layers over a base map. Those feature layers are logically grouped into categories, and we provide the ability to add/remove whole categories ...
0 votes
0 answers
39 views

How to add custom URL parameters to WMTS connection in ArcObjects SDK for ArcMap?

I am trying to add a WMTS layer to ArcMap with the ArcObjects SDK. The layer adds just fine however the tile calls will not go through because the call ArcMap is constructing do not contain the api ...
1 vote
0 answers
479 views

Searching for features added in edit session with QueryFilter only works when using object id or no WhereClause [closed]

I'm getting strange behaviour reading added features from a feature class while within an edit session. The feature class is in a personal geodatabase and is open in the map control in an ArcGIS ...
4 votes
2 answers
2k views

Setting CQL_FILTER on WMS in ArcGIS?

Is it at all possible to use a CQL_FILTER on a WMS service in ArcGIS? Ideally we'd be able to programatically change the CQL_FILTER parameter in the WMS URL.
10 votes
5 answers
5k views

How do I detect relationship classes in a file GDB?

I would like to be able to detect relationship classes in a file GDB. Because users of my script might have only an ArcView level license, they would not be able to manipulate the schema of a feature ...
1 vote
1 answer
293 views

Create feature class with ArcObjects in SDE geodatabase returns No editable Layer

I want To create Feature Class in an enterprise geodatabase with ArcObjects. This is a small part of our plugin. In our case, we want to create a Feature Class in the database Identical to the layer ...
4 votes
1 answer
5k views

Modifying feature field value using ArcObjects [closed]

I'm developing an ArcMap extension and looking for a way to change feature attributes knowing its feature class and OID (and, presumably, everything else that there is in IFeature). All layers use ...
6 votes
1 answer
4k views

Updating MXD file using ArcObjects?

I'm using ArcGIS 9.3.1. product line and MXD files. At our customer we have multiple environment (DEV, QAS, PROD) which should be more or less identical except they use different datbases and a few ...
1 vote
2 answers
613 views

Querying annotations from GDB file in .Net [closed]

I have annotations in a GDB file that I need to extract to load into a non-ESRI spatial store. It's my understanding that there isn't any tool to export annotations to a shape file. I need to copy ...
0 votes
1 answer
290 views

Remove .sr lock on shapefile after removing layer from map using ArcObjects and C#

I am having difficulty figuring out how to remove .sr lock files from shapefiles using ArcObjects and C# after removing the associated layer from the map. I notice that using the straight UI in ...
1 vote
1 answer
657 views

ArcObjects event when ArcMap table of contents selection is changed [duplicate]

I have been trying to figure this out for almost a full working day and I just can't get it working. All I want to do is fire an event when the user clicks different layers in the ArcMap table of ...
1 vote
1 answer
330 views

ArcObject 10.1 Java : Raster Analysis [closed]

I have been working with ArcObjects Java for a short time and have not been able to find a solution to the following problems: How to get the Raster object from a IRaster reference? IRaster raster = ...
6 votes
3 answers
6k views

Publishing map service to ArcGIS Server using ArcObjects

I am using ArcGIS Server 10.1. I am migrating some ArcObjects C# code to 10.1 and am having some trouble programatically publishing an MSD. We are using a multi-site configuration (not sure if that ...
3 votes
2 answers
5k views

Unable to load DLL 'ArcGISVersion.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

I recently migrated my desktop from ArcGIS 10.1 to 10.3.1 and visual studio from 2010 to 2013. I am now getting a problem trying to run an Engine application. It builds fine but when I try to debug it ...
3 votes
2 answers
354 views

Programatically transfer attributes from line to selected points: : Attribute transfer tool

Spatial Adjustment>Attribute Transfer Tool in ArcMap transfers attributes between mapped source and target layers by mouse clicks. The disadvantage is you can do one point/line at a time. My problem ...
0 votes
0 answers
14 views

Hitting REST Feature services via console app (C#)

I have a console app that currently leverages arcObjects through a desktop license. We are going to need it to transport data to and from a traditional versioned gdb to and from feature services along ...
0 votes
0 answers
33 views

Drop and re-calculate vertices M values for a polyline using ArcObjects

I am trying to implement this logic for my C# project that it will remove the M values of all the vertices on a polyline, and then re-calibrate them. There is another post out here asking a similar ...
1 vote
0 answers
35 views

Getting colour of raster for specific value based on its symbology using ArcObjects

For the software I'm working on I'm trying to get the colour that a raster would be using to display any given value based on the symbology set up for it. I've been more or less able to work this out ...

1
2 3 4 5
50