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

learn more… | top users | synonyms

3
votes
0answers
253 views

What is the correct way to handle assembly resolution in .NET ArcGIS add-ins?

This has been a thorn in my side for some time now -- in .NET ArcGIS add-ins, assembly dependencies packaged with the add-in are often not resolved correctly. I am still not sure why and under which ...
4
votes
2answers
997 views

Split a Polyline into small segments

I am writing an addin, which needs to split a polyline into a number of segments taking the number of segments as an input from user. How can I accomplish this?
2
votes
1answer
796 views

ArcObjects 10.1 .NET Convert Point from WGS1984 to OSGB1936

Please can someone help me convert a point in WGS1984 to OSGB1936, I have followed all the documentation (or so i think...) and yet have not made any headway into this problem. This is my code : Type ...
2
votes
1answer
140 views

IGeometryBridge.GetPoints throws NotImplementedException. Am I doing something wrong?

I am working on some .NET code that processes lots of polygon geometries at the vertex level. In order to reduce COM interop overhead, I want to call IGeometryBridge2.GetPoints once instead of calling ...
4
votes
2answers
3k views

How do I change the targeted .NET 4.0 Framework to version 3.5 in an existing VS 2010 EXPRESS project?

I am upgrading from ArcGIS desktop 10.0 to 10.1 and I have a bunch of addins developed in VS 2008 Express using ArcObjects 10.0. I would like to upgrade everything to 10.1 using VS 2010 Express. I ...
5
votes
1answer
438 views

Can you use ArcObjects in an MVC service at v10.1

I'm slighlty confused with the changes at 10.1 and understand this version no longer supports DCOM or remote arcobjects. Can you use ArcObjects in a webservice (in my case a .NET MVC 4 service) that ...
6
votes
3answers
1k views

How can you find ArcGIS version programatically?

Is there a way using ArcObjects.net to find out what version of ArcGIS is installed on a machine (i.e. 9.3., 10.0, 10.1)?
2
votes
1answer
107 views

Are there any open source distribution raster merging functions within JTS or GeoTools

I'm looking for something similar to the combine function from the ISelectionSet interface from ArcObject's SDK 10 .NET framework on a more scaled down level. Ergo, I don't plan on using that ...
5
votes
0answers
106 views

Is IGraphicTracker leaking memory?

It seems that when geometries are removed from an IGraphicTracker instance, the geometries remain in memory until IAoInitialize.Shutdown() is called. I have tried removing the geometries by calling ...
2
votes
1answer
260 views

How to create multiple dockable windows?

I am building an add-in and I have several different windows, which I open with the code below. This works fine. However, how can I create the same window n times? UID dockWinID = new UIDClass(); ...
6
votes
1answer
287 views

How to detect a GDAL/OGR 'Warning'?

When I run a batch script using a GDAL/OGR program, I can detect if an error occured by checking ERRORLEVEL for the value 1. When using GDAL/OGR in python or .NET, I get an exception when an error ...
1
vote
1answer
62 views

Store global reference to a service/object

In developing with ArcMap, is there any way to register a service that can be used during the life-cycle of a document- for example to do something like: C# .NET ...
2
votes
1answer
124 views

How to make Plugin-DataSource Layers Editable in ArcMap(Arcobjects)

The .Net samples of the developer kit for ArcGis contains an example, that shows how a custom data source(Plugin Data Source) can be added as a layer in ArcMap. It is done by implementing interfaces ...
1
vote
1answer
166 views

What is a good learning source for programmer who wants to understand the infrastrucre of map based web map?

I want to to write a simple web app with a map (tile cache because of hi res raster) that once a user click the map he can do some queries on it (as in search in polygon , radius , nearest ) on the ...
4
votes
1answer
463 views

Using log4net in ArcMap addin solution

I would like to use log4net as the logging framework for my addin. However, now I'm having trouble in enabling logging in debug mode and in the released esriAddin file. It works in either one, not ...
1
vote
2answers
834 views

Looking for .Net alternative to Mapxtreme

I'm pretty new to the GIS area. I was involved in a project that used MapXtreme server and MapXtreme SDK to query the tabs (as in SearchNearest , SearchInRadius etc...) I'm looking for an open source ...
4
votes
1answer
60 views

Why would running LocateFeautresAlongRoutes GP tool return null?

I'm currently using the LocateFeaturesAlongRoutes tool wrapper for C#/.NET for a custom tool I'm developing for ArcMap 9.3.1. I've been able to run this tool in ArcMap outside of code in a tool with ...
2
votes
1answer
408 views

Get Type of Arcobjects objects

Trying to check the type of some Elements if they are (ITextElement , MarkerElement), when i try .getType() function it returns always "System._COM_object". How i could get the type of an object if i ...
0
votes
1answer
124 views

Problem with deploying addin

I have made a Button addin for ArcMap in Visual Studia 2010, but I don't know how to deploy it, I tried debugging it from ArcMap but nothing happens, Any help Please.. Thanks in advance....
4
votes
1answer
296 views

How to handle events with ArcMap automation?

We have a bunch of forms written in C# as ArcMap commands, which are running happily in the normal way from command buttons. The forms interact with the map by creating layers and symbologies, and by ...
4
votes
2answers
123 views

How to do raster conditional comparisons in .NET?

I am comparing a raster with a constant value by raster calculator. Now I want to do this in a c# code. Question Is there any process to do this kind of raster conditional comparison in .net?
1
vote
1answer
272 views

How to programmatically create ArcGIS Image Service and add it to map using C# / .NET?

How can I programmatically create ArcGIS Image Service and add that service to my MXD file programmatically? I am using C# .Net.
8
votes
3answers
1k views

Do any open-source .Net libraries (commercially usable) exist for reading/writing LiDAR data?

I have a few LiDAR point data (.las files) with me. I would like to read the X,Y and Z from it using .Net. I found liblas, which is in C++ and I am not sure if it can be used commercially after ...
2
votes
1answer
125 views

Use GeoTIFF masks to optimise combine layers algorithm

My app is a C# program that takes in an extent from the user, then loads GeoTIFFs from a folder that overlap the extent. It layers them according to a simple number on each GeoTIFF, then exports the ...
4
votes
2answers
872 views

How do I publish a custom .NET GP Tool as a GP Service on ArcGIS Server 10.1?

I have a GP Tool that I am able to publish as a GP service at 10.0. I recompiled the DLL for 10.1 and have followed the steps in the Deploying custom .NET and C++ tools page of the 10.1 help doc. ...
1
vote
0answers
103 views

Need to create custom map based the spatial Database

I need to create a custom map in .net 2008 c# webapplication based the spatial database(sqlserver 2008) without using any third party tools For example in sqlserver 2008 i am create a map using this ...
4
votes
0answers
244 views

Exporting a Featureclass to Shapefile with field names changed.

I have some annotation feature classes stored in a Pgdb.I want to export them to a shape file.Some field name need too be changed in that shape file.I am using vb .net to do this.Any help is ...
2
votes
1answer
296 views

Extracting all field names of a featureclass using query filter programmatically

I want to get all field names present in a feature class using queryfilter programmatically.
5
votes
3answers
5k 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 ...
3
votes
2answers
671 views

Is it possible to deploy on a ArcGIS 9.3.1 machine a component created with ArcGIS 10?

We are developping a C# ArcObjects Class extension assembly. Our development machine was recently updgraded to ArcGIS 10, but when we try to install the assembly on a 9.3.1 machine, we get an R0000 ...
1
vote
0answers
327 views

Error installing/uninstalling GeoMedia WebMap Professional_6 on Windows 7 (64 bit)

On installing GeoMedia WebMap Professional_06.01.03.08 on Windows 7 Professional 64 bit. Following Error window pop up at the end of installation process or If I uninstall it. I have .Net Framework ...
1
vote
1answer
235 views

How to print semi-transparent elements?

I highlight some features with a semi transparent color via an ILayerExtensionDraw. When I print the ActiveView of the PageLayoutControl with IPrintAndExport the highlightning is not on the printout. ...
1
vote
2answers
475 views

TF.Net versus the NetTopologySuite

In a recent post, a responder made reference to the Topology Framework .Net. I'd never heard of it before, having gently used the NetTopolgySuite (and DotSpatial) before with satisfactory results. ...
13
votes
1answer
1k views

How to get selected Features/Geometry from Windows Clipboard in ArcMap/C#?

I have a custom tool in ArcMap 10. The Workflow is the following: Select Features in a Layer with the "Select Features by Rectangle" tool Copy the Features to the Clipboard using STRG+c Select the ...
9
votes
0answers
375 views

File Geodatabase API .NET Wrapper: How to determine if Table/Feature Class Is Locked?

I have been using the file gdb api .NET wrapper, and it has suited my needs quite nicely (vs using ArcObjects). One of the things I have yet to figure out if there is a proper way to determine if a ...
1
vote
1answer
2k views

Writing In-memory IFeatureLayer to Shapefile using ArcObjects (Engine SDK)

I've been working on this for a little while now, and can not seem to get this thing working. I've managed to export a geodatabase feature class and shapefile to a shapefile, but what I'm struggling ...
1
vote
0answers
230 views

Looking for .NET Heat Map API / SDK

I have a requirement to add a 'heat map' style layer to a Javascript/jQuery based application that I am working on. So far, I have used heatmap.js with no problems at all. My only concern with this ...
4
votes
3answers
374 views

How to use ITrackCancel to escape IRubberBand track?

I have a BaseTool for AX_MapControl and AX_PageLayoutControl that allows to draw a polyline via IRubberBand. But once the rubberband is started, you can't cancel it e.g. by hitting escape. I found ...
2
votes
2answers
2k views

How to perform transformations using ProjNet?

While writing some unit tests I thought it would be convenient/possible to use ProjNet to convert from EPSG:4326 into several other coordinate systems (3875,3395). I figured it would be as easy as ...
3
votes
0answers
63 views

Is there an easy common gis abstraction available in .Net

Is there an easy common gis abstraction available in the .Net programming world that cuts the dependency to a concrete gis implementation, e.g. to the esri silverlight/wpf sdk. ... for example ...
0
votes
0answers
129 views

Do any geodatabase schema and data migration libraries for .NET exist?

I'm performing code refactoring and database normalization in my project and looking for any .NET library for geodatabase schema and data migrations. Does any solution exist for ArcObjects? During ...
5
votes
1answer
2k views

How can I update an MXD file programatically?

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
0answers
64 views

Viewing Tables in the AxTOControl using ArcObjects

SE, I was wondering if anyone out there has written a Table filter for the AxTOCControl in the ArcObjets Library. I've rolled my own Table view for now in C#, but would like to try and keep things ...
3
votes
1answer
916 views

IFeature.set_Shape The coordinates or measures are out of bounds

I'm trying to add a point to my map, but something with the way I used shp2sde create caused me to have a incorrect spatial extent or something. So I'm getting "out of bounds" error. How do I go ...
2
votes
1answer
972 views

ArcObjects: Setting image of a command button to a partially transparent bitmap

In an ArcMap 10 add-in, I am attempting to create a toggle button of sorts whose image changes based on the button's state. This answer describes how to set an add-in button's image programmatically ...
2
votes
1answer
410 views

Shapes of this entity type not allowed in this layer when CreateFeature() is called

I have the following code that calls on a remote geodatabase server. Everything is connected and working, but when I try to add a point and use featureclass.CreateFeature();, it shuts down. At first ...
1
vote
1answer
353 views

IMapServerObjects.get_Map says object is null reference.

So I am trying to access a map layer, which I can connect to. try { agsconn.Connect(); Log.Write("Connected.", "myclass"); ...
8
votes
3answers
3k views

ArcObjects (ArcGIS for Desktop and C#): How to cast between the ArcMap COM UI and my custom .Net UserControl objects?

I'm creating a utility to run in ArcGIS for Desktop using ArcObjects (9.3.1 SDK) and C#.Net. My prototype involves a toolbar with two comboboxes and a tool. The first combo selects a layer in the TOC, ...
1
vote
2answers
2k views

Georeferencing an image in C# with GDAL

I want to upload a jpeg or some raster image into a C# form and then on entering the latitude and longitudes I need to be able to create an GEOTIFF file of the same image. How can this be done in ...
8
votes
2answers
896 views

C# version for ArcObjects 9.3

Can I use C# 4.0 with the target framework set to .NET 3.5 to develop an extension for ArcMap 9.3? Or does it have to be C# 3.0 or earlier?