A framework, developed by Microsoft, that compiles any of several COM-based programming languages into machine-executable language.

learn more… | top users | synonyms

0
votes
0answers
13 views

ArcGIS Runtime SDK for .NET (Windows Phone) - ArcGISLocalTiledLayer Issue

I'm developing Windows Phone 8.1 client for our company ArcGIS maps. Online layers works fine, but I need to deliver offline maps (Map Tile Package - .tpk file) to users with bad connectivity. My ...
2
votes
0answers
23 views

Setting Field in ArcMap Symbology Properties using ArcObjects?

I am programmatically rendering a feature layer in ArcMap but I can't set the Field property in the Symbology properties form. This results in the layer having the correct render/breaks/legend ...
2
votes
1answer
39 views

convert ordnance survey easting and northing data to WGS84 latitude longitude values

The C# code published here is not very accurate as also mentioned by tanoshimi. I think this has to do with the lack of 'approximate Helmurt transformation'. Just curious is anyone aware of some ...
7
votes
1answer
111 views

Adding new map to current project using ArcGIS Pro .NET SDK?

The new ArcGIS Pro SDK for .NET is currently in beta for ArcGIS Pro 1.1, and I'm having trouble with map/project objects. I can add layers to an existing map, but I can't seem to figure out how to ...
0
votes
0answers
9 views

Image in ToolPalette using ArcObjects

I want to set image in ToolPalette of config.esriaddinx. How it can be possible? My code is here : <Tool id="ESRI_SelectionSample_SelectByLineTool" class="SelectByLineTool" caption="Junction" ...
0
votes
1answer
28 views

Creating Button Menu in ArcMap AddIn using ArcObjects?

What is the code to use in config.esriaddinx in order to make a Button-Menu (like that illustrated below) when using ArcObjects?
1
vote
1answer
33 views

Show Image in Menu on ArcMap

I want to show an image in a menu in an ArcMap AddIn toolbar. Here is my code in the config.esriaddinx: <Menus> <Menu id="GridViewMenu" caption="Grid View" ...
1
vote
0answers
22 views

Converting Map Files to KML Overlay

Had a quick look around and didn't quite see what I've been looking for. I've got a .Net Web Application that is going to accept different map files and I want to convert everything over to KML so ...
1
vote
1answer
33 views

View Image instead of label in Menu on arcmap addin toolbar

I want to set image on menu in arcamap addin toolbar. is there any way to set image ? I have tried but this is not working.. My code is here in config.esriaddinx: --Menus> Menu ...
1
vote
1answer
30 views

.net arcobjects retrieve user value from layer data source

I have a need to get the user value from a layer properties. The value is from: Layer Properties -> Source -> user in Data Source (sorry not enough score to attach the picture). I tried to check ...
1
vote
0answers
32 views

Substract 2 rasters with Raster Calculator in ArcObjects (VB.NET)

I'm having a hard time substracting 2 raster with ArcObjects sdk 10.1. I keep getting a nullreference exception at the gp.execute() method, but I can't figure out where the problem is, I recall ...
0
votes
0answers
26 views

How to get metadata about Esri Geodatabase Replica synchronization

I'm using ArcObjects for .NET to create an one-way replica from my geodata-service (master) to an ArcSDE geodatabase (slave). During synchronization I do need metadata about the incoming changes to ...
0
votes
0answers
27 views

draw coloured LINESTRING over map [.NET (C#) if possible]

I need to render linestring on the map (possibly OSM map) where each pixel (or at least segment) has assigned custom color. In my linestring, each point defining the line has also color definition. ...
0
votes
0answers
54 views

Create Envelope based on center point

I see in the Java SDK : https://developers.arcgis.com/java/api-reference/com/esri/core/geometry/Envelope.html they have : Envelope(Point center, double width, double height) Creates an envelope by ...
1
vote
2answers
106 views

Since upgrading to ArcGIS 10, my application doesn't rescale the map when the window is resized

I am upgrading a .NET application from ArcGIS 9.3 to ArcGIS 10.3. I've noticed that the map control behaves differently: the map no longer automatically rescales itself when the window is resized. To ...
3
votes
1answer
50 views

How do I call ogr2ogr from a C# application?

I have an ogr2ogr (GDAL) command that I run to export points from a database to an XML file. ogr2ogr-f GPX c:\temp\points.gpx PG:"host=localhost port=5432 dbname=SpatialPlayground schemas=public ...
0
votes
0answers
38 views

How to get changed spatial reference of any layer in ArcMap using ArcObjects?

I have several layers in arcmap. I can access these layer's spatial references too. But if user changed one of spatial reference properties(eg. name, central_meridian etc.)of any layer, then how can I ...
1
vote
1answer
38 views

How to know spatial references of two layers are same?

I have two layers . Now I want to say that the spatial references of these layers are same or not .. I am using .Net technologies in arcmap. I have successfully got spatial reference information ...
0
votes
1answer
71 views

How to add graphics to map at lowest level?

I am able to create graphics and add them to the map, but they are getting added as the top-most layer. The labels (if active) of another layer get hidden due to this. I want to know how to add ...
1
vote
2answers
121 views

How to identify, spatial references of two layers are same?

I have two layers. Polygon layer Polyline layer Now I want to check if spatial references of these two layers are same. How can I achieve this ?? In spatial reference there are many property ...
2
votes
0answers
56 views

Understanding lifecycle of .NET geoprocessing tools on ArcGIS for Server?

I've done a number of .NET geoprocessing tools for ArcGIS 10.1 that get published as geoprocessing services on ArcGIS Server. Lately we've seen behavior that makes me question something I thought I ...
0
votes
0answers
38 views

inherted .net extension not connecting to arcSDE in ArcMap10.2.2

I have a custom .net extension tool that is supposed to connect to a file geodatabase or SDE (SQL Server). The SDE connection fails to recognize it as valid. The file geodatabase connection works just ...
1
vote
1answer
70 views

How to change data source of table using arcobjects

Cross post from: https://geonet.esri.com/thread/125010 Does anyone know how to change the data source of a table using arcobjects? I know it can be done with arcpy, but I'm using C#. I've managed to ...
2
votes
2answers
108 views

ArcObjects: ExportOperationClass causing error and not exporting

I'm trying to export each row in a shapefile, but I get an error I haven't seen before (see below). I feel like it might be the labyrinth of interfaces that I have to cast between that may be causing ...
0
votes
2answers
92 views

ArcMap keeps crashing whilst using simple C# .NET addin

I honestly have no clue what is causing this. I want to have a message appear that tells me which layers are selected or not. Here is my code: using System; using System.Collections.Generic; using ...
0
votes
1answer
127 views

.net arcobjects draw polygon(rectangle) can not start at the preferred location

I am using the sample code (draw a polygon on the screen) provided by Esri but it seems I cannot start the drawing from a location I want, every time it starts at wherever the function(or tool) ...
2
votes
0answers
138 views

Create own map and use it in offline WPF Application

I need to create my parcel's map, I got high resolution photo from the sky and i want to georeference it and add few features like routes and buildings. Then I need to use it in WPF applicion where I ...
1
vote
1answer
43 views

Empty output with ArcGIS CopyFeatures

I am automating a process in .Net and calling the ArcGIS CopyFeatures geoprocessing tool multiple times. The source feature class is always in a file geodatabase and the result is always a new ...
0
votes
2answers
248 views

Convert labels to Annotation addin crashes ArcMap

I am trying to write an ArcMap (10.3) Add-In in C# .NET that will convert labels to annotation. I have used a majority of the code from the relevant snippet on the ESRI resources website. When I run ...
1
vote
2answers
661 views

What is ArcGIS Pro .NET SDK?

What is ArcGIS Pro .NET SDK ? Can I code with ArcObjects?
1
vote
1answer
93 views

What's the difference between ArcGIS .NET SDK and ArcObjects?

Here's the scenario: The goal is to create a standalone console application to process data. This processing is basically ETL operations and, in the end, the results end up in a feature class table. ...
1
vote
2answers
81 views

Releasing features from a recycling feature cursor

I have a recycling feature cursor that is used to fetch a single row. Is it my responsibility to release that returned feature, or will it be cleaned up by the cursor as it would be if I consumed the ...
1
vote
1answer
176 views

ToolStrip Button click event is not fired on first click

I have a dockable window in a custom ArcMap extension. The dockable window has a regular windows forms ToolStrip control in it with ToolStripButtons on the ToolStrip. When the parent dockable window ...
2
votes
1answer
115 views

How to set the extent of a rotated data frame from a rotated rectangle using ArcObjects?

I use ArcObjects to produce a map document. I have a rotated rectangle that I want to be the exact extent of my data frame. So, I want to rotate the data frame with the same orientation than the ...
1
vote
0answers
71 views

What is the source of a “TabletPC inking error code. RtpEnabled called multiple times” error from within ArcMap?arcm

I am attempting to remotely troubleshoot an issue with an ArcMap AddIn (.NET 4) that I wrote where the users (only a couple of them) are receiving this error: TabletPC inking error code. RtpEnabled ...
3
votes
2answers
90 views

Map widget in .NET application

I would like to have map widget in .NET application. I need basic functions (zoom, move map) and possibility to display WMS. Thats all. Is there any library that you recommend for that? I am ...
1
vote
1answer
145 views

error 0x80040239 : Using the intersect method of ItopologicalOperator

I would like to intersect a polygon and a polyline to know if the polyline is in the polygon. The code work but when i do it on more than 100 000 times in a for, there is this error : ...
1
vote
0answers
19 views

Combine group of maps to add/edit features in .NET

Use Case: I have 100s of square/rectangle shaped maps which I want to edit/add features like Dam, Ponds etc. either one map at a time (or 8 maps on each side & corner, if possible). The task is to ...
0
votes
1answer
56 views

ArcGIS / .Net - Load pyramids in thread

I need to display a large raster with ArcGIS. To do so, I'm using pyramids, and it is working, but they can be long to build. So I would like to build the pyramids in a separate thread. When doing so, ...
0
votes
0answers
7 views

Filter pointcollection in geocoords set

i'm working with .Net v3.5 and ArcGis 9 and i must say i'm pretty newbie with this. I have an application with different layers, one of them is used to draw the world using WGS84 coords, what i'm ...
2
votes
1answer
55 views

Console application in .NET incorporating QGIS tools

I am working on a project where I want to build a standalone application in .NET using QGIS tools. Is there any option like the ArcObjects SDK for .NET? Please help me on this.
2
votes
2answers
98 views

How to fill gaps in a multipart polyline

I want a function that can fill small gaps between parts of a multipart polyline. The polylines represent events on roads and are linear, not branched. The parts may be separated by small or large ...
4
votes
0answers
229 views

ArcObjects .NET - How to close/release FeatureClass, Workspace, Factory

I have a long-running process. I want to prevent resource leaks or rogue database connections. At intervals during the process I want to do this: get an ArcSDE (Oracle) workspace factory open a ...
1
vote
0answers
75 views

Common custom toolbar for several different arcgis desktop addins using C#

Suppose, I have two arcgis desktop add ins C1Addin and C2Addin developed in c# with the following components: C1Addin: Button_1 C2Addin: Button_2 When the 1st addin which may be any of the two ...
1
vote
0answers
131 views

The underlying connection was closed: The connection was closed unexpectedly. AOInitiliaze

I create a WCF Service. When I try to Initialize ArcGIS License with AOInitialize I get error: The underlying connection was closed: The connection was closed unexpectedly. public void ...
1
vote
0answers
135 views

ArcGIS SDK for .Net (used in WPF): update map's zoom parameters after changing base layer

I'm having the following issue: Suppose I have a Map object and 2 base layers (a world map and a street map). A world map doesn't let us view the map too closely. The street map allows us to view as ...
1
vote
1answer
958 views

ArcMap “Could not open the specified file”

Has anyone ever encountered this message? I am getting this when I try to open certain shapefiles. I am working on a problem that generates shapefiles from spreadsheets using ThinkGeo's .NET tools. ...
2
votes
1answer
106 views

Can Python toolboxes be used with ArcObjects GeoProcess.AddToolbox?

Can Python toolboxes be used with ArcObjects GeoProcess.AddToolbox? I'm trying to execute a tool in a Python toolbox (.pyt) from .NET. First I call: GP.AddToolbox(@"C:\path\to\MyToolbox.pyt") ...
0
votes
0answers
48 views

Releasing FeatureLayer COM object

I am going through some code and trying to implement correct COM object releasing because currently in an error situation we cannot remove some generated files as the databases are kept locked. I ...
2
votes
2answers
2k views

Convert Feet to Decimal Degrees

I need to convert a bunch of coordinates that were stored in Feet to Decimal Degrees. I found a Function in VB.Net, though it's results are not coming back correctly. When I input 3106972, 1417936 ...