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
1 answer
165 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 ...
Nilu Silva's user avatar
1 vote
1 answer
479 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 ...
Carlo Prato's user avatar
0 votes
2 answers
53 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 ...
Lauren840's user avatar
2 votes
1 answer
198 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 ...
BCConnor's user avatar
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 ...
Davideg's user avatar
  • 119
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 ...
coder2020's user avatar
2 votes
2 answers
331 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 ...
maaattes's user avatar
  • 157
1 vote
1 answer
490 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 ...
Anna3anana's user avatar
2 votes
2 answers
100 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 +...
Tim Makins's user avatar
1 vote
1 answer
117 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 ...
Anna3anana's user avatar
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 ...
Anna3anana's user avatar
0 votes
2 answers
598 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....
Dave Owens's user avatar
0 votes
0 answers
141 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....
TDurden's user avatar
  • 11
1 vote
1 answer
78 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 ...
Anna3anana's user avatar
0 votes
0 answers
120 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 ...
TDurden's user avatar
  • 11
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 ...
Adarkas2302's user avatar
1 vote
1 answer
401 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 ...
tats's user avatar
  • 21
1 vote
0 answers
256 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 ...
Labed Hichem's user avatar
1 vote
0 answers
284 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 ...
k r harsha's user avatar
0 votes
1 answer
126 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 ...
Ramesh's user avatar
  • 11
0 votes
0 answers
761 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 ...
Ando's user avatar
  • 103
1 vote
3 answers
591 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() =...
ajayel's user avatar
  • 413
1 vote
1 answer
288 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 ...
Betti's user avatar
  • 11
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 ...
Rohit's user avatar
  • 21
2 votes
1 answer
260 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, ...
Barbarossa's user avatar
  • 5,787
0 votes
2 answers
280 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 ...
Barbarossa's user avatar
  • 5,787
1 vote
0 answers
138 views

AddIn button disabled in Data View but enabled in Layout View

VB.NET Addin for ArcMap 10.3 may be causing my Table of Contents to constantly refresh. I have a custom toolbar with a few buttons. I want all of the buttons to be disabled when in Data View and only ...
Mattropolis's user avatar
  • 1,649
1 vote
0 answers
490 views

WMTS request with brutile and sharp map return wrong parameter

I'm using brutile and sharpmap to send wmts request and show maps. here is my code: Public Shared Function Create() As ITileSource Dim uri As New Uri("http://91.98.30.14:8080/geoserver/gwc/...
Ehsan Zand's user avatar
3 votes
1 answer
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: ...
Ehsan Zand's user avatar
1 vote
1 answer
504 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 = "{...
user3379482's user avatar
4 votes
1 answer
199 views

ArcObjects add multiple inputs to GeoProcessor

I am trying to send multiples input features to the Geoprocessing.IGeoProcessor (to do an Intersect). I am doing this because I can't add the layer path since one of them is from ArcSDE. The example ...
Math's user avatar
  • 405
1 vote
1 answer
242 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 ...
webrider43's user avatar
2 votes
1 answer
1k views

ProjNet Datum Transforms from EPSG:3785 to WGS84 y-error

I'm trying to write a method (in VB.NET) to transform datum from EPSG:3785 to WGS84. I'm currently making use of ProjNet in my solution so I used it to perform this transformation. I thought ...
Karl Morosiuk's user avatar
0 votes
1 answer
490 views

Looking for vb.net code to read and show attributetable fileld alias names in arcgis

have anybody codesnippets or complete code in vb.net to read and show the alias fieldnames of an attribute table of an shapefile in arcgis? To open the Shapefile, I have the following code: Public ...
frama's user avatar
  • 9
1 vote
0 answers
5k views

QGIS with c# or vb.net

Can I add QGIS as a Plugin in .net application and access it using c# or vb.net? As I can see QGIS plugins are consumed using C++ only.
khaled Ezzat's user avatar
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 ...
webrider43's user avatar
2 votes
1 answer
721 views

Highlighting Feature From Selection Set using ArcObjects?

Is there a way in ArcObjects 10.4 that I can highlight a specific feature from a selection set. I'd like to give visual feedback to my users when they are highlighting a feature in my form. I want ...
Dakota Hoch's user avatar
3 votes
1 answer
442 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 ...
Jakub Sisak GeoGraphics's user avatar
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 ...
mike's user avatar
  • 1
1 vote
1 answer
229 views

setting label expressions causing duplicate labels

kind of new to VB.NET. Trying to set my label expression for a layer. Essentially a user picks a layer from a combo box, hits a button, expression is applied on the layer and then the single shp file ...
unknownid's user avatar
0 votes
1 answer
152 views

VB.net search for address in Geodatabase in ArcObjects

I am try to search for address in Geodatabase in ArcObjects using VB.NET I tray this sample but my database is large so when I use this sample in TextBox1_TextChanged it is slow ! How can I search ...
Sigster's user avatar
  • 109
1 vote
0 answers
67 views

Problem with MyBase when converting old VB.NET toolbar

I'm working on a project to convert and older set of ArcGIS tools that were developed for 9.x using VB.NET. I'm trying to convert them to an Add-In for 10.4. So far, I have created the Add-In and ...
user20486's user avatar
2 votes
1 answer
225 views

Getting reference to existing reference of dockable window in class in ArcMap Addin?

I have an addin for ArcMap 10.2 that has a dockable window. For what it's worth, this dockable window has a DataGridView to which the user can add features for review. These features are added from ...
Turbo's user avatar
  • 581
0 votes
1 answer
164 views

Hardwire definition query on layers in mxd VB.net

I am creating a tool that applies definition query to certain layers of the mxd. The user clicks the button and it should hardwire the definition query into the layer. This is useful if there are many ...
Daz's user avatar
  • 345
2 votes
1 answer
309 views

Arcobjects Assign projection transformation to layer file in VB.net

I want to be able to transform a layer from WGS1984 to OSGB1936. I created a tool that extracts layers from several folders on our company network folders, using check boxes that user clicks. One of ...
Daz's user avatar
  • 345
2 votes
2 answers
408 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 ...
Daz's user avatar
  • 345
2 votes
1 answer
440 views

x, y to decimal degrees on mouse click in ArcObjects?

I am converting an old VBA code I used to use in ArcMap 9.2, into VB.NET for ArcMap 10. It should extract x, y coordinates from OSGB and converts to decimal degrees while copying to clipboard. I ...
Daz's user avatar
  • 345
2 votes
1 answer
711 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 ...
Daz's user avatar
  • 345
1 vote
1 answer
1k views

VB.net Converting UTM to Lat/Lon (State Plane with WKID) - ArcGis

I have looked at many libraries. Many simply don't work, others are very poorly documented. I have a very long list of X/Y coordinates (US FT) and an associated WKID. I am trying to convert that to ...
stevo22's user avatar
  • 13
1 vote
0 answers
36 views

IRasterLayerExport3 doesn't save raster until ArcMap closes [closed]

I'm trying to export raster using IRasterLayerExport3, but it saves raster file only after closing ArcMap. It seams that IRasterLayerExport3 creates placeholders for raster (empty file - 3kb), and it ...
Laimonas Liskauskas's user avatar

1
2 3 4 5