Questions tagged [visual-studio]
Use this tag asking questions related to visual-studio, software development IDE created by Microsoft
170
questions
1
vote
1
answer
37
views
Is it possible to write your processing provider in C++ as a plugin?
Added a processing provider to his plugin, the plugin stopped downloading. Maybe c++ cannot be created at all.
plugin.cpp
void MyPlugins::initGui()
{
initProcessing();
}
void MyPlugins::...
1
vote
1
answer
180
views
Visual Studio 2022 and ArcGIS Desktop 10.8
I am using a VS2022 solution to fire up ArcMap 10.8, but it always gives me this error:
I have updated VS2022, I have tried everything but doesn't work. Any ideas?
3
votes
1
answer
386
views
Copied the red band of the RGB TIFF file with GDAL in C++
I'm a rookie in GDAL and C++. I tried to copy the red band of the RGB tif file with Create() and GetRasterBand(1)->RasterIO(). I got the right size of my new tif file, but all the value of the new ...
2
votes
0
answers
52
views
What is going on in ArcMap AddIn?
I have an ArcMap-addin which is working from ArcMap 10.2 until 10.8 but since an undefinite time in undefined circumstances there happen things that I can't explain. I'm searching for the cause while ...
1
vote
0
answers
1k
views
Using PyQGIS in Visual Studio Code
I have a standalone installation of QGIS 3.10.14 and I would like to use PyQGIS while working in Visual Studio Code.
I have already tried customizing settings file:
{
"python.pythonPath": &...
1
vote
1
answer
114
views
ArcMap 10.1 Slow Performance with VB.NET Code (Spatial Query) [closed]
We have just installed ArcGIS 10.1 and MS Visual Studio 10 (Dot Net Framework 3.5) to develop automation tools for Select by Attribute and Select by Location using VB.Net.
We developed a new add-in ...
0
votes
1
answer
53
views
Unable to restore ESRI reference in VS2017
I have project which was developed on ASP.Net 4.5 and ArcGIS Runtime SDK for .Net 10.4. Now I have installed ArcGIS Runtime 10.4 and change framework from 4.5 to 4.6.1 and also tried to install nuget ...
0
votes
0
answers
218
views
ArcObjects C#.Net 'System.NullReferenceException'
I'm new to C# and ArcObjects. I just started a book and I'm getting introduced to it. My fist ever ArcObjects code is to create an extension that zooms to the full extent of an active layer. I have an ...
1
vote
1
answer
1k
views
How to build GDAL 3.2.0 with VS 2019
I just can't get the latest GDAL release running with Visual Studio 2019.
Creating the VS project is no problem. Pretty straight forward. But when I try to build the project in VS in fails and gives ...
4
votes
2
answers
309
views
Shift polygon along the coordinate axis
I am creating BaseTool using ArcObjects with C#. The tool should reduce the polygon and move along the coordinate axis. I managed to reduce the polygon. When I want to use the PutCoords() function to ...
1
vote
0
answers
166
views
The project does not build. The command “esriRegasm.exe …” exited with code -1
I want to build the project to create a tool with ArcObjects in Visual Studio. I get this error:
The command "esriRegasm.exe "...Project1.dll" /p:Desktop /s" exited with code -1.
...
1
vote
2
answers
3k
views
ECCODES ERROR when opening .GRIB file in Spyder/Visual Studio Code
I have accessed Anaconda Prompt for the environment that I will be working.
Once there, I have changed the directory to the place where I have the grib files that I will be working with, in order to ...
0
votes
0
answers
807
views
Python error when run QGIS **Couldn't load SIP module
I am getting error when run QGIS.
**Couldn't load SIP module.
Python support will be disabled.**
Traceback (most recent call last):
File "", line 1, in
File "D:/qgis/QGIS/ms-...
1
vote
1
answer
333
views
PDAL: writing tutorial .exe cannot find PDAL DLLs
I'm following this link: https://pdal.io/development/writing.html#writing
My environment is Windows 10
I already have Visual Studio 2019 installed.
Install Conda, create environment "pdal", ...
0
votes
0
answers
2k
views
Getting started with SharpMap in Visual Studio with C#
I am trying to use SharpMap in Visual Studio with C#.
My first step was to go to the Tutorials on CodePlex.
https://archive.codeplex.com/wikipage?title=SharpMap%20Tutorial&referringTitle=Home
But ...
2
votes
1
answer
872
views
Visual Studio's CMake with vcpkg: Error gdal is not found
I have been trying to build a cmake c++ project. More specifically I am trying to use the gdal library in this project. In the CMakeLists.txt it says find_library(GDAL gdal) after doing some research ...
1
vote
1
answer
523
views
ArcObjects SDK for .NET Framework with Annual Educational Advanced (ArcInfo) Single Use License
I usually use my organization's ESRI account when at work, but I am now working at my home Desktop PC. On my home PC, I have an ArcGIS 10.6 annual educational license that I do not want to sacrifice. ...
1
vote
1
answer
575
views
How to create a separate environment using ArcGIS Pro Python in Visual Studio
I am switching from Pycharm to Visual Studio as my Python script IDE.
I have been trying to create an environment for ArcGIS Pro but I had no success so far.
I can create Custom Environment from ...
1
vote
1
answer
682
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 ...
8
votes
1
answer
931
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/...
5
votes
2
answers
2k
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:
...
1
vote
2
answers
3k
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 ...
0
votes
1
answer
67
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 ...
3
votes
1
answer
240
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. ...
3
votes
1
answer
713
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 pro ...
0
votes
2
answers
5k
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
1
answer
825
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
1
answer
311
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 ...
2
votes
1
answer
222
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/...
1
vote
1
answer
367
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
1
answer
7k
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".
...
0
votes
1
answer
547
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 ...
0
votes
1
answer
734
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 ...
1
vote
1
answer
59
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 ...
2
votes
0
answers
160
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
1
answer
276
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
0
answers
245
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 ...
3
votes
0
answers
495
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 ...
1
vote
1
answer
57
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, ...
-4
votes
1
answer
400
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
0
answers
257
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 ...
1
vote
0
answers
837
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
0
answers
48
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 ...
1
vote
1
answer
298
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 ...
2
votes
0
answers
203
views
Getting Intellisense / AutoCompletion for ArcGIS API for JavaScript 4 in Visual Studio 2015?
In Visual Studio 2015, how do I get intellisense / autocompletion for the ESRI ArcGIS API for JavaScript version 4.3. I haven't been able to find any documentation that explains how to add ...
2
votes
0
answers
168
views
Import error when compiling QGIS 2.18.3
I am getting the following error while compiling QGIS 2.18.3 in visual studio 2010. Apparently all is well when I compile QGIS 2.14. Is there something am missing?
277> Building Custom Rule D:/...
1
vote
0
answers
258
views
Unable to load dll arcgisversion.dll
I'm trying to publish my VB.net Application, it's working fine on my machine, but it's showing this error on my friend machine:
unable to load dll 'arcgisversion.dll': The specified module could ...
2
votes
2
answers
943
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
0
answers
70
views
Building Addins using common environment for ArcGIS 10.4 and 10.0? [closed]
I have an addin for ArcGis 10.0. This addin is developed in following environment:
Visual studio 2010 ,
ArcObjects sdk for 10.0 (arcgis)
When I want to use same addin on ArcGis 10.4 version, it ...
4
votes
1
answer
1k
views
Getting feature class names within dataset with vb.net and ArcObjects?
I am totally new to arcobjects. I want to get the feature class names withın a dataset and add them to a listbox. I was able to get the dataset names but i do not know how to iterate through the ...