16 votes
Accepted

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

In Visual Studio 2013, to fix this check Use Managed Compatibility mode in VS2013 > Options > Debugging > General (last option in the list). Original answer by Preston McCormick here
user avatar
  • 381
11 votes
Accepted

Setting up Python/ArcPy with ArcGIS Pro and Visual Studio?

Python/ArcPy for ArcGIS Pro 1.3 is now installed in C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\ So your IDE needs to be pointed at that environment to pick up the link to arcpy. In ...
user avatar
  • 29.2k
10 votes
Accepted

Unable to create .esriAddin; missing ESRI ArcGIS Add-in SDK components(s)?

I did not per se figure it out becuase i don't really understand what is going on here but I was trying different things until it worked. I am not sure whether it is suppose to work or whether this ...
user avatar
10 votes

Setting up Python/ArcPy with ArcGIS Pro and Visual Studio?

I had some difficulty integrating ArcPy with ArcGIS Pro and VS Code. Here's how to get things working on Windows 10 and ArcGIS Pro 2.5.0 It is confusing at first as it depends where you have come ...
user avatar
  • 702
8 votes

Visual Studio 2015 doesn't read ArcGIS 10.2.2 advanced license

ArcObjects .Net SDK for ArcGIS 10.2.x requires Visual Studio 2010 or 2012. Visual Studio 2015 isn't supported for 10.2.x See ArcObjects SDK 10.2.x system requirements - Scroll to bottom of page for ...
user avatar
  • 29.2k
7 votes
Accepted

Sample for MS Visual Studio C++ using GDAL library

Here's just the nuts-and-bolts from some working code: #include "gdal_priv.h" #include "gdal_alg.h" // in main()... GDALAllRegister(); // register all drivers // open your raster - format doesn't ...
user avatar
6 votes
Accepted

Setting Embed Interop Types in ArcObjects to True or False?

The important difference is the way interop information is stored; either in your assembly, or in an external PIA. Because ArcGIS already provides PIA's, you should always set 'Embed Interop Types' to ...
user avatar
  • 4,173
5 votes

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

In order to debug ArcMap 10.3 Add-in with VS2013 in .Net 4.5. I had to attach VS2013 to ArcMap.exe process. This is kinda annoying but it is the only way I got it to work for now. I'm still confused ...
user avatar
  • 381
5 votes
Accepted

Getting feature class names within dataset with vb.net and ArcObjects?

You need to iterate the datasets to get his containing feature classes. Like this: While Not pSdeDSName Is Nothing Dim pEnumDataset = pSdeDSName.Subsets Dim pSubset = pEnumDataset.Next() ...
user avatar
5 votes
Accepted

Debugging QGIS from Visual Studio

I put as an answer the steps I've followed. You have to follow my notes described in this post, BUT you will have to make some changes. When you open the Visual Studio solution with the devenv ...
user avatar
  • 7,225
4 votes
Accepted

How to compile an ArcGIS Desktop add-in in Visual Studio 2013

First, I check that Microsoft.VisualStudio.Shell.9.0 was in the GAC, It was not there... :( then I proceed as Juho Vainio in Geonet suggest : Visual Studio Command Prompt --> Run as Administrator --> ...
user avatar
  • 734
4 votes

Generate delaunay triangulation from 3D(x,y,z) points

Using scipy and numpy: import numpy as np from scipy.spatial import Delaunay #do triangulation points = np.random.rand(4, 3) tri = Delaunay(points) #indices tri.simplices #points tri.points See ...
user avatar
  • 1,193
4 votes

How to compile an ArcGIS Desktop add-in in Visual Studio 2013

Here's an additional answer since I just went through this process with ArcGIS 10.3 and Visual Studio 2015. I'll just paste the reply I posted at https://geonet.esri.com/message/579779#579779. There ...
user avatar
  • 115
4 votes
Accepted

Prerequisites for running Visual Studio 2012 ArcGIS desktop application exe on any machine don't have ArcGIS installed

It seem you have written an ArcEngine application. So, you must install ArcEngine Runtime on any machine you need to run your application. ArcEngine Runtime is the minimum. You can either install ...
user avatar
4 votes
Accepted

How to set up Visual Studio Development Environment for ArcGIS 10.3.x to develop Add-In?

Yes, things can seem a bit complicated. However, I can confirm that developing add-ins works with ArcGIS 10.3 and Visual Studio 2013. I haven't tried 2015, but I don't expect it to work, because it ...
user avatar
  • 4,173
4 votes
Accepted

Visual Studio 2015 Error when running ArcMap add-in

To quote this thread, Visual Studio 2015 "will install correctly, and create projects, but will not allow you to build a project without having VS2013 installed as well."
user avatar
4 votes

PostgreSQL query to C#

Use this: return @"SELECT ST_AsGeoJSON(ST_Transform(geom, 32633)) FROM ""Database"" WHERE ST_Distance(ST_Transform(geom, 32633), ST_SetSRID(ST_Point(536251.378984788,5211860.67521085), ...
user avatar
  • 6,099
3 votes
Accepted

Changing the transparency of a raster layer with ArcObjects

The easiest way to loop through layers in ArcMap is to use IEnumLayer. You get a reference to that from IMap.Layers. http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//...
user avatar
  • 2,358
3 votes

Debugging ArcMap Add-In .Net 4.5 in Visual Studio 2013: Unable to start ArcMap.exe

Here is how I resolve this issue and it works pretty much every time it comes up. Restart VS2013 Right click on project -> Debug -> Start new instance (this will prevent it from building first) ...
user avatar
3 votes

Creating Panning Buttons in C#

The fist problem is it's not an add-in. public class PanDown : ICommand should read public class PanDown : ESRI.ArcGIS.Desktop.AddIns.Tool or public class PanDown : ESRI.ArcGIS.Desktop.AddIns.Button ...
user avatar
3 votes

How to add ArcObjects SDK into Visual Studio Express 2013?

The latest supported version is VS Express 2010. http://resources.arcgis.com/en/help/system-requirements/10.2/index.html#//01510000006n000000
user avatar
3 votes
Accepted

Unable to load DLL 'ArcGISVersion.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)

The problem was somehow the target CPU of the project had changed. If you go to project properties and then compile there are 2 places where the target platform is set. On the first line there is a ...
user avatar
  • 2,284
3 votes

Setting up a QGIS Plugin Development Environment in Visual Studio and PTVS

You can debug plugin in Visual Studio 2015. Create project file for VS2015 and add break points in code. Start QGIS dont load plugin. Go to Debug -> Attach To Process (Ctrl + Alt + P). Find the ...
user avatar
3 votes

Visual Studio 2015 Error when running ArcMap add-in

I figure some people might don't want to install 2013 along side 2015, this is another simpler workaround that worked for me.. ValidateAddinXmlTask is not that important if you know your XML is good. ...
user avatar
  • 657
3 votes

ESRI.ArcGIS.Desktop.AddIns could not be found. Visual basic build error

While the SDK is required to create new projects (the templates that appear when you choose File>New Project), it should be possible to compile existing projects without the ArcObjects SDK. Also, ...
user avatar
3 votes
Accepted

Could not install Esri.ArcGISRuntime SDK package with Visual Studio 2015

I see that it is not supported yet for VS 2017 VS2017 is supported. The latest release dropped support for VS2015, albeit you can still use the NuGet packages from nuget.org in VS2015 (all the ...
user avatar
  • 594
3 votes
Accepted

ECCODES ERROR when opening .GRIB file in Spyder/Visual Studio Code

I solved that problem just creating an environment variable called ECCODES_DEFINITION_PATH. You have to find the path to "definition" folder. In my PC, That path is C:/Users/Geanderson....
user avatar
3 votes

Shift polygon along the coordinate axis

Setting the coordinates for Center doesn't mean displacing the polygon to those coordinates. A centroid doesn't represent the polygon itself, it is just a point. Center.PutCoords(-1, -1); means just ...
user avatar
3 votes
Accepted

Shift polygon along the coordinate axis

The correct solution turned out to be that Move shifts by a relative number of units. It is necessary to immediately transfer to the parameters by how much to shift (do not set relative to the center) ...
user avatar
  • 81
2 votes

How can I use ogrinfo to reach information about a .shp?

On windows, you must specify the full path to the ogrinfo executable. On my windows 7 machine it is: C:\Python33\Lib\site-packages\osgeo\ogrinfo
user avatar
  • 432

Only top scored, non community-wiki answers of a minimum length are eligible