ArcGIS Engine is for embedding GIS data, maps and geoprocessing into desktop and mobile applications.
12
votes
0answers
306 views
Hyperlink tool use in ArcEngine
I'm having some difficulties using the hyperlink tool (ControlsMapHyperlinkTool) in ArcEngine. Does anyone have any experience with it?
It looks like it behaves correctly except that every time a ...
5
votes
0answers
114 views
How can I control what is passed to the OnCreate() method when a command or tool is initialized?
In an ArcEngine application can I control what is passed to the OnCreate() method when a command or tool is initialized?
(I am using a synchronization object because I have both a map and a ...
3
votes
0answers
194 views
Print axMapControl contents with preview
I have a map with many feature layers on top of it. I would like to be able to print the map and feature layers either scaling it to fit a certain page size or printing it to actual scale thus ...
3
votes
0answers
204 views
IUniqueValueRenderer on Polyline and Points made my Features all invisible
I am currently using IUnique value renderer like this:
foreach (string nodeType in nodes)
yield return new KeyValuePair<string, ISymbol>(nodeType, CreateNewSymbol() );
public static ...
3
votes
0answers
206 views
ArcObjects - WFS:
Hy,
has anybody an example concerning accessing data from a WFS server by using the DataInteropability in ArcObjects?
I'm getting the right field definistion, but don't know how to read the data.
...
3
votes
0answers
1k views
How to set margin on PageLayout in ArcGIS Engine?
When we create a PageLayout from the A4 Landscape template and print the layout on a pinter with A4 Landscape paper we get four pages instead of one. We are using the IPage.PageToPrinterMapping = ...
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 ...
2
votes
0answers
49 views
Unable to retrieve custom extension state from a document in ArcEngine
I created a custom extension in ArcMap 10.1 which implements the IPersistVariant interface. State related to the extension features is persisted and retrieved via the Load and Save methods. ...
2
votes
0answers
63 views
Migration Issue With ArcGIS 10 in ExportOperationClass
I am migrating my Application built in Version 9.3.1 to version 10
In my code I am getting execption:
{"Retrieving the COM class factory for component with CLSID {4147A362-EFC4-11D3-
...
2
votes
0answers
117 views
How can I free esriControls.ControlsSelectTool? Or is it leaking memory?
In my application I have isues with unfreed memory. After several tries I broke down the problem to a simplified WPF project. It opens a simple System.Windows.Window with a Button, which starts the ...
2
votes
0answers
360 views
Make a Join Permanent
So I've been using a dynamic join (IRelQueryTable to attach a SQL query to a feature layer) but now I want to make a permanent (or semi-permanent) join. How do you go about doing this in ArcEngine ...
2
votes
0answers
95 views
Remove Layer Labels
public void LabelOff( IActiveView view, IGeoFeatureLayer geoFeatureLayer ) {
IAnnotateLayerPropertiesCollection annotationProperties =
geoFeatureLayer.AnnotationProperties;
...
2
votes
0answers
245 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 ...
2
votes
0answers
193 views
How to turn off tool tip for the Identify button?
When using the esriControls.ControlsMapIdentifyTool tool, the (i) button, whenever you click it, it says "Click on or drag a box over a feature and place on the map where you want to identify" in a ...
2
votes
0answers
261 views
How to Create Custom ZoomIn Button that is Windows Tools Button with Custom Cursor?
I want to create large zoomin Button without toolbarbutton. I created a 'Zoomin Script' on axMapContorol. It worked is fine but I can't set cursor.
My code is as follows:
IMapControl3 mapControl = ...
1
vote
0answers
61 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()
...
1
vote
0answers
52 views
Creating a custom, local Route Task
I'm trying to replicate something similar to the ArcGIS WPF Runtime SDK (C:\ArcGIS\WPF1.0\SDK\Samples\Sample Application\Sample Application.exe) "Routing with Barriers Online" sample with two major ...
1
vote
0answers
31 views
IMapControlEvents2.OnKeyDown not hit on Alt + key
I want to catch the Alt key plus an addionally hit key in the MapControl's OnKeyDown. I did already set MapControl's KeyIntercept to esriKeyIntercept.esriKeyInterceptAlt but the event handler doesn't ...
1
vote
0answers
71 views
How to show size/length of sketch while creating new feature?
While adding a new feature to a feature layer I like to show the size (area)/length of the sketch so that the user has a better feedback while placing the vertexes.
So I hook up MapControl's ...
1
vote
0answers
53 views
Why are the special fonts in a .mxd-project not used/found?
I have a .mxd-project file from a customer which uses special fonts (TrueType). I installed these fonts in Windows but my application (mostly a MapControl) doesn't use these fonts for displaying. I ...
1
vote
0answers
47 views
Is there a way to reshape graphics in ArcEngine?
Our GIS-tool should allow the customer to reshape self drawn (polygon) graphic elements, like one can reshape features in edit mode with the Editor.
Is it possible to reshape graphic elements?
If ...
1
vote
0answers
29 views
Dark Lines in ToolbarMenu
When I do this:
// toolsView is the ToolbarControl
IToolbarMenu2 toolbarMenu = new ToolbarMenuClass();
toolbarMenu.Caption = "Top";
toolbarMenu.AddItem( new NewDocumentCommand( synchronizer ), 0, 0, ...
1
vote
0answers
121 views
Table not found ConvertFeatureClass how to project?
I get a Table [Streets] not found when I try to convert a shapefile to a geodatabase.
I'm thinking I'll try setting the spatial reference like in this post,
...
1
vote
0answers
96 views
Set Numeric Format for Class Breaks Labels?
Why doesn't this code change the numeric format of the labels generated when I build this renderer? When I execute the set_Break() this nnumeric format is correctly set in the renderer but I still get ...
1
vote
0answers
89 views
How can I interact with ArcObjects from a windows service?
How can I interact with ArcObjects from a windows service? It appears that I can't work with an AxMapControl object from a console or service, because it complains about the activeX state. How does ...
1
vote
0answers
86 views
What does SetHistogramData do?
I run the following code:
IClassify classify = new NaturalBreaksClass();
ITableHistogram tableHistogram = new BasicTableHistogramClass();
IBasicHistogram basicHistogram = tableHistogram as ...
1
vote
0answers
178 views
UniqueValueRenderer and ClassBreaksRenderer configuration
So I can create one of these renderers based on parameters I let the user set. Some parameter combinations either create invalid conditions or no conditions at all - missing data, too many breaks or ...
1
vote
0answers
102 views
Annotation and Renderer Interaction
I have code that creates either a UniqueValueRenderer or a ClassBreaksRenderer and applies it. I also have code that uses AnnotateLayerProperties to set labels.
When I create a renderer and then an ...
1
vote
0answers
49 views
Strange Behavior for TOCControl PopupMenu
The sample "TOCControlContextMenu" demonstrates how to display a context menu from the AxTOCControl. When I run this sample and right-click on the TOC control the context menu pops up and remains ...
1
vote
0answers
69 views
Compound Key to Relationship
If tableField = "Process ID" and layerField = "PID" then this works:
IRelationshipClass relationshipClass =
memoryRelationshipFactory.Open(
"Join",
table as IObjectClass,
tableField,
...
1
vote
0answers
60 views
QueryClass samples
Anyone have sample code on the actual use of a QueryClass. I can read the help and figure out how to make one but there is no code demonstrating the usage of a QueryClass.
1
vote
0answers
227 views
Convert FeatureLayerClass to shape file error : Item not found in collection
so following this link
http://edndoc.esri.com/arcobjects/9.2/NET/91e3e8a0-d355-43d2-a201-0a8ceb719334.htm
I am able to convert my featureLayer into a shape file and export it.
However, some how for ...
1
vote
0answers
222 views
Spatial Reference and Area/Length Attributes relationship
I currently allow users to add a shape file in. From the shape file, allow the user to generate a new layer base on the polygons from the shape file's polygon they imported.
Generating the new ...
1
vote
0answers
263 views
Argument is not a com object : null
With ArcEngine 9.3.1 in java (but I suppose, it's the same in .NET), I'm developping an application which loads a mxd file. This file contains about 20 layers with shapefile, JPG's, TIFF's files. This ...
1
vote
0answers
83 views
AddData tool stop working after Interoperability connection has been used?
Bug in ArcGIS Engine? Has anyone seen this behavior? We get an exception from our ArcGIS Engine test projects after we had been testing the Interoperability connection in ArcEditor.
We had to enable ...
0
votes
0answers
27 views
add data to toccontrol
When i open MXD file, it isn't add to TOCControl, but it is dispalyed. How solve it or it is imposible?
Code from standart ArcEngine MapControll APP
private void menuOpenDoc_Click(object sender, ...
0
votes
0answers
28 views
Create Layer including drawing objects
I draw some polylines on map. How create new layer with this features?
Map and Polylines must be in different layers.
public void DrawPolylineUsingInputGeometry(IActiveView activeView,
...
0
votes
0answers
36 views
ArcEngine crashes on IProjectedCoordinateSystemEdit.Define
I need to create a projected coordinate system in my ArcEngine (Version 10.0) application from this .prj-file. Since I don't want to load from a file (with ...
0
votes
0answers
28 views
creating hyperlink form by arcengine into c#
I want to hyperlink three files to one point from a point layer,when I added this layer into Axmapcontroller I need to create a form to show a list of three files in order to choose by user,
I could ...
0
votes
0answers
455 views
Retrieving the COM class factory for component with CLSID
I am migrating my Application built in Version 9.3.1 to version 10 In my code I am getting the exception:
Retrieving the COM class factory for component with CLSID {4147A362-EFC4-11D3-
...
0
votes
0answers
115 views
How to delete an image from axMapControl component?
I have a problem in arcgis c#. I am using Arcgis axMapControl component and adding image to it but I can not delete image when wanted to delete from axMapControl component... I have get a exception ...
0
votes
0answers
107 views
How to Reclassify Raster using ArcGIS Engine?
i'd like to create an application that reclass a raster . user enter his/her range of class in a listbox . the application calculate minimum and maximum of band value . the problem is that i couldn't ...
0
votes
0answers
76 views
Why is the layer list in the Snapping Settings dialog empty?
I am using ArcGIS Engine and would like to display snap settings to the user. I'm using the Snapping Settings dialog (esriControls.ControlsEditingSnappingCommand) to provide the ability to choose ...
0
votes
0answers
145 views
How to wrap ArcEngine Sketch Control?
I've created a small API to wrap ArcEngine controls so I can customize them (my own toolbars, my icons, etc) and I'm having problem with the ControlsEditingSketchToolClass control.
I basically have a ...
0
votes
0answers
47 views
hDC of DynamicDisplay always 0
When I try to access the hDC of my dynamic layer the result is always 0. Is there a way to get a non zero hDC from a layer that inherits BaseDynamicLayer?
public class BalloonCalloutLayer : ...