Questions tagged [visual-studio]

Use this tag asking questions related to visual-studio, software development IDE created by Microsoft

Filter by
Sorted by
Tagged with
1
vote
1answer
416 views

Error Finding proj.db using GDAL 3.0 With MapInfo v.15

I am using GDAL 3.0, MapInfo v.15, Visual Studio 2015, and c#. Recently I updated from Gdal 2.2 -> 3.0. Since then when I use aerials to create a pdf report and then upload to S3, I receive the ...
8
votes
1answer
304 views

Debugging QGIS from Visual Studio

I try setup a QGIS debug environment under Windows10 64bit. I followed the instrictions given at https://github.com/qgis/QGIS/blob/master/INSTALL#L423 I also had a look at https://www.shaeffer.co/...
0
votes
1answer
62 views

QGIS Application in C++ [closed]

I'm new to QGIS 2.8 Library to develop standalone map application in qt4, C++ language. I was wondering if there is any way that I can use QGIS plugins such as Advanced viewshed analysis, Contour ...
1
vote
0answers
125 views

Refreshing IDockableWindow with DGV using C# [closed]

I am having a IDockableWindow which will display a row of data which is a DATATABLE on DGV. below is my code. Page1.cs: private void toolStripMenuItem_Open_detail_page_Click(object sender, ...
2
votes
0answers
75 views

How to use GDAL from Nuget in C#?

I have created a C# WPF (.NET Framework 4.6.1) application in Visual Studio 2017 and installed latest stable GDAL 2.4.2 from Nuget. In the App.xaml I have added the GDAL configuration call: ...
0
votes
0answers
25 views

Displaying one sublayer from WMS service to ArcGIS Pro using SDK

I have developed a new toolbar Add-In for ArcGIS Pro 2.4 with C# and ArcGIS Pro SDK in Visual Studio 2019. This toolbar has several buttons that load geographic information to a map canvas in ArcGIS ...
0
votes
1answer
971 views

Displaying selected features in ArcGIS Identify Dialog using Visual Studio 2010/ArcObjects?

I'm brand new to ArcObjects SDKs and am struggling. I have a Python Add-in performing a query to select records (works great)and now trying to call the identify dialog via an .NET addin button that ...
0
votes
0answers
11 views

Parse Error After Updating GDAL Version

I have been running GDAL 201-1800 MSVC 2015 and GDAL-2.1.3-cp36-cp36m-win32.whl. I recently updated to GDAL 300 MSVC 2015 and GDAL‑3.0.1‑cp36‑cp36m‑win32.whl. My apps are built using c# in Visual ...
1
vote
1answer
388 views

Adding new menu item to ArcCatalog using ArcObjects?

I'm trying to a add a new menu drop down to the ArcCatalog menu bar. I tried to use the built in ArcGIS base menu template in Visual Studios 2010 but no luck. I also tried to manually add the dll ...
0
votes
1answer
278 views

GDalConfigure.cs is missing when I install GDal Core with NuGet in C# Visual Studio

According to this post: How to Install GDal Bindings for C# It says all I have to do to get GDal working is install with NuGet package, and then call ConfigureGdal(). So I did the basic steps, and it ...
0
votes
1answer
29 views

GDAL NULL Path Value On Production Server

I am using c# and visual studio. I have an app using GDAL that works perfectly on the Dev Server. When I transfer it to Production the app fails. I receive the following error message: An error ...
1
vote
1answer
3k views

Example of C++ code in Visual Studio initializing a created raster

I refer to Sample for MS Visual Studio C++ using GDAL library I noticed that the answer mentions that when GDAL is built from source there would be a tools folder with examples of how to initialize a ...
2
votes
0answers
48 views

QGIS - How to render QgsMapCanvas on QApplication's main window

I am working with C++, QT 5.11.3, Visual Studio 2015 and QGIS 3.7 I'm trying to develop QT c++ application that uses the qgis api. I want to display simple raster and vector map in my qt application. ...
0
votes
0answers
288 views

Debugging Python script using Visual Studio in ArcGIS Pro?

According to these links, one can debug a Python script using Visual Studio in ArcGIS Pro. Debug Python code—ArcPy Get Started | ArcGIS Desktop ArcGIS Pro and Python - YouTube I am using ArcGIS ...
0
votes
2answers
1k views

Calculate the target point by using initial coordinate, bearing angle and distance

I need to calculate the target coordinate by using the initial coordinate, bearing angle and distance. I came across this on how to calculate it. Then I construct the code in C#, but it seems I can't ...
1
vote
1answer
276 views

Open Traverse Method for the map survey

I need to use traverse method in my program on visual studio(WPF) so that the user can get their target point coordinate by using their initial data. In my knowledge there is two type of traverse that ...
1
vote
1answer
102 views

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

I am trying to install the ArcGIS Runtime SDK for .NET using Visual Studio 2015 (I see that it is not supported yet for VS 2017, so I installed 2015). I am follwing the ESRI documentation but having ...
7
votes
1answer
6k views

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

My ArcGIS Pro install recently updated from 1.2 to 1.3. In reading Python in ArcGIS Pro 1.3 I discovered that Esri have changed how ArcGIS Pro uses Python/ArcPy. Legacy: In ArcGIS Pro 1.0 ...
1
vote
0answers
38 views

Getting Esri Brushes to appear as dynamic resources in Visual Studio?

I used the ArcGIS Pro SDK to create my Add-In project and to create the DockPane but the Esri Brushes don't show up as Dynamic Resources. According to Esri (https://github.com/Esri/arcgis-pro-sdk/...
0
votes
1answer
361 views

How to build SharpMap

I am trying to test the SharpMap 1.2 libraries. I cloned the build from https://github.com/SharpMap/SharpMap and ran a Build. I encountered 56 errors under VS2015. There is virtually no info on how to ...
1
vote
0answers
77 views

how transforms coordinates etrs89 in wgs84 with javascript

I'm programming a web page with Visual Studio and I'm trying to make a javascript to use my page. The script has to transform the coordinates X, Y etrs89 WGS84 coordinates that can read Google. I ...
4
votes
6answers
5k views

Visual Studio 2015 Error when running ArcMap add-in

I'm running a simple ArcMap add-in in Visual Studio and am getting this error: Severity Code Description Project File Line Suppression State Error The "ValidateAddInXMLTask" task ...
1
vote
1answer
129 views

Initializing pszFilename in GDAL?

I still new in GIS and C++ may someone help regarding this. The code below will display the : "Error 3 error C4700: uninitialized local variable 'pszFilename' used" IT is the pszFilename is ...
2
votes
1answer
596 views

Trouble compiling ArcObjects Server Object Extension project into .SOE file

I'm writing a Server Object Extension(SOE) in Visual Studio 2012 using C# in Windows 7. I'm using the REST Template that comes packaged with ArcObjects 10.2. I'm able to build the program without ...
3
votes
0answers
375 views

Autocompletion for VS and Eclipse when debugging QGIS plugins

I have been trying to get autocompletion to work in first Eclipse and afterwards tried with Visual Studio. I have been following these guidelines / Stack Questions IDE settings for writing and ...
2
votes
1answer
3k views

Setting Embed Interop Types in ArcObjects to True or False?

I took over a new project with some legacy ArcObjects code and the original developer set the ArcObjects references "Embed Interop Types" property in Visual Studio to a mixture of "True" and "False". ...
1
vote
1answer
43 views

How to modify combo boxes lists in .esriAddIn, with no access to Visual Studio or SDK

I have an .esriAddIn project made for ArcGIS 10.0, and I want to modify the combo boxes lists with up-to-date values. My organisation has moved forward with Visual Studio 2013, ArcGIS 10.3, and ...
1
vote
0answers
28 views

Mapinfo: Protected memory error while using Mapinfo pro

I get the following error: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. This happens when I try to load a big .dat file (around 500 MB) ...
3
votes
1answer
280 views

ArcGis 10.2 returning an enum status of EsriLicenseNotLicensed

I have an old VS project that was using ArcGis for a map control. I now have 10.2 on my machine. code that I used previously to find & initialize the license no longer works. I know the enums ...
1
vote
0answers
167 views

Utility Network analyst - C# [closed]

This is related to Utility Network Analyst tool. I would like to build a button to accomplish the following: A Utility Network Analyst solve-function for downstream with flagging. Ofcourse, the user ...
2
votes
0answers
111 views

Set up Esri Proxy on Visual Studio for Web Appbuilder

I am trying to set up Esri proxy for my Web Appbuilder app on Visual Studio , anyone has done that? Setting up proxy tutorials show setting up on IIS7, VS runs IIS Express, therefore the set up would ...
1
vote
1answer
137 views

Unresolved externals on simple mapnik c++ application

I'm attempting to write a simple win32 x64 console application in c++ using VS 2017 that uses the Mapnik v3.0.9 SDK to render a png from a pgsql database. All I've done so far is include a reference ...
1
vote
1answer
750 views

Generating C# classes for gml.xsd using MS Visual studio xsd tool

With Microsoft Visual Studio 2010 comes a tool called xsd which can automatically generate C# source code to easily deal with XML files corresponding to a given schema. I have a very complex XSD ...
1
vote
1answer
256 views

Building QGIS master on Windows 7

I'm trying to build a debug version of QGIS on windows env for this I'm using the bat file package-nightly, I followed all steps presents in INSTALL file but without success. When I executed the bat ...
1
vote
1answer
41 views

ArcObjects C# : What are the valid inputs for IGxObjectProperties.GetProperty()?

The function IGxObjectProperties.GetProperty() takes in a string, i.e. "ESRI_GxObject_Name". So far, the ones I know are: ESRI_GxObject_Name, ESRI_GxObject_FileSize, ESRI_GxObject_FileTime, ...
0
votes
1answer
326 views

Arcgis Visualbasic Templates

I am using ArcGis 10 Template windows application(Desktop) in VisualStudio 2010. i have added an ArcGis Engine Map Control and engine TOC Control in that. when I am Adding my digitized map to the map ...
1
vote
1answer
695 views

Debugging InvalidCastException was unhandled by user code error from ArcObjects DataStat?

I have some code that adds a bunch of group layers into ArcMap based on a table within ArcMap. The code works fine in VBA, however in VS 2010 I get an error on the "pEnumVar = pDataStat.UniqueValues" ...
-4
votes
1answer
273 views

PostgreSQL query to C# [closed]

So I have this query in PostgreSQL: SELECT * FROM "Database"; Which works great, but now I want to do a more complicated query and I have no idea how. So how can I write this Query in C#: SELECT *...
1
vote
0answers
158 views

ArcMap add-in to make connection and load the database on VB.NET

I'm new at Arcobjects programming. Currently I'm trying to make an ArcMap Add-in which can connect and load a database into ArcMap. I have found samples on the Esri website, but it seems not to be ...
3
votes
1answer
1k views

When adding addin extension to project Startup function is never hit with ArcObjects and C#?

I have created an Esri Addin toolbar in VS2010 to add layers and search an address file, this works fine. I want to add an extension that will replace text on a template MXD with the current users ...
1
vote
0answers
678 views

Building QGIS with Visual Studio 2015 on windows x64? [closed]

I tried to follow the guide at github, hence I encounter problem after problem (Now I have problems with: MSBuild.exe to get the value of VCTargetsPath:, earlier I couldn't find any c++ paths etc.) I ...
1
vote
0answers
43 views

Closing AddIn in ArcGIS with Visual Studio 2013? [closed]

I was working in ArcGIS 10.2 with VBA but now I work with Visual Studio 2013 to create addins. I need to close all processes, I did this with the end statement in VBA but I don't find a command to ...
7
votes
0answers
607 views

Newbie to GIS Development in ArcGIS? [duplicate]

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 around in model builder,...
6
votes
6answers
3k views

Using Visual Studio 2008 or 2010 for ArcGIS Desktop? [closed]

Is there any differences, pros or cons between Visual Studio 2008 and 2010? I am going to buy Visual Studio and just want to be sure which one will work the best and have the most support going ...
1
vote
1answer
3k views

Add Attritube Field to Combo Box on Form

I am trying to create a user box that: When the button on the toolbar is clicked, a user form appears with a combo box filled in with a feature's location (Taken from the attribute table - such as I-...
2
votes
2answers
763 views

Visual Studio 2015 doesn't read ArcGIS 10.2.2 advanced license

I have an ArcGIS 10.2.2 Advanced License installed. I have Visual Studio 2015 installed. When I open my form I assign. public frmMain() { // this must be the first object created try { ...
1
vote
0answers
38 views

Set Maximum Allowed Panning Area

I'd like to fix the maximal area, in which the user can fly around. Now its possible for the user, to pan everywhere he wants to go. For e.g. to XMin: 216.2. My map has got these "borders": ...
2
votes
2answers
2k views

Why is * .tlb not visible?

I've created a Visual Studio 08 Active X - MXCommands dll for a VBA button within ArcMap 9.3.1. I'm able to load and use the .tlb on my computer; however when I try it on my test computer the .tlb ...
2
votes
0answers
422 views

QGIS Project: where to put CORE_Export definition in Visual studio 2010 [closed]

I am trying to develop a QGIS application with the following setup: OSGE4W qgis Libs QT 4.8.5 Windows 7 Visual Studio 2010 I have all the references setup in VS, but am not sure where define the ...
5
votes
2answers
7k views

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

How should I set up a development environment for making add-ins for ArcGIS 10.3? There is no walk-thru anywhere that I can find for this. First, ESRI says Visual Studio 2013 is supported but in other ...