Tagged Questions
1
vote
0answers
60 views
Error Input FeatureClass Arcgis 10 VB.net And Geoprocessing
I have a problem when i execute GeoProcessing in ArcEngine 10 with VB.net
i had create the toolbox : Models.tbx
and Model Process : disolveRoute with 2 parameters
My Function is :
Sub diso()
...
2
votes
0answers
42 views
Problem when executing Dissolve method in ArcEngine
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
2answers
197 views
Data View/Layout View Changes - ArcMap 10
I have code that will hide a certain set of points from the view using an ExclusionSet, and then switch to layout view for printing.
I noticed in my 9.1 version, when after I am done printing, and I ...
1
vote
1answer
88 views
Don't move Layout
I'm doing a vb.net button to run in ARCGIS. 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 a way ...
0
votes
1answer
67 views
Activate layers that are in a checkbox list
I'm trying to do a code to activate layers that are in a checkbox list, the code that I'm trying to use is this:
MxDoc = My.ArcMap.Document
Maps = MxDoc.Maps
If ...
3
votes
1answer
169 views
How to programmatically clear all layers from data frame?
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 I don't have any idea on how to delete/clear them.
Any suggestions?
...
3
votes
1answer
70 views
How to use IDatabaseCompact.Compact() on an used IWorkspace, without permission denied
I am writting an ArcMap-AddIn with vb.net. I get an error when trying to compact my IWorkspace(mdb), the error is:
COMException
You tried to open a database, which was already opened by the ...
4
votes
1answer
283 views
Refresh Currently Open ArcMap Attribute Table using ArcObjects
I have written an ArcMap Addin (ArcMap 10.0) that allows a user to perform a join between an in-memory table and a feature class (feature layer) added to the TOC. I want the attribute table of the ...
1
vote
0answers
104 views
Map Algebra in VB.NET Add-In Tool
I'm trying to run a map algebra expression in a vb.net add-in, and can't seem to get it to work. It's a roving window that interpolates noData areas in a DEM. The expression works in the Python ...
2
votes
0answers
21 views
How to implement VisibleBoundsUpdatedEventHandler
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 ...
2
votes
1answer
276 views
ArcMap 10 Layout View: search for elements and delete
I've to regenerate a single layout with data from each point feature. So, I wrote a VB.NET routine to clean the layout, searching for text element, selecting it and deleting it.
Well, the routine ...
1
vote
1answer
1k 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 ...
3
votes
3answers
272 views
Enable Add-In Button if One Feature is Selected from Specific Layer
I am trying to enable an add-in button on my toolbar if only one feature is selected from a specifc Layer. For example, when ArMap loads, the button should be disabled. If the user selects one feature ...
1
vote
1answer
137 views
ArcGIS - ICommandBars exception
Testing my VB.NET 2010 app in ArcMap an exception occurs when ICommandBars is instantiated.
' zoom to selected
Dim mxApp As ESRI.ArcGIS.Framework.IApplication
Dim numUID As UID = New ...
0
votes
1answer
372 views
Exception from HRESULT Error - Update Attributes
I have a form that allows users to update attribute information for selected features...but I'm recieving the error: "Exception from HRESULT: 0x80041051" when it tries to update the data. I'm using ...
10
votes
4answers
911 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 ...
11
votes
2answers
1k views
How can I create weighted Thiessen polygons?
I have a point shape file and I create Thiessen (Voronoi) polygons programmatically using this scripting syntax:
CreateThiessenPolygons_analysis (in_features, out_feature_class, fields_to_copy)
...
3
votes
1answer
364 views
Unable to create temporary GeoDatasets in g_g_g folders
I am converting a VBA macro that was written for ArcGIS 9.3 to a VB.NET project using the ArcGIS 10.0 .NET SDK. I am getting the following error whenever the code tries to create a temporary ...
4
votes
1answer
753 views
Filtering a raster by pixel cluster size in ArcGIS?
I have a raster image representing islands in a river (see image) created using the following process:
1) Clip a water surface DEM and watershed DEM by a bounding polygon (waters' edge).
2) Subtract ...
0
votes
1answer
301 views
arcgis server 10, vb.net, IMathOp problem
i am using arcgis server 10 and visual studio with vb.net to build web mapping application. inside my code i have the following line:
Dim RasterCal As ESRI.ArcGIS.SpatialAnalyst.IMathOp = _
New ...
4
votes
1answer
1k 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 = ...
2
votes
1answer
253 views
arcgis server 10, vb.net add reference problems
i am using 'arcgis server 10' and 'visual web developer 2010 express'. now, i opened a 'web mapping application' then wanted to 'add a reference' to 'esri arcmap object library 10.0' it says:
A ...
1
vote
0answers
195 views
arcgis server 10, vb.net, adding dynamic data
i am using arcgis server 10, with visual web developer 2010 express edition. i downloaded "ArcGIS_AddDynamicData_VBNet\Default_ADF.aspx" project form ArcGIS Add dynamic data for ArcGIS Server 10. ...
2
votes
5answers
1k views
Programmatically calculating the length of all polyline features in a featureclass
I've come across this issue a few times and have not yet found an agreed upon solution on any forum.
Simply put, I have a featureclass containing many polyline features. I would like to calculate the ...
2
votes
1answer
406 views
Adding an ILayer to IMap in Arcgis Server 10
I wanted to add ILayer to IMap, i think it has been added but problem is that it does not display it on the website.
I am running arcgis server 10, using visual web developer 2010 express edition ...
1
vote
0answers
141 views
arcgis server 10, vb.net, non pooled service, web adf
i am running arcgis server 10. i created a A.MXD file, then started arcgis server and successfully added non-pooled service using A.MXD. i also installed visual web developer 2010 express and created ...
2
votes
1answer
426 views
arcgis server 10, .net web api samples
i am running arcgis server 10, installed visual web developer express 2010 edition, now wanted to run samples from arcgis.com for .net web api, for example the following one
...
3
votes
4answers
2k views
Sum the values of a single raster and output the value as a number?
I have a floating point raster and have applied a conditional to it in order to only extract the positive values, so there are 'no data' "holes" in the raster. I simply need to sum the values from ...
6
votes
4answers
728 views
Deriving separate polylines from coded points using ArcObjects (Figure inside)
I have a single point featureclass that represents the left and right sides of a landform (the points are coded as either 'right' or 'left'). Visually I can pick out and digitize two lines along these ...
7
votes
4answers
1k 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
2answers
2k views
ArcObjects VB.Net - Looping through Layers from TOC and ListBox
Greetings,
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 ...
3
votes
2answers
694 views
ArcObjects VB.Net - Editing in Geodatabase
Greetings,
I have a script in VB.Net for grabbing values from one feature and assigning them to another. It works fine on shapefiles, but upon importing the same shapefiles into a file geodatabase, I ...
2
votes
1answer
2k views
VBA to VB.NET (Visual Studio 10) Migration - ArcMap Focus
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
0answers
170 views
ArcGIS Desktop 10 - MyBase.UpdateBitmap()
I am changing one icon on my extension toggle toolbar in runtime using:
MyBase.UpdateBitmap(New Bitmap(Me.GetType(), bitmapResourceName))
This works fine but I get a border/highlight around my ...