Questions tagged [vb.net]
An object-oriented programming language from Microsoft. It is the .NET version of the Visual Basic (VB) programming language.
247
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 +...
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 ...
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 ...
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....
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....
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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() =...
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 ...
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 ...
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, ...
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 ...
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 ...
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/...
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:
...
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 = "{...
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 ...
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 ...
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 ...
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 ...
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.
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...