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
1answer
33 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 ...
1
vote
3answers
240 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() =...
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
82 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
37 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
36 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
47 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
201 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
206 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
156 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
171 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
70 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
647 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
173 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
994 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
153 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
758 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
939 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
364 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
366 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
392 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
272 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
688 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
429 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
960 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
122 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
247 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
130 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
89 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
479 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
136 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
61 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
537 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
354 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
289 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 ...
12
votes
3answers
5k views

Connecting line features and determining the length of the longest line

I have a line feature (see image) representing a river that I created using the Stream_to_Feature tool. The attribute table contains several records representing different lines - the problem is the ...
1
vote
0answers
94 views

Arcobjects vb.net stringbuilder [closed]

I'm newbie and have question about string builder to show the arcgis layers. (System: ArcGis 10.2, VisualStudio2012) I don't succeed to show the loaded layers in a line of the message box. code: ...
1
vote
1answer
145 views

Getting all aliasnames of featureClassLayer in ArcObjects?

I'm a novice in programming: I'm trying to create a code which gives me the alias name from the attribute table. This is the code below that I tried, but it gives me only the layernames instead of ...
7
votes
3answers
4k views

Selecting the MAX value from a feature using ArcObjects?

I have a feature (point) with a field called 'Sequence'. The values in this column range from 1 to n. I can use IQueryFilter to get the first value, 1. Dim pQry As IQueryFilter = ...
6
votes
4answers
711 views

Migrate in a new programming GIS language

The last five years I have been working with VBA and ArcObjects for developing a specific application within ArcGIS. That project that began around 2008-2009 carried out with VBA and ArcObjects which ...
2
votes
1answer
171 views

Why does Arcobjects IEditor operation not fire IEditEvents.OnCreateFeature?

I built an Arcobjects add-in in the past that records the username and datetime every time a feature is created or modified: Sub OnStartEditing_Handler() AddHandler Events.OnCreateFeature, ...