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
121 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 ...
user avatar
0 votes
2 answers
40 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 ...
user avatar
2 votes
1 answer
121 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 ...
user avatar
1 vote
1 answer
74 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 ...
user avatar
  • 119
0 votes
1 answer
36 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 ...
user avatar
2 votes
2 answers
199 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 ...
user avatar
  • 157
1 vote
1 answer
255 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 ...
user avatar
2 votes
2 answers
62 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 +...
user avatar
1 vote
1 answer
92 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 ...
user avatar
1 vote
1 answer
72 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 ...
user avatar
0 votes
2 answers
445 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....
user avatar
0 votes
0 answers
127 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....
user avatar
  • 11
1 vote
1 answer
69 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 ...
user avatar
0 votes
0 answers
90 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 ...
user avatar
  • 11
3 votes
3 answers
805 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 ...
user avatar
1 vote
1 answer
342 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 ...
user avatar
  • 21
1 vote
0 answers
198 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 ...
user avatar
1 vote
0 answers
257 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 ...
user avatar
0 votes
1 answer
100 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 ...
user avatar
  • 11
0 votes
0 answers
602 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 ...
user avatar
  • 103
1 vote
3 answers
480 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() =...
user avatar
  • 383
1 vote
1 answer
238 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 ...
user avatar
  • 11
0 votes
1 answer
80 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 ...
user avatar
  • 21
2 votes
1 answer
219 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, ...
user avatar
  • 5,727
0 votes
2 answers
250 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 ...
user avatar
  • 5,727
1 vote
0 answers
129 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 ...
user avatar
  • 1,619
1 vote
0 answers
441 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/...
user avatar
2 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: ...
user avatar
1 vote
1 answer
464 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 = "{...
user avatar
4 votes
1 answer
187 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 ...
user avatar
  • 385
1 vote
1 answer
229 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 ...
user avatar
1 vote
1 answer
848 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 ...
user avatar
  • 31
0 votes
1 answer
444 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 ...
user avatar
  • 9
1 vote
0 answers
4k 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.
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 ...
user avatar
2 votes
1 answer
670 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 ...
user avatar
3 votes
1 answer
431 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 ...
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 ...
user avatar
  • 1
1 vote
1 answer
221 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 ...
user avatar
0 votes
1 answer
132 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 ...
user avatar
  • 109
1 vote
0 answers
56 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 ...
user avatar
2 votes
1 answer
217 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 ...
user avatar
  • 581
0 votes
1 answer
159 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 ...
user avatar
  • 345
2 votes
1 answer
283 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 ...
user avatar
  • 345
2 votes
2 answers
390 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 ...
user avatar
  • 345
2 votes
1 answer
425 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 ...
user avatar
  • 345
2 votes
1 answer
671 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 ...
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 ...
user avatar
  • 13
1 vote
0 answers
35 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 ...
user avatar
1 vote
1 answer
420 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 ...
user avatar

1
2 3 4 5