Questions tagged [arcgis-engine]
ArcGIS Engine is for embedding GIS data, maps and geoprocessing into desktop and mobile applications.
344 questions
0
votes
0
answers
9
views
How to handle GP Tool execution result asynchronously in ArcGIS Engine with Background 64bit
I am using ArcGIS Engine with background 64bit and calling GP tools using the ExecuteAsync event. I want to continue processing the results of the GP tool execution after it finishes. Following the ...
1
vote
1
answer
525
views
If shapefile with geometry esriGeometryPoint is valid is it guaranteed to have non null featureclass?
I have been given a point shapefile but it's feature class is null. I haven't seen this before so I'm wondering if the data is bad or if it's something I need to handle with code.
//I was using this ...
0
votes
1
answer
392
views
Making point move to right or left using ArcObjects?
I want to make a point and the point can move to the right or to the left. To make the point I can handle it , but I can already confused in the movement of the point.
This code for draw point
...
0
votes
0
answers
34
views
Updating about 700000 feature of featureclass using ArcGIS Engine & C# but memory breaks
Why does this code get a memory overflow error for datasets with more than 20k of data?
int nMax = (int)numFIDTo.Value;
int nMin = (int)numFIDFrom.Value;
IStepProgressor ...
0
votes
1
answer
158
views
Installing ArcGIS Engine Runtime via image copy?
We have about 400 ArcGIS Runtime Engine 10.4.1 licences, where we will install on devices for emergency. These devices already up and running and using ArcGIS Engine Runtime 9.3. The time we are going ...
11
votes
4
answers
25k
views
Remove lock on feature class
When i try to delete a feature class , after or during the use of an Arcgis engine app which uses the same feature class i got an error concerning the lock , so i can't get ride of this lock until i ...
3
votes
2
answers
1k
views
How to group layers in ArcEngine 10
I was wondering if there is a way I can code the TOC control so that I can select multiple layers and GROUP them together. So if i uncheck the group, all layers will be unchecked and be invisible.
2
votes
0
answers
792
views
Rendering raster layer from DTED based on height color map
I have a raster layer that was create from DTED file (dt1 specifically), created by the following code:
var rasterLayer = new RasterLayer();
rasterLayer.CreateFromFilePath(dtedFilePath);
The dted ...
1
vote
2
answers
231
views
Understanding and using user provided file structure [closed]
I have at my disposal a folder with data provided to me by a person that knows nothing about GIS. I have the impression that its file structure was generated by some esri desktop product. I have only ...
1
vote
0
answers
484
views
Searching for features added in edit session with QueryFilter only works when using object id or no WhereClause [closed]
I'm getting strange behaviour reading added features from a feature class while within an edit session. The feature class is in a personal geodatabase and is open in the map control in an ArcGIS ...
1
vote
1
answer
417
views
Changing standard button bitmap of tool/command in ArcGIS Engine [closed]
I'd like to use some of the standard 'out of the box' esri tools e.g. Measure Tool in an ArcGIS Engine 10 app, but I'd like to change the default bitmap of the tool button.
Do you have any suggestions?...
4
votes
2
answers
5k
views
Unable to load DLL 'ArcGISVersion.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)
I recently migrated my desktop from ArcGIS 10.1 to 10.3.1 and visual studio from 2010 to 2013. I am now getting a problem trying to run an Engine application. It builds fine but when I try to debug it ...
1
vote
2
answers
3k
views
Selecting and highlighting features using ArcGIS Engine and ArcSDE with C# and .NET [closed]
I have 2 ESRI feature layers on my map; points and polylines. I can select them just fine either by rectangle or polygon. What I am missing is how to highlight (larger size and different color) the ...
1
vote
0
answers
62
views
More than one ArcEngine GeoProcessor run at a time (concurrent)
I'm trying to run more than one AddRastersToMosaicDataset geoprocessor at the same from a test .NET 4.8 C# console application. So far I tried the below approach running in threads but it seems as if ...
3
votes
2
answers
1k
views
Make a straight line in ArcEngine 10 (Polyline but with ONLY start and end)
So I want to allow the user to create a connection between 2 polygons on my map. So it doesn't make sense to allow them to draw polyline with multi points.
Is there a way I can do something like below ...
3
votes
2
answers
432
views
Changing background color of AxTOCControl
I'm having trouble finding a way to change the background color of the AxTOCControl.
Is there a way to do this?
I'm using ArcGIS Engine 10 C# and VS2010.
2
votes
1
answer
503
views
Drawing Rectangle with INewRectangleFeedback?
I´m developing in ArcGIS Engine.
How do I draw a rectangle with INewRectangleFeedback interface?
Here is my code but it does not create the rectangle.
Public Sub mousedownFBRectanglePoly(ByVal px As ...
-1
votes
1
answer
906
views
Calculating polygon area in ArcGIS Engine [closed]
I am new to using ArcGIS Engine 9.3. I would like to create an application to calculate the selected polygon in combobox such that the user click to a button and polygon area saved in dbf .
How can I ...
6
votes
2
answers
3k
views
How to catch when scale is changed in ArcGIS?
We want to update a combobox so that it always shows the correct scale. If the user zooms-in, out or resizes the control hosting the map. What is the best event or events to catch and use in ArcGIS to ...
6
votes
1
answer
1k
views
Are there any good resources on WFS support in ArcGIS?
Are there any good resources on WFS support in ArcGIS?
The only documents I found so far are these: How_to_work_with_WFS_using_ArcGIS_Desktop and Consommer des services/données WFS dans ArcGIS 9.2 But ...
1
vote
1
answer
322
views
arcgis10: export eventlayer (from querylayer) to ArcSDE [closed]
I am not using ArcMap but I am creating a ArcGIS Desktop console app.
I am pulling an external SQL table in as a querylayer. This table has lat & long so I created an eventlayer (or IXYEventSource ...
6
votes
2
answers
1k
views
How to read data from PostGIS in DotNet (VB.Net/C#)
I have stored my data in PostGIS (PostgrSQL). Now I want to read
the data in DotNet ArcEngine Application using VB.NET/C#.
Anyone know how to read the data from PostGIS in .Net?
Regards
0
votes
1
answer
101
views
Adding Basemaps in Map Control using ArcGIS Engine
I am developing a .Net application that is using ArcGIS Engine 10.8. I would like to add programmatically the "Add Basemap" functionality into the application's Map Control.
How can I add ...
0
votes
0
answers
88
views
Getting symbols parameters using ArcObjects
I have FeatureClasses (point, line and polygons) with symbology in cartographic representation. How I can get each symbol's parameters (e.g. for polyline: width, colour, style)?
Dim featureClass As ...
6
votes
3
answers
2k
views
Improving performance when merging features using ArcObjects
I am writing an ArcGIS Engine application that can take a shapefile, and merge a set of polygons together.
Here is the code that I am using to merge the polygons:
private static void mergeFeatures(...
7
votes
1
answer
407
views
Does ArcPy work for Engine or Server the same as Desktop?
I am contemplating a project where there is not going to be access to ArcGIS Desktop and I amwondering if ArcGIS Engine and/or ArcGIS Server install ArcPy and Python?
1
vote
1
answer
181
views
Project Tool without an exisiting Geographic transformation using ArcGIS Pro
I'm trying to insert a layer and in my project and while several other layers have been projected correctly on-the-fly by ArcGIS Pro, the final polygon layer is creating trouble. It slightly misfits ...
5
votes
4
answers
504
views
Creating universal ArcGIS 'Current tool' property?
I have a base tool class which handles 90% of my custom logic, but some tools need to set themselves as the current tool. The operations between ArcGIS Engine's IToolbarControl and ArcGIS Desktop's ...
1
vote
0
answers
22
views
Who can teach me how to reach the StackProfile method in ArcEngine10.2? [closed]
I try my best to write code to get it.
The codes list below, but I think I don't understand these parameters so that I can't run the gp Tool successfully. So I want to consult someone who can tell me ...
3
votes
1
answer
622
views
Setting Up Snapping Environment Snapping Type using ArcObjects
I try to setup snapping environment snapping type by referring to this source (http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//0001000001s1000000) but I can't combine ...
1
vote
1
answer
235
views
Running ArcGIS Engine in Java 7?
Does anyone know if it's possible to run ArcGIS Engine 10.2 in Java 7 ?
Currently in Java 6, I need to use both ArcGIS Engine 10.2 and Java 7 functions in the same standalone program. (I don't talk ...
3
votes
1
answer
1k
views
IElement added to IGraphicsContainer ignores zOrder
I display a balloon callout after casting a axMapControl.Map to a IActiveView and doing this:
pGraphicsContainer = activeView as IGraphicsContainer;
pGraphicsContainer.AddElement(pElement, zOrder);
...
1
vote
0
answers
140
views
Implementing new Snapping in ArcGIS Engine C# Application?
As I can find, there are two kinds of snapping in ArcGIS 10.2.2:
1- Classic snapping.
2- New ArcGIS Snapping, which doesn't have any specific name as I know.
I can't implement the New ArcGIS ...
14
votes
6
answers
6k
views
What are the rules for releasing ArcObjects from memory in .NET?
Do I need to release each object? Is some memory management handled for me?
1
vote
1
answer
1k
views
Using intersect method of ItopologicalOperator gives error 0x80040239? [duplicate]
I would like to intersect a polygon and a polyline to know if the polyline is in the polygon.
The code works but when i do it on more than 100 000 times in a for, there is this error :
System....
3
votes
1
answer
2k
views
Snapping Polygon vertices to Point features using ArcGIS?
I have a set of polygons drawn using an inaccurate GPS PDA. these polygons are sharing nodes.
After post-processing GPS data to get accurate coordinates i have a set of all the nodes, then i have to ...
1
vote
1
answer
367
views
Using ArcGIS Engine with Background Geoprocessing (64 bit)
Could someone suggest how to use ArcGIS Engine Background Geoprocessing (64 bit) in ArcGIS Engine 10.4 ArcObjects console application?
I am using C#, .Net 4.5.2 framework, ArcObjects SDK 10.4 to ...
1
vote
1
answer
47
views
Why feature.shape can't use multipoint type?
IPointCollection pointcollection = new MultipointClass();
p.PutCoords(x.lon, x.lat);
pointcollection.AddPoint(p);
IGeometry geometry = ...
0
votes
1
answer
64
views
Error when using IFeatureCursor to inquire feature
As you can see the other attributes are doing well, but the shape of the feature throw an exception "Shape = "(pFeature).Shape" raises an exception of type "System.Runtime.InteropServices....
8
votes
1
answer
3k
views
Open source GIS engine that is similiar to ArcGIS Engine?
If I was to develop a mapping application to be a standalone windows app, is there an open source GIS engine that is somewhat comparable to ArcGIS Engine?
1
vote
1
answer
78
views
Creating multi-row toolbar in ArcGIS Engine?
I am using ArcGIS Engine 10.1 and Visual Studio 2010
I created a MapControl App,
(New Project>Visual C#> ArcGIS>Extending ArcObjects > MapControl Application)
and added a toolbar
(In MainForm and ...
2
votes
0
answers
208
views
Adding to group layers in loop is slow in ArcGIS Engine?
I am using ArcGIS Engine 10.5.1.
I wanted to ask and see if anyone else has encountered this and or found a work around. I have a loop in c# where I am taking a large set of layer files and adding ...
5
votes
1
answer
1k
views
Using Merge GeoProcess task in ArcGIS Engine with C#?
Having the hardest time getting the correct syntax when adding layers as gp parameters to call the Merge_management GeoProcessing Task. Below is just one of MANY, MANY ways I have tried with no luck. ...
2
votes
1
answer
493
views
How to Remove Decimal Points From Measured Grid Label C#
I'm creating a map layout with a measured grid using visual studio and ArcGIS Engine 10.4. I was able to change all the properties for the grid label (color, font and font size), except for the part ...
0
votes
1
answer
161
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 ...
3
votes
1
answer
1k
views
Executing Dissolve method in ArcGIS Engine?
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 ...
3
votes
1
answer
4k
views
"Geometry cannot have Z values" exception in ArcGIS Engine
I'm trying to put a list of point features (selected points) into a new FeatureClass. but when I add them to my FeatureClass I get the "Geometry cannot have Z values." exception on the line "buff....
1
vote
0
answers
64
views
Displaying NorthArrow on ArcObjects axSceneControl?
I have standalone application (ArcObjects C# 10.3) uses axSceneControl.
How to display on the scene NorthArrow or Directional Arrow or something like that?
I found an example for NorthArrow http://...
1
vote
0
answers
82
views
ArcGIS Elevation and Z Coordinate
I have standalone application (ArcObjects C# 10.3) uses axSceneControl, I'm trying to get a mouse click point:
private void M_axSceneControl_MouseDown(object sender, ...
3
votes
0
answers
136
views
Using Spatial Analyst Classification in ArcGIS Engine? [closed]
I tend to use ML classification of Spatial Analyst ToolBox in ArcGIS Engine, I wrote this sample code:
ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop);
IAoInitialize ...