A framework, developed by Microsoft, that compiles any of several COM-based programming languages into machine-executable language.
13
votes
1answer
743 views
Calling arcpy/python from .NET?
Are there any available examples that show how python can be integrated into a .NET ArcGIS Addin or Extension? I have a series of python scripts that I would like to call from form events (e.g. button ...
13
votes
1answer
649 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
1k views
Issues with geoprocessing with .NET
There are some nice features in ArcToolbox we can use, but for some reason, this is NOT working properly. It doesn't even throw me an error.
My software is running inside ArcMap, so no need to ...
10
votes
6answers
3k views
ESRI ArcMap Add-in with app.settings not recognizing app.config changes
I have an ESRI Add-in developed for ArcMap which requires a configuration file. After spending a while trying to read config values from a single App.Config file (and always getting null) I believe ...
10
votes
2answers
568 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 ...
10
votes
4answers
345 views
Does SHAPE_Length take into account elevation values?
Does the Shape_Length attribute take into account the elevation? For instance, if I have 3 points: A, B, and C
A.X = 10
A.Y = 10
A.Z = 10
B.X = 10
B.Y = 10
B.Z = 50
C.X = 0
C.Y = 0
C.Z = 10
Then I ...
9
votes
8answers
3k views
How can I use SQL Server's spatial types from a .Net application?
For an upcoming project, one of the requirements is to store and use basic geogrpahic data as part of an existing SQL-Server/.Net application.
It seems obvious that we could use the SQL Spatial ...
9
votes
2answers
230 views
Custom implementation of ArcGIS function
I would like to find out what it takes to create a custom implementation of an ArcGIS function. In particular, I would like to implement GeoAnalyst.ISurfaceOp2.Visibility() in order to get it to run ...
9
votes
1answer
254 views
Any experiences or “gotchas” integrating Whitebox GAT (free and open) with the ArcMap UI?
I wrote a number of ArcGIS VBA automations in grad school; however, they're fully dependent on the ESRI SpatialAnalyst extension, which is not only closed-source but expensive to the point of ...
8
votes
2answers
701 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
6answers
5k views
Learning .NET for arcgis use (mainly desktop) - how to start?
I know that many of you guys don't like GIS analysts that turn (or act as part time) programmers and think that their codes are sloppy (which I guess that they are many times) but as everybody has to ...
8
votes
2answers
945 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
4answers
486 views
Newbie to GIS Development
Greetings everyone, I am new to GIS development and was wondering if there are tutorials available for development in ArcGIS 10. I have some experience writing simple scripts in python and fooling ...
7
votes
5answers
869 views
Are there any .Net opensource library for geometry operations?
Are there any opensource librarys for doing geometry operations (union, intersect, relation...) in .Net?
7
votes
4answers
2k views
Reading GeoTiff using .NET
Is there a managed library for reading the coordinates from a geotiff file in .NET ?
I know it can be done thru GDAL, but I am looking for a managed alternative.
7
votes
2answers
526 views
What are the implications of using .NET Generics to store ArcObjects?
I'm wondering what are the implications of using Generic types in .NET to store ArcObjects, such as ILayer, IField, etc.
The compiler throws me a warning when using these kind of values
public class ...
7
votes
1answer
1k views
ArcGIS 10 Add-In compile problem - Why are new edits to code igonred by ArcMap?
I've been compiling and debugging my Add-In (a toolbar with a few menus, custom commands, custom selection tool and a context shortcut menu) with no issues until suddenly the edits and changes I do in ...
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, ...
6
votes
3answers
170 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)?
6
votes
3answers
783 views
.NET library to convert KML to WKT?
Anyone know of a free OpenSource .NET library i could use to convert KML to WKT?
I know i can use openlayers and there are many JavaScript possibilities, but i need to do this on the back-end.
6
votes
3answers
1k views
Trying to find a .NET GeoJSON library
I'm trying to find a .NET GeoJSON library which I can use to export my SqlServer2008 spatial boundaries (in binary format -> eg. STAsBinary()) from my .NET code to my HTML frontend to display on a ...
6
votes
1answer
874 views
ArcObjects C#: Create Random Points fails with ERROR 999999: Error executing function
I am having trouble running some ArcObjects C# code that calls create random points. I would not be doing this in ArcObjects, but I am suffering with the same issue using Arcpy as seen here:
...
6
votes
2answers
627 views
How to read data from PostGIS in DotNet (VB.Net/C#)
I have stored my data in PostGIS (PostgrSQL). Now I want to read
the data in DotNet ArcEngine Application using VB.NET/C#.
Anyone know how to read the data from PostGIS in .Net?
Regards
6
votes
1answer
671 views
ArcMap Addin - add interoperability connection programatically
I'm currently building an add-in for ArcMap - ArcView using the .Net framework.
The user of ArcMap and the Add-in should access data published from WFS services.
I am aware that it is possible to ...
6
votes
0answers
180 views
File Geodatabase API .NET Wrapper - 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 ...
5
votes
2answers
704 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
118 views
How long should I hold onto (cache) references to IWorkspace, ITable, IFeatureClass?
After many months of programming with ArcObjects, I still feel somewhat unsure about two related issues:
For some operations, workspaces and datasets must be explicitly opened before they can be ...
5
votes
3answers
474 views
Looking for a .NET Dijkstra component using Shapefile
I'm totally new to stackexchange and i'm in this beautiful informative place for one problem.
I'm a .net programmer and i need to write a program that reads a shapefile and performs routing operation. ...
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 ...
5
votes
1answer
384 views
.NET And ArcGIS 10x - Where have all the wrappers gone?
With prior versions (to ArcGIS 10x) of ArcGIS, the .NET wrappers used to be placed in a dotnet directory. Where are they located with 10x? With prior versions, I used the absence or presence of this ...
5
votes
1answer
1k views
How can I programmatically display the “Create Features” dockable window in ArcMap 10?
When I start editing in ArcMap 10, by default the "Create Features" window is automatically opened and docked. Stopping the edit session hides this window.
When I use the IEditor:StartEditing method ...
5
votes
1answer
815 views
'invalid url' on ArcGIS server REST API
From time to time, the services on our ArcGIS server will not be available, and when requesting tiles, I will get a 'invalid url'. This is okay, sometimes it is scheduled downtime, maintenance or just ...
5
votes
1answer
150 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 ...
5
votes
1answer
154 views
File Browsing Dialog for Tables in Spatial Databases
I am looking for a file browsing object that allows a user to navigate into the different types of geodatabases. For example, the ability to navigate into a Spatialite/PostGIS/ESRI File ...
5
votes
2answers
303 views
Show loading icon with custom tool
I have a custom tool in vb.net for a web application, i'm using Asp.net, the class is in vb.net and the gis service is in Arcgis Server 9.3 sp1, the tool makes a selection of layers and takes a lot of ...
5
votes
2answers
1k views
How can I disable and enable an ArcGIS 10 Add-In button?
Is there a way to enable / disable Add-In buttons / tools?
5
votes
2answers
702 views
How do I deserialize GP Result Json?
The value part of a GP Result can be any type of GP object (or literal).
Does anyone know of a general way to deserialize this, preferably with either WCF or Json.NET?
I'd prefer not to have to ...
5
votes
1answer
1k 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 ...
5
votes
1answer
580 views
ArcGIS 10: AddIn Extension loading toolbox issue
I have an extension class in an ArcMap addin project of which loads a custom toolbox into ArcToolbox when the user opens ArcMap or opens a previously created map. My toolbox gets added to ArcToolbox ...
5
votes
0answers
92 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 ...
4
votes
3answers
654 views
Any .NET library to calculate polygon area?
Is there a .NET library to calculate area enclosed by polygon made up of geo coordinates (lat longs)?
4
votes
3answers
1k 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
3answers
328 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 ...
4
votes
3answers
690 views
Get part of polyline based on 2 points in Arc Engine
Currently I have a layer with polylines; in another layer, I allowed the user to create 2 points on the polyline.
I want to know if there is a function for the polyline feature that I can use to get ...
4
votes
3answers
197 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 ...
4
votes
1answer
223 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
104 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
285 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
484 views
Why is SymbologyControl missing symbols in XP?
I'm using the the code form SymbolForm.vb in this sample: Change layer rendering using the SymbologyControl It's working great on my developer machine with Windows 7, 64bit.
But when I deploy the ...
4
votes
1answer
187 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 ...
