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
3 answers
612 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
2 answers
4k views

VBA to VB.NET (Visual Studio 10) Migration for ArcMap

I will be migrating several VBA applications currently in ArcMap 9.3.1 to Visual Studio 10 in the near future, and wanted some feedback on the general migration steps listed below. I wanted to make ...
2 votes
1 answer
223 views

Creating a selection set from selected features using select by location

I am trying to convert my VBA code to vb.net. I use “Select by location” to select all the points that intersect lines. Then I want to click a button to put the points into a selection set. Then I can ...
1 vote
3 answers
915 views

CreateFeatureClass failure in vb.net

I'm using ArcGIS 9.3.1 and trying to get the code to create a new feature class in an existing personal geodatabase to work but I am having no luck. When running in debug mode from within vb.net it ...
0 votes
0 answers
13 views

MapSelectionChangedEvent.Subscribe in VB

I have seen multiple examples in C# like this: ... MapSelectionChangedEvent.Subscribe(OnSelectionChanged); private void OnSelectionChanged(MapSelectionChangedEventArgs args) ... When I try to ...
0 votes
1 answer
1k views

Geoprocessor: using arc toolbox in vb.net

i am doing the following in order to use the predefined tool points to line in arctool box Dim ptoline As ESRI.ArcGIS.DataManagementTools.PointsToLine = New ESRI.ArcGIS.DataManagementTools....
1 vote
1 answer
289 views

Running Geoprocessing tools via ArcGIS Pro SDK

I'm new to the ArcGIS Pro SDK and I find it very difficult to migrate my ArcGIS Add-In to ArcGIS Pro. I simply want to take the union of two shapefiles. When I run the code, nothing happens. I'm not ...
1 vote
1 answer
123 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
0 answers
34 views

Implementing VisibleBoundsUpdatedEventHandler [closed]

I have an ArcObjects add-in button that adds attribute value info as a text graphic into a map document layout. Now, instead of using the add-in button click event, I would like the code to run on ...
1 vote
1 answer
1k views

How can I get the coordinates of a grid cell?

How can I get the real coordinates (i.e. X and Y) of a given grid cell when I know its row and column position?
2 votes
1 answer
846 views

Casting ArcSDE table to IFeatureClassLoad

How do you cast an ArcSDE table to IFeatureClassLoad using ArcObjects? I'm getting an error with this attempt below which is not the correct method: Dim pSDEFeatWksp As IFeatureWorkspace = ...
0 votes
1 answer
244 views

Don't move Layout

I'm doing a vb.net button to run in ArcMap. the button is working, the problem is as I'm working in the layot when I press the button, change the layout coordinates and the map coordinates. Is there a ...
2 votes
0 answers
1k views

Visual Studio not creating ".esriAddIn" file

I have an addin that I've been maintaining with Visual Studio 2010 Express for quite some time with no issues. Recently my computer was replaced and Studio 2012 Express was installed. Since that time ...
-1 votes
3 answers
958 views

ArcObjects conforming to .NET standards Error

I'm following the "Walkthrough: Migrating VB6 to VB.NET for ArcGIS 10" to convert my VB code to .NET (using Visual Studio 2010), and I'm running into this error, "NullReferenceException ...
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 ...
3 votes
1 answer
443 views

Not getting all decimal places when converting numbers to string (ArcObjects with VB .Net) [closed]

I would like to build some queries in my addin from layers in my map. I am having problems with double numeric types. esriFieldTypeDouble has 14 - 18 decimal places or more depending on the database ...
1 vote
1 answer
543 views

VB.NET - Point in Polygon From KML file

I have a big number of Polygons extracted from a KML file. The polygons represents "blocks" on the Earth surface. I can read the coordinates of the polygons and store their values, as well ...
0 votes
1 answer
248 views

Using annotation in Enterprise Geodatabase

I have a problem with annotation In an Enterprise Geodatabase. In the database I have: parcelle : a geometry table that contain polygons personne : a table contain parcel's owners pll_personne : is ...
2 votes
2 answers
369 views

ArcObjects VB.net looping through domains of a subtype

I'm working on an ESRI-Addin written in vb.net. I have a FeatureClass with subtypes (POI with categories). Each subtype (category) has a coded value domain defining the subcategories. I managed to ...
0 votes
2 answers
56 views

VB.NET Executing Raster Calculator

I'm trying to execute the raster calculator function in VB.NET but I'm having trouble with the gp.execute line. Sorry if the code is confusing, I'm fairly new to VB.net. I keep getting this error: An ...
0 votes
1 answer
40 views

Identify feature on feature layer (shapefile) automatically without mouse click event on ArcMap 10.2

With a longitude and latitude value, I am trying to identify feature (shapefile) on feature layer with no mouse click or user interaction. On debugging mode with an attach process on ArcMap.exe, the ...
1 vote
1 answer
129 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 ...
1 vote
4 answers
7k views

Permanently reordering fields in feature class programmatically using ArcObjects with VB.Net

Would someone be able to share the logistics on how to permanently programmatically reorder fields in a feature class with ArcObjects, VB.Net. I want to be able to do this in the geodatabase not in ...
18 votes
7 answers
17k views

How can I find the farthest point from a set of existing points?

I have a set of points as a shapefile and I want to find (the coordinates) of a new point which will have the longest possible distance from each of the existing points. Is that possible? If yes, is ...
1 vote
1 answer
547 views

ArcMap: How to change mouse pointer to an arrow in Mapview - VB.NET

I'm writing a add-in for ArcMap 10.5 in VB.NET. I've chosen the item "Button". So when I click on the button I need the mouse pointer, when in MapView, to turn into an arrow (like the Select Feature ...
3 votes
1 answer
2k 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: ...
1 vote
2 answers
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
1 answer
2k 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
2 answers
125 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 +...
1 vote
1 answer
939 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
1 answer
79 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
3 answers
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
2 answers
662 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
0 answers
143 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
1 answer
79 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
0 answers
121 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
1 answer
7k 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
1 answer
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
1 answer
7k 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
2 answers
240 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
3 answers
1k 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
1 answer
410 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
1 answer
244 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
1 answer
86 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
1 answer
857 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
2 answers
290 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
2 answers
9k 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
1 answer
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
1 answer
160 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
1 answer
1k 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 ...

1
2 3 4 5