16

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


11

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 Visual Studio open the Python Environments window, click "+ Custom..." and select "Configure". Give the new environment a name e.g. Python 64-bit 3.5 ArcPy and ...


10

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 crudity can even be called a workaround but here it goes: Keep both "ESRI.ArcGIS.AddIns.targets" and "ESRI.ArcGIS.AddIns.11.targets" in the "C:\Program Files (...


8

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 info on ArcObjects SDK for the Microsoft .NET Framework. Also: ArcObjects for 10.3.x requires VS 2012 or VS 2013 ArcObjects for 10.4.x requires VS 2013 or VS ...


7

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 matter as all the drivers are registered GDALDataset* SourceRasterDS = (GDALDataset*) GDALOpen(Raster,GA_ReadOnly); double GeoTransform[6]; ...


6

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 false for ArcGIS solutions. The following paragraphs are taken from http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//...


5

If you really need as assembly to have it's own config you directly load it using this .net code. System.Configuration.ExeConfigurationFileMap fileMap = new System.Configuration.ExeConfigurationFileMap(); fileMap.ExeConfigFilename = "THE PATH TO THE CONFIG"; System.Configuration.Configuration cfg = System.Configuration.ConfigurationManager....


5

Yes, since you are presumably using VB.NET (not VB, which is 20+ years old and no longer supported), you need to use the Imports statement to import namespaces. Specifically you want to put Imports ESRI.ArcGIS.Geometry at the top of your code files. Alternatively you could fully qualify the IPoint type every time you use it (ESRI.ArcGIS.Geometry.IPoint) ...


5

I got this book 2 weeks ago while browsing (again) for books covering your same question. Definitely worth purchasing. It's taken me a while to understand interface programming (that ArcObjects uses) but this guy explains it pretty well in Chapter 5. Lots of sample code and examples on how to create add-in's and extensions. The book covers 10.1 as well. ...


5

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() While Not pSubset Is Nothing If pSubset.Type = ESRI.ArcGIS.Geodatabase.esriDatasetType.esriDTFeatureClass Then ListBox1.Items.Add(pSubset....


5

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 command, DON'T DO THE BUILD, wait a bit. Go to qgis_core properties and add Version.lib Now do the build and go out for a drink as this takes a long time. To ...


4

Here are two examples of getting values from the selected features. This one lists all the values for the feature IMxDocument pMxDocument = ArcMap.Application.Document as IMxDocument; IMap pMap = pMxDocument.FocusMap; ILayer pLayer = pMap.get_Layer(0); IFeatureLayer pFeatureLayer = (IFeatureLayer)pLayer; IFeatureClass pFeatureClass = pFeatureLayer....


4

If you are creating an extension that is only accessed from say desktop then consider developing an AddIn extension as these are much easier to deploy on client machines. If you are creating an extension that makes ArcMap talk to say MS Access then a standard extension (COM) would be required but then you have to register it with the OS and deal with admin ...


4

ogrinfo as nothing to do with Visual Studio. It is a command line tool (Windows, Linux, Mac OS X) So you use it in the Windows console or in the Linux and Mac OS X shell in the same way. ogrinfo yourshape.shp with a lot of options: (ogrinfo) And, there are many, many tutorials in Gis.StackExchange : search ogrinfo and on the Web....


4

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 --> gacutil /i Microsoft.VisualStudio.Shell.9.0.dll, but it failed because I was not giving the full pat of the dll, so I search for it in the Visual Studio 2008 ...


4

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 are several steps, but none of them are too difficult. First, to get the SDK installed, you need to add a few registry keys so that ArcGIS thinks that you have ...


4

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 the documentation here.


4

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 ArcEngine SDK or even ArcGIS Desktop to run you application. The Arc Application (Engine or Desktop), must match the version of sdk that you have built your ...


4

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 on why this is happening. How to attach process Start ArcMap In VS2013, go to menu "DEBUG" -> "Attach to Process" Select "ArcMap.exe" and click on "Attach" ...


4

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 came out after ArcGIS 10.3. Some people are having issues debugging in Visual Studio 2013, but for me it eventually worked. The ArcObjects SDK for the ...


4

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."


4

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 from. You may be familiar with Python, but not ArcGIS 10.x or Pro. Or you may have Visual Studio experience but not VS Code. So this might be helpful for some. ...


4

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), 32633)) < 100"; (This is called Verbatim string literal) (via)


3

Found it. Open ProjectName.vbproj.user (Where ProjectName is the actual name of the project) in notepad and change Desktop10.1 to Desktop 10.2: Program C:\Program Files (x86)\ArcGIS\Desktop10.1\bin\ArcMap.exe


3

I use following code snippet to get selected features from map for a specific feature layer: public List<IFeature> GetSelectedFeatures(IFeatureLayer featureLayer) { IFeatureSelection featureSelection = (IFeatureSelection)featureLayer; var selectionSet = featureSelection.SelectionSet; IFeatureClass featureClass = featureLayer.FeatureClass; ...


3

When you set up a reference to an assembly, you have the option for "Specific Version". When you add a reference manually, by default it is True. The references added by Esri's SDK tools set it to False. You should be able to highlight multiple references in the Solution Explorer and change multiple assembly references' Specific Version to False. (At ...


3

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


3

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 Have a good read of this and start again from scratch, ensuring that you select an add-in type for your project when you start in Visual Studio. There are a ...


3

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) If above doesn't work then: Restart VS2013 Use Select some project as Startup then click Start in the toolbar. If that doesn't work this works every time: ...


3

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#//001200000482000000 Then check the type and cast each raster layer returned by the enumerator to IRasterLayer. http://resources.arcgis.com/en/help/arcobjects-net/...


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