Tagged Questions
13
votes
1answer
659 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 ...
10
votes
2answers
595 views
ArcGIS 10 add-in: Top-level exception handling
The ArcGIS 10 add-in I'm working on is pretty simple -- just a tool control and a dockable window. I'm handling the specific exceptions I anticipate occuring at the source and throwing everything ...
8
votes
2answers
706 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?
8
votes
2answers
955 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 ...
7
votes
3answers
2k 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, ...
5
votes
2answers
725 views
How can I write a GEOTIFF in C#?
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 ...
5
votes
1answer
2k views
.NET Entity Framework with PostGIS?
Is it possible to use the .NET Entity Framework with PostGIS?
I've reviewed a few options, including hookup it up with Npgsql using ...
4
votes
3answers
2k views
Visual Studio 2010 templates for ArcGIS missing
It seems that I do not have ArcGIS templates in VS 2010 templates folder -
\Program Files (x86)\Microsoft Visual Studio
10.0\Common7\IDE\ProjectTemplates\CSharp\
and as a result ArcGIS ...
4
votes
1answer
229 views
Directory.GetFiles vs. ListDatasets - Which is the tool for the job?
I'm currently writing an arcobjects app that performs an arbitrary set of geoprocessing tasks on a group of shapefiles and/or dbf tables. My current implementation uses Directory.GetFiles to build an ...
4
votes
1answer
118 views
How to set focus on ArcMap map window using arcobjects and c#.net
I have developed a custom dockable window with textboxes, comboboxes and a button for use in ArcMap. After the user clicks on the button in the dockable window a function is invoked. After the ...
4
votes
1answer
290 views
How to use ICalculator with a pre-expression in C#
Another wonderful predicament. I am trying to use an instance of ICalculator to update a field based on another field. Textbook stuff. Unfortunately, the example in the SDK for C# is a bit lacking.
...
4
votes
1answer
192 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 ...
4
votes
2answers
772 views
How to unproject WKT to WKT in .NET?
I have WKT in this format:
GEOMETRYCOLLECTION(POLYGON((491990.250718 6212873.59755,491492.160493 6212904.94117,491265.64715 6212790.54445,491319.517251 6212550.36334,491579.624164 ...
4
votes
0answers
354 views
ArcGIS - find layer ID and name from a Identify query
I need to retrieve the layer ID of every layer returned by the IQueryFunctionality.Identify function (I am using ADF with .NET)
Identify function spits out a DataTable array for layers which have ...
3
votes
2answers
228 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?