Stack Exchange Network

Stack Exchange network consists of 175 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.

3
votes
1answer
155 views

Can't save persisted IGeometry object into an ObjectStream

I was able to store a serialized IGeometry object into an string field in a datatable from a File Geodatabase. For performance issues and since the object implements IPersistStream, I want to save ...
2
votes
1answer
174 views

Using Python comtypes and ArcObjects to change dataframe background color in ArcMap?

I'm simply trying to programmatically change the background colour of a Dataframe in ArcMap. I followed the beginning of this solution to access ArcObjects in Python: import arcpy import os from ...
1
vote
0answers
25 views

Saving user-imported shapefile to geodatabase

Is there any API or service out there that can do this? We have a SQL Server managed geodatabase (ArcSDE). It would be ideal to be able to create a web application where someone can upload a ...
2
votes
0answers
114 views

Debugging ArcObjects SDK 10.3 addins with ArcMap 10.4

I recently upgraded my version of ArcMap from 10.3 to 10.4.1, including all extensions, patches, etc. I did not remove the 10.3 ArcObjects SDK, as I wanted to continue to develop 10.3 compatible ...
1
vote
0answers
14 views

Map Tool Compatibility in IE & Chrome

I have a customized tool developed and running on ArcGIS server 10.0. using Web ADF The tool is used to draw a rectangle on map and mark selection to the selected area in a Graphics layer. This tool ...
1
vote
0answers
55 views

ArcObject C++ Quick Start Guide Loop layer in FileGDB [closed]

Could anyone guide on how to create console app (c++) that use ArcObjects? I've searched Google a lot on this topic but can't find any tutorial on how to do this. You may wonder why would I use C++ ...
2
votes
1answer
57 views

Can you do simple geoprocessing in .NET framework? (not mapping applications, not desktop add-ins)

So I will be creating a web application in .NET. It's a data entry application where someone will be inputting a bunch of a stuff from a datasheet and we'll suck it into some database tables that are ...
0
votes
1answer
140 views

ArcGIS Point every 100 meters along poline

ArcObjects with ArcGis 10.1 I have constructed a polyline in WGS84 that has straight segments and curved segments. The line is heavily geodesically densified. Now I have to step through every 100 ...
1
vote
1answer
131 views

What is the fastest way to iterate features for geometry operations?

There was an old GIS soft "ArcView" ; scripts in avenu language which worked much faster than my Add-ins now (made in Visual Studio in С#). So I would like understand what did I do wrong? Why is the ...
1
vote
2answers
187 views

Foreach doesn't work on features

I'm trying to do something with every feature in featureclass using "foreach" : ILayer layer = map.Layer[0]; IFeatureClass fclayer = (layer as IFeatureLayer2).FeatureClass; foreach (IFeature ...
3
votes
1answer
38 views

Can't iterate feature in while nested iteration

I need to do some operation with every combinations of features in two FeatureClasses. The "for" iterating operator is very very slow-working, so I decided to try "while" operator and using ...
1
vote
0answers
105 views

ArcObjects queries using selection set

I'm new to ArcObjects and I'm finding it difficult to work with the ArcObjects 'Feature classes'. Coming to my problem, I have a Map with few layers. I have coded for the layer names to display in the ...
1
vote
1answer
126 views

Passing data/parameter to Dockable Window in ArcObjects?

I have a Dockable Window and that dockable window consists of a dataGrid. In order to populate that data grid I want to pass a datatable and some more parameters. Here is what I did: private void ...
0
votes
1answer
78 views

Finding how many features inside drawn Polygon using ArcObjects?

I have drawn a polygon. Using SpatialFilter I found and processed all the features in it. But I wanted to get the feature count before working with the features. Is there any method that I can use ...
1
vote
1answer
46 views

Disabling Start Editing command using ArcObjects?

How do I disable the Start Editing button in ArcMap when an added ArcSDE database version is the default? IMxDocument pMxdoc = m_application.Document as IMxDocument; IMap pMap = pMxdoc.FocusMap; ...
3
votes
1answer
64 views

What is wrong with area?

Which unit in result of calculating the polygon's geometry programmatically using .Area property of IArea object? For example, there are 2 polygons. Let's calculate geometry manually (in some ...
0
votes
2answers
56 views

Issue on ArcGIS SOAP NAServer Namespace

I am trying to create a simple ArcGIS Server SOAP consumer by C# like below snippet but I am getting error on NAService_NAServeras illustrated in attached image. Can you please let me know which ...
1
vote
0answers
31 views

Selecting multi features on map based on Datagrid row/rows selection?

I was trying to select feature depending on the selection change of the datagrid. Each row of the datagrid consists of the feature OID and feature Name etc. While selecting I am seeing that more ...
0
votes
1answer
82 views

How to get the column header of attribute table

I have a simple vb.net code which gets all the layer names present in the ArcMap and displays it in a vb form combobox. My question is if I select a layer name that is present in my combobox it should ...
2
votes
1answer
39 views

ArcObjects error storing long integer value to Oracle

I am trying to save a long integer value to an Oracle field. I have created a field of long integer type using ArcCatalog in a standalone table. The below code breaks at row.set_Value(idx, val) . ...
0
votes
1answer
74 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 ...
0
votes
0answers
31 views

Why the program crashed when I develop function with ArcObjects using C#?

I want to develop program and extend the function for ArcMap, and I want to get some spatial information using ISpatialFilter interface. The program code is following : IPolygon buffer = m_feature....
0
votes
0answers
18 views

Detecting joins or layer references programmatically?

I am looking to clean out unneeded feature classes from a massively bloated and out-of-date Oracle geodatabase. To do this, it would be nice to narrow down the list of things that could be open for ...
0
votes
2answers
39 views

way to view this map

public void AddScalebar(IPageLayout pageLayout, IMap map) { if (pageLayout == null || map == null) { return; } IEnvelope envelope = new EnvelopeClass()...
1
vote
1answer
64 views

Reducing area of polygons using ArcObjects with C#?

I want to reduce the size of my selected polygons. In other words, I want to implement the "scale" program which is in the editor section of ArcGIS. For that purpose I have searched a lot and just ...
4
votes
1answer
278 views

ArcGIS and .Net compatibility (Extending ArcObjects)

Backstory Historically, when compiling a custom dll that extends ArcObjects you would compile on a PC with the lowest compatible version of ArcMap installed, for example 10.1. Then that custom ...
1
vote
0answers
74 views

Build network dataset using comtypes and arcpy [closed]

I am aware of the existence of this Build Network Dataset with python comtypes question. In fact, I used the same code. The error I am getting is different hence my posting of this new question. I am ...
1
vote
1answer
69 views

How to create a line by passing two points and save in feature class in arcobjects using vb.net

I want to create a line from two points in acrobjects. but i don't know how to save that line to a feature class public static ILine CreateSegment(IPoint pFrom, IPoint pTo) { ILine line = new ...
1
vote
0answers
32 views

Recognize Tiled Internet Layers

Is there a way to recognize a Tiled Internet Layer using arcobjects in .NET? I've tryed several ways but I always end up in a dead road... ILayerFile lyrf = new LayerFile(); lyrf.Open(@"G:\mypath.lyr"...
1
vote
0answers
24 views

Get M at a point [closed]

I am trying to transfer the Measure values from an old feature to a newer one. Frequently the measures on the new feature have just been reversed. I am using IMSegmentation3.GetPointsAtM to get the ...
1
vote
0answers
39 views

Closing AddIn in ArcGIS with Visual Studio 2013? [closed]

I was working in ArcGIS 10.2 with VBA but now I work with Visual Studio 2013 to create addins. I need to close all processes, I did this with the end statement in VBA but I don't find a command to ...
1
vote
1answer
74 views

How to programmatically set Selection-> Selection Options [Scale selection symbols when a reference scale is set] checkbox checked or unchecked

I have seen the unanswered Scale Selection Symbols with Reference Scale using ArcGIS Engine? at the time of posting this question, and my question is different as i need to set this "Scale selection ...
0
votes
1answer
88 views

Setting scale of Data Frame in layout using ArcObjects?

I'm building an application to automate the production of MXDs for printing. I can add the layers from the database just fine, and configure the page layout. Now I want to set a particular scale to ...
0
votes
0answers
167 views

ITopologicalOperator.Cut() unable to classify all parts of the polygon as left or right of the cutting line

I am trying to cut the polygon using vb.net on my arc-map extension (ArcGIS 9.3). I used ITopologicalOperator and its cut method as below- Dim topologicalOper As ITopologicalOperator topologicalOper =...
0
votes
0answers
213 views

DBMS table not found [ORA-04043: (Open Feature Class from Version)

I try to open feature class from default version using with ArcObjects. But it is showing DBMS Table not found error message. IWorkspace ws_default = VersionedArcSdeWorkspace("", txtInstance.Text, ...
3
votes
1answer
331 views

ArcObjects c# .Net Merge with Geoprocessing?

I'm trying to run the Merge tool using ArcObjects c# .Net. I'm fairly new to the skill but I have been able to run other tools such as Buffer and Points to Line. However, I have met my match with ...
0
votes
0answers
117 views

How to call an SOE from ArcObjects?

I have a map service with an SOE. The SOE works fine and I can call it through http no problem. I would like to call it from an ArcObjects tool but My code errors when trying to cast the MapServer ...
0
votes
1answer
51 views

ArcObjects Java - Add-ins crashing ArcMap when starting editor

I'm having a strange problem in my company. I've created several add-ins for ArcMap using ArcObjects for Java, and all of them do what they are supposed to. The problem I'm facing occurs after going ...
0
votes
1answer
88 views

ArcObjects - Listen to Editor events in Extension Add-In using Java

I'm struggling at finding a way to listen to Editor events in my extension add-in. What am I trying to do is: after user creates a new point feature, extension should populate an attribute of it with ...
0
votes
0answers
65 views

Create sequence numbers based on location of line features using Arcobjects

I want to add a Sequence number property for line features (Pipe), which will hold a value that will determine where the line is in respect to other lines that are attached to the from point and to ...
1
vote
1answer
225 views

Getting catalog path from IFeatureClass using ArcObjects?

VB.NET against ArcGIS 10.1 I have a function which searches a geodb for a feature class name. If found I would like to display where it was found. Currently I only return the FeatureClass object like ...
1
vote
0answers
98 views

How can I access custom parameters for WMS layers via ArcObjects, and create a new layer file with the updated parameters?

I have a set of data in PostGIS related to a large number (7,000) of species, and have a single PostgreSQL view, and corresponding GeoServer layer, that contains data for all species. Based on input ...
1
vote
2answers
157 views

How to get the angle of a line?

I am new to ArcObjects, I need to identify the angle of the line in a particular Layer "MV Feeder" I am trying the below code, which gives error "object reference is not set to and instance of the ...
2
votes
1answer
56 views

Creating copy of featureclass using ArcObjects does not set measures?

I am making an exact (empty) copy of an existing featureclass using the following code: public static string createFCCopy(IFeatureClass pFromFC, IFeatureWorkspace pToFWS, string sNewFCName) { ...
5
votes
1answer
120 views

ArcObjects Convert GxDialog to Workspace

ArcGIS 10.1 with VB2010 I am using the GxDialog to get the users option to save a feature class. The target can be a shapefile, geodatabase, or Dataset inside a geodatabase. I can’t wrap my head ...
2
votes
0answers
58 views

Validating attributes of tables added in ArcMap?

I have validated the Telco Features based on the feature class name and their Type_Name. But I am not able to do same for tables like connection table etc. and others which mostly have different ...
0
votes
0answers
61 views

arcobject.net Addin Toolbar only works once

I created a toolbar using ArcObjects 10.0 which does some heavy processing in the onClick event of the only button it includes. It works fine however it works only once. If I click again on the button ...
2
votes
1answer
108 views

How to remove broken linked layers from ArcMap in ArcObjects?

In Python there is a function to list all broken data sources in a MapDocument: brknList = arcpy.mapping.ListBrokenDataSources(mxd) You could then use this function to remove such broken links: ...
1
vote
0answers
204 views

Highlighting Selection Of Features in Map using ArcObjects?

I have some features which at the time of validation found to having incorrect attributes' values. How do I highlight those features in the map? Here is what I tried: public void ...
1
vote
0answers
28 views

Getting a reference of an already running session of ArcMap with ArcObjects/C# [duplicate]

I'm new to both C# and ArcObjects and I want to get the layers on a currently opened document, which I've done via: IApplication app = ???; IMxDocument doc = (IMxDocument) app.Document; IEnumLayer ...