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
0 votes
1 answer
457 views

Solving run-time error in Thiessen polygons command line

I call Procedure 2 from a loop that is within Procedure 1 (see below). The program stacks in the line that creates Thiessen polygons i.e. GP.CreateThiessenPolygons_analysis.... That line is ...
1 vote
1 answer
197 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
205 views

Making new folder using ArcObjects [closed]

Does anybody know how to create a new folder with ArcObjects? This is what I want to do: insert a text in a TextBox and, when I run the aplication, it will create a folder with the name wroten in the ...
0 votes
1 answer
14 views

SOE file not built

I have quite a few C# projects, REST SOEs based on ArcObjects (.NET 4.5) or ArcGIS Pro (.NET 6.0). Visual Studio (2019) shows no errors, and warnings appear in the ArcGIS Pro projects only. Everything ...
0 votes
1 answer
2k views

Querying WMS GetFeatureInfo with known latitude and longitude [closed]

My issue is that normally, when you want to query a WMS layer, you need to pass width & height of a map, and x,y (in pixels) which describe a point on the map where user clicked. I want to do this ...
1 vote
1 answer
567 views

GDB conversion to MongoDB [closed]

I'm interested in converting a GeoDatabase to a MongoDB database. more specifically, given I have a GeoDatabase (.gdb files), how do I convert these files to fit into a MongoDB Database (.bson files). ...
1 vote
1 answer
415 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 ...
1 vote
1 answer
612 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. ...
6 votes
3 answers
3k views

Drawing graphics onscreen using Draw/Refresh/PartialRefresh methods and ArcObjects

I find myself woefully lacking in understanding of when, why, and how (which type) to do screen draw/refresh/partial refresh. For instance, in a standalone Python script outside the application ...
1 vote
2 answers
4k views

VBA to VB.NET (Visual Studio 10) Migration for ArcMap

I will be migrating several VBA applications currently in ArcMap 9.3.1 to Visual Studio 10 in the near future, and wanted some feedback on the general migration steps listed below. I wanted to make ...
1 vote
0 answers
768 views

Getting size of formatted text part only of TextElement whose text contains formatting tags using ArcObjects [closed]

I'm working in ArcGIS 10.0 and Python 2.6.5. I have a string, say 'mMx', that I want to enter into a TextElement (in the data view). The lowercase letters are to be substituted with a graphical ...
0 votes
1 answer
377 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
287 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
179 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
217 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
233 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 ...
1 vote
1 answer
135 views

Persisting ArcObjects workspace

In a custom layer I have a workspace variable (File GDB or SDE) that I need to persist (save/load). Therefore, I need to persist the ConnectionProperties of the workspace. ConnectionProperties returns ...
1 vote
3 answers
916 views

CreateFeatureClass failure in vb.net

I'm using ArcGIS 9.3.1 and trying to get the code to create a new feature class in an existing personal geodatabase to work but I am having no luck. When running in debug mode from within vb.net it ...
2 votes
1 answer
530 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 ...
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
46 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
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 ...
0 votes
1 answer
25 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
432 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
816 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
400 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
843 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
385 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 ...
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
770 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
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....
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
0 answers
772 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
222 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
70 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
482 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
296 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
2 3 4 5
50