Questions tagged [vb.net]

An object-oriented programming language from Microsoft. It is the .NET version of the Visual Basic (VB) programming language.

Filter by
Sorted by
Tagged with
1
vote
3answers
265 views

Why does DotSpatial return NaN for point reprojection?

From the master branch and examples @ https://github.com/DotSpatial/DotSpatial the following fills the xy array with NaN but we expect 1755668,5922511 Dim x As Double() = {2666109} Dim y As Double() =...
1
vote
2answers
1k views

How do I save edits from an ArcMap editing session using VB.Net?

I have figured out how to do a map save document, but I would also like to be able to save edits whether or not I am also saving the map document.
0
votes
1answer
1k views

Accessing functions from another project in vb2010

I have written a project which has common functions in Visual Basic 2010 i.e. Visual Studio 2010. for e.g. Public Function FlashPolygon(pDisplay As IScreenDisplay, pGeometry As IGeometry) Dim ...
2
votes
2answers
28 views

Re-projection issues with Azimuthal Equidistant

When reprojecting country-border polygons from longlat: +proj=longlat +datum=WGS84 +no_defs to Azimuthal Equidistant: +proj=aeqd +lat_0=26 +lon_0=126 +x_0=0 +y_0=0 +a=6371000 +b=6371000 +units=m +...
2
votes
0answers
21 views

OGR2OGR - cannot save to ShapeFile

I am trying to fix a bug in some software that exports to Shapefile and/or MapInfo files. I am struggling to wrap my head around this OGR2OGR stuff. The software will not export to shapefile and I ...
1
vote
1answer
837 views

Joining and Calculating using ArcObjects with vb.net

I'm trying to join an excel table to a shapefile and then calculating those fields using vb.net. The code I have written has no errors, but won't work when I try it in ArcGIS 10.1 and I'm out of ideas....
1
vote
1answer
24 views

ArcMap - ArcObjects IGeoFeatureLayer Renderer is giving a NullReferenceException

Refactoring a VBA add-in into VB.NET add-in. I'm getting: An unhandled exception of type ' System.NullReferenceException' occured in MyAddin.dll Additional information: Object reference not ...
1
vote
1answer
39 views

ArcMap - ArcObjects Text in Layout mode not showing

Refactoring VBA to VB.NET and most parts of the code is working expect for the part where I want to show the layername with today's date in the layout mode (pTextElement.Text) Any ideas why the text ...
3
votes
3answers
1k views

Using ArcGIS Geoprocessing and 32/64 bit architecture with ArcObjects?

I am coding a VB.net console application using ArcObjects to call ArcGIS 10.1 geoprocessing tools. I have several geoprocessing calls that actually work, but that pop up an irritating message box when ...
0
votes
2answers
144 views

Using Open GIS’s KML Schema Definition (ogckml22.xsd), Microsoft.Net XML Schema Definition Tool Fails

In brief, on one hand, I expect Open GIS’s KML Schema Definition, i.e. ogckml22.xsd, to be rock solid; fully debugged. Likewise, Microsoft.Net’s XSD XML Schema Definition tool (https://docs....
0
votes
0answers
60 views

BC30456 'ITableSelection_SelectionChanged' is not a member of 'StandaloneTableClass'

I am seeing this error BC30456 when building this DLL for VB.Net ArcMap extension. I see the following in the ESRI.ArcGIS.Carto.xml which confuses me with the error. <member name="M:ESRI.ArcGIS....
1
vote
1answer
44 views

ArcMap / ArcObjects - Type “OLEDBWorkspaceFactory” is not defined when creating a new workspace

Making an Add-In for ArcMap, refactoring old VBA code into VB.NET. Trying to create a new workspace with ArcObjects in VB.NET. I am getting the error: BC30002 Type "OLEDBWorkspaceFactory" is not ...
0
votes
0answers
53 views

System.TypeLoadException: Types extending from COM objects should override all methods of an interface implemented by the base COM class

Ok, here is the situation. I am looking to get a custom arcobjects vb.net extension running correctly on ArcMap10.5. When loading nodes in an attachment viewer I receive the following error once ...
2
votes
1answer
6k views

Plotting Multiple Points on Google Map using VB.net

I am creating a database application using VB.net and MSSQL 2012. I have retrieved a list of customer from the database and want to plot them on google map. At it stands, I can only plot the first ...
6
votes
1answer
1k views

Creating button to clear all layers from data frame using ArcObjects and VB.NET? [closed]

I'm trying to create a button using VB.NET and ArcGIS 10 to clear the layers of my data frame. I know how to add layers, but how do I delete/clear them?
4
votes
1answer
6k views

Getting feature class from File Geodatabase in ArcObjects using VB.NET?

How do you open up a File GDB and read out a simple feature class? The snippet for retreiving a shapefile from a regular folder on disk works, and I suppose I can use the same code but with a ...
1
vote
2answers
203 views

Geoserver Query

we are developing two application, the desktop and web application.. we are using vb.net for desktop application and drupal for web application.., what we are trying to achieve is plot a certain ...
3
votes
3answers
327 views

Getting Layername from selected feature using ArcObjects?

I have a IEnumFeature list of selected Features obtained through IApplication.Document.ActiveView.Selection. From this selection I want to delete some feature, more specifically the features from one ...
1
vote
1answer
193 views

View and edit land parcels in MapWinGIS

I am developing a GIS_desktop application with VB.NET and MapWinGIS. When I load a shapefile into the application, it is displaying blocks instead of the actual polygons . The shapefile is supposed ...
1
vote
1answer
189 views

listen to Edit Session in ArcMap

I want listen to Edit Session in ArcMap. But every time when i click on my button in ArcMap, Applicaation crash down. If i debug, it stopped at AddHandler Events.OnStartEditing, AddressOf ...
0
votes
1answer
71 views

Creating Hillshade after selecting Raster through pGXDialog

I am trying to create an add-in button which opens a dialog box filtering only rasterdata sets. After that once I select a Raster dataset, the Hill shade operation should be applied to that Raster ...
1
vote
1answer
667 views

How to write expression with vb.net in mapwingis (ShapefileCategory.Expression)?

I would like to give color to the map with new category. to make must make previous expression. I've tried but still failed. What is wrong ? Please help me. Dim category As MapWinGIS....
0
votes
2answers
182 views

Is there an ArcObjects equivalent to the CQL filter when working with WMS layers?

Is there an ArcObjects equivalent to the CQL filter when working with WMS layers? I have reviewed the documentation, but can't identify any way of filtering a WMS service. Can anyone point me in the ...
17
votes
2answers
7k views

Create weighted Thiessen polygons?

I have a point shapefile and I create Thiessen (Voronoi) polygons programmatically using this scripting syntax: CreateThiessenPolygons_analysis (in_features, out_feature_class, fields_to_copy) ...
2
votes
1answer
1k views

How to add multiple shapefiles with VB.Net

I have created a toolbar add in for arc with a button that opens a form with 3 selections that are shapefiles, once the shapefile is selected I click the Add Layer button. Currently I can only get one ...
0
votes
1answer
154 views

Printing a Form includes data grid and axmapcontrol [closed]

I have created a windows form with some controls in it like data grid and axmapcontrol, it seems that printform cannot print the content of the axmapcontrol. I need to create a table of data and a map ...
0
votes
1answer
825 views

How to draw line/multiline, polygon/multipolygon with SharpMap from Coordinate Source

I have a list of n points, exactly x objects in GeoJSON from a CouchDB. I want to generate lines/multilines and polygons/mutipolygons with SharpMap and add this to a Layer in VB.NET. For points its ...
3
votes
1answer
968 views

Executing Dissolve method in ArcGIS Engine?

I'm always having a problem in GP.execute() when trying to execute this method. Here is my code: Friend Function DissolveFeatures(ByVal pInFLayer As ESRI.ArcGIS.Carto.IFeatureLayer, ByVal ...
1
vote
1answer
370 views

Finding Points where two polylines cross in ArcGIS Runtime .NET SDK?

I am using ArcGIS SDK for .NET and have a graphic overlay defined on my mapview. I added two circles to the map (made with polylines) which overlap. I now need to determine the points at which the ...
1
vote
1answer
379 views

How to zoom to Feature in VB .net

I'm trying to zoom to a feature just like in Arcmap but in VB.net. I'm using Axmapcontrol to display the map. I've tried the following: Dim pCmdItem As ICommandItem Dim pUID As New UID pUID.Value = "{...
4
votes
1answer
408 views

Listening for edit events through dockable window using ArcObjects?

I am creating a dockable window that allows users to select features of a particular featureclass, iterate through records in the featureclass, populate textboxes with certain attributes, and edit ...
0
votes
1answer
278 views

How to run spatial query get fields value of 2 layers?

Last month I asked vb.net arcobjects spatial query get fields value of desired layer only. Now there is some change in the requirement, I need to get value of 2 layers after use "Select Features" ...
1
vote
1answer
689 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" ...
0
votes
1answer
439 views

Code to get featureclass name from existing topology

I am creating and validating topology through vb.net and arcobject code.Things are running fine as I am able to add rule and validate it. Problem is when once the program is run and topology is ...
2
votes
1answer
1k views

Overlaying an image on a point, on a map in sharpmap?

I can add points to a map but I want to show an image (like a baloon or location sign) instead of the default red circle for the points. how can I do that with Sharpmap? my code to draw points is: ...
5
votes
2answers
1k views

Visual Basic editor command icon is always disabled

I recently installed ArcGIS 9.3 in a PC with Windows 7.0. I opened an existing mxd file within which I developed some toolbars for a project. Each icon of a toolbar has behind it a VBA and ArcObjects ...
1
vote
0answers
139 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
0answers
259 views

Subtract two rasters with Raster Calculator in ArcObjects (VB.NET)

I'm having a hard time subtracting two rastera with ArcObjects sdk 10.1. I keep getting a null reference exception at the gp.execute() method, but I can't figure out where the problem is, I recall ...
1
vote
0answers
150 views

ArcObjects queries using selection set

I'm new to ArcObjects and I'm finding it difficult to work with the ArcObjects 'Feature classes'. Coming to my problem, I have a Map with few layers. I have coded for the layer names to display in the ...
0
votes
1answer
90 views

How to get the column header of attribute table

I have a simple vb.net code which gets all the layer names present in the ArcMap and displays it in a vb form combobox. My question is if I select a layer name that is present in my combobox it should ...
3
votes
2answers
485 views

Finding layer based on source name using ArcObjects?

I am relatively new at creating tools with ArcObjects and I am having trouble finding a layer based on the layer's source name by looping through all layers. I've seen here that it is possible, but I ...
2
votes
2answers
2k views

Export Page Layout to PDF using ESRI add-in with vb.net

Note: This message is cross-posted on geonet (https://geonet.esri.com/thread/127249) I have been trying to convert a vba script to vb.net but I have hit a roadblock and I'm hoping someone can help me ...
1
vote
1answer
137 views

Preventing user from selecting different tool when custom tool is selected?

I am using VB.Net to write an add-in. I'd like to keep the tool that I created selected even when the user attempts to select a different tool, and only deselect when my tool is clicked on again.
1
vote
0answers
66 views

Keeping custom tool active while using edit tools via ArcObjects? [closed]

I'm developing a tool that, when the user creates a feature in a certain feature class, prompts the user with a form to populate one of the fields in its attribute table. I'd like to have the user use ...
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-...
1
vote
2answers
5k views

ArcObjects VB.Net - Looping through Layers from TOC and ListBox

I'm creating a tool in ArcMap 10 using a Windows form... its been a struggle (maybe some of you recognize the same themes in my questions) because this is the first time I've really messed with ...
2
votes
1answer
571 views

ArcObjects VB.NET forms in ArcMap 10.0

I am trying to create a basic form using ArcObjects (VB.NET) to view in ArcMap 10.0. I have created the form using the designer but can't view it in ArcMap. I have created a button that will call the ...
0
votes
0answers
390 views

EPSG 4326 to 3857 works on X axis but not Y with PROJ4NET

I am trying to convert a EPSG:4326 Lat Long into a EPSG:3857 reference. I have looked all around and have found slight differences in WKTs but nothing with different values. The following code ...
2
votes
2answers
303 views

ESRI forms using hooks

This has been bugging me for a while. I can easily call a form from a button using ShowDialog() if I use standard vb.net windows form. However when I use the ESRI addin dockable window which uses ...
2
votes
1answer
1k views

How can I get domain values associated with a field using ArcObjects?

I am trying to access the domain of a selected feature. I have seen examples for VB.NET and C#.NET, but I cannot access the domain of a specified field. Dim findName As String = Nothing Dim ...