2
votes
1answer
14 views

Access CommandItems programmatically with ArcObjects in ArcGIS Engine application

I'd like to programmatically execute a command in my ArcGIS Engine application with ArcObjects. I know in Desktop I would do it like this: ESRI.ArcGIS.Framework.ICommandBars commandBars = ...
0
votes
0answers
65 views

Converting VB code to C# for coverting Polyline to polygon

It is a while that I am stuck at converting polylines to polygon and I couldent find any solutions into it.I have tried some diffrent methods like using ...
0
votes
0answers
27 views

Georeferencing Tools in ArcGIS Engine 10.1

I'm new with ArcGIS or even GIS it self. My question might be a newbie question but I need help on building a Georeferencing tool set like the one in available ArcMap. I found that it is not available ...
0
votes
1answer
49 views

How to update/delete data from a datagridview?

I wanna be able to update/delete data from a datagridview, and when I do that of course the data in my PostgreSQL database should be edited too. So I've thought about giving the user the ability to ...
0
votes
0answers
24 views

Zoom to selected feature reducing MapFramesize using ArcGIS Engine and C#?

I am trying use the the following code for zooming to a selected feature using ArcEngine 10.2.1 and c#. It is performing, but it is reducing the Mapframe to the feature size. Which was not happening ...
0
votes
0answers
53 views

ArcGIS Engine, How to change IMarkerSymbol size in runtime?

I'm using ArcGIS Engine 10 with C# Winforms to visualize some elements on a globe control. All elements are of type IMarkerElement which have symbol of type IMarkerSymbol. Now I want to add two ...
0
votes
0answers
89 views

GPS tracking in ArcGIS Engine application

Is there an ArcGIS api for ArcObjects /.Net that I can use to build a function in an ArcGIS Engine 10 application that allows me to track a GPS signal and display the movement plus lets me export and ...
2
votes
1answer
146 views

How to get cell size of raster shown in ArcMap using ArcGIS Engine and C#?

As the figure shows above, after classifying the raster, we can get the cell size by opening the raster Properties to its Source tab, and we can calculate the area by mutiplying the cell count and ...
0
votes
0answers
53 views

How to convert raster to polygon that I classify in C# ArcGIS engine?

by " IMultivariateOp.MLClassify" method,I just can classify the raster into many classes,but how to convert each of them to polygons,and give them properties like names? I need some code in C# in ...
1
vote
1answer
81 views

How do I perform a raster overlay analysis in ArcObjects?

Using the "IMultivariateOp.MLClassify" Method, it will create a field call "Count",which can be used for calculating area, as shown in the figure below: But now I want to calculate the increase ...
-1
votes
1answer
166 views

ArcGIS Engine--load mxd file to map control or pagelayout control?

When load a mxd file using ArcGis engine,how to automatically detect whether it's saved in mapcontrol or pagelayout control?Thanks!
1
vote
0answers
158 views

How to implement Google Earth style zoom in/out and pan animation in ArcGIS Engine applications?

I am developing an application using ArcGIS Engine 10 and the C# language. I wish to add some more animation capabilities into my application. In other words, I want to add animation to zoom in, ...
1
vote
0answers
123 views

Why use C# rather than Java API of ArcGIS Engine (or vice versa)?

I'm going to lead a development of an ArcGIS Engine application and facing the choice mentioned in the title. We have all licenses to develop our application in C#, so Microsoft's licences are out of ...
0
votes
0answers
104 views

Scrollbars not visible in InfoWindow

I am having problems getting the scrollbars to show in my InfoWindow. Code is below. Any help would be appreciated. XAML: <DataTemplate x:Key="MyFeatureLayerInfoWindowTemplate"> ...
0
votes
0answers
83 views

How to get The character spacing from a ITextElement arcgis engine 9.3 C#

i have a problem.I can set character spacing to a IElement as ITexElement like : TextSymbolClass pTextSymbol = new TextSymbolClass(); pTextSymbol.CharacterSpacing = 10 ; //etc ...
4
votes
2answers
437 views

What is needed to develop an ArcGIS application? (C#?)

I am trying to fully understand the genius that is ArcGIS. I want to develop a piece of software that uses the engine. This application needs to import user data (GeoTIFF, etc) and allow users to put ...
2
votes
1answer
174 views

Error in Symbol Selector Sample

This question can seems to be n00b, but really im stuck at running this Arcengine Sample code, then i got this error i'm looking for any working example of Symbol Selector. i'm working on XP SP3, ...
1
vote
2answers
75 views

How to edit the position of a banner text's pointer?

I have build an ITool where one can add text (ITextElement) to the map. The user can choose the symbol from the ESRI symbology. There one can choose a symbol called "Banner Text" which looks like this ...
2
votes
4answers
523 views

Why does ITopologicalOperator2 .ConstructUnion produce a somehow invalid polygon?

I try to add a single buffer around the shape of the selected features. So I step through each selected feature and add it's shape to a GeometryBag. With ITopologicalOperator2.ConstructUnion I create ...
1
vote
0answers
58 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
119 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 ...
2
votes
0answers
221 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 ...
0
votes
1answer
189 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
1answer
373 views

how to list table rows of a layer in a listbox?

I'm new in using c# and Arcengine . i would like to list table rows of a feature in a Listbox like select by attribute in ArcGIS such that when i click a button, table rows list in a listbox . i use ...
1
vote
1answer
1k views

How do I add TIFF files to one layer/raster catalog?

We have several TIFF images (already tagged with position information) we want to load as a single layer into the map. It's the first time I dig into this raster/topology thing, but at least I managed ...
1
vote
0answers
71 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
1answer
217 views

How to print semi-transparent elements?

I highlight some features with a semi transparent color via an ILayerExtensionDraw. When I print the ActiveView of the PageLayoutControl with IPrintAndExport the highlightning is not on the printout. ...
1
vote
0answers
71 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
2answers
270 views

How to save and load elements to/from a layer in correct z-order?

I copy elements from one layer to another like this: IGraphicsContainer container = _mapControl.Map as IGraphicsContainer; IGraphicsContainerSelect containerSelect = container as ...
0
votes
1answer
135 views

how to save layers in combobox

I'd like to develop an app so that user introduce the layers in comboboxes ( layers are slope,aspect,elevation etc) then user use these layers for processing in another form(processing form) and dose ...
1
vote
1answer
316 views

How do i create menu in base toolbar?

i'd like to create menus in a base toolbar like arcHdro tools or spatial analyst . how can i create menus with arcengine 9.3 in my toolbar ( the toolbar shows in arcmap )?
6
votes
3answers
865 views

How is a “Map Package” created programmatically?

Given a loaded map document (mxd) how do I find the geodatabase objects related to the contained layers? I want to copy them with the map document so the map can be moved onto each user's local ...
0
votes
1answer
394 views

how to calculate polygon area in arcengine

i'm new to use Arcengine 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 write ...
9
votes
1answer
1k views

What is the best way of refreshing the view after drawing graphics?

I draw a polygon on button click to highlight a feature. Then I need to refresh the ActiveView to show the new polygon. This lines do work: ...
1
vote
1answer
420 views

Get all features in extent not working correctly in PageLayoutControl

I want to get all features in the current extent of my PageLayoutControl's ActiveView. I got it working for a MapControl as described here. With my PageLayoutControl it seems that I don't get the ...
1
vote
0answers
173 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, ...
0
votes
1answer
337 views

FeatureClassNameClass.Open() Error, any ideas?

This code works fine on my Windows 7 64 bit machine, but fails on the target machine, Windows Server Standard SP2 64 bit. public List<string> GetShapeFileFieldNames(string shapeFileDirectory, ...
1
vote
2answers
625 views

Is it possible to create a Balloon Callout with a leader?

Is it possible to create a Balloon Callout with a leader? I am using the following code: public void DrawText( IActiveView view, BalloonParms balloonParms ) { ITextElement textElement = new ...
3
votes
1answer
2k views

Label Selected Features Only

OK, I've been labeling using the LabelEngine and simple expressions and it is working for every layer. I want to offer the option of labeling only selected features and thought it would be this ...
4
votes
1answer
546 views

Need help with Merge GeoProcess task in ArcEngine (C#)

Help! 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 ...
1
vote
1answer
104 views

Merge column data with a IFeatureClass

I have a points shapefile with City, State, Zip columns. I want to merge the column data together into a new column containing: City-State-Zip (with the hyphen). Can I merge column data like this ...
2
votes
2answers
744 views

Save a MapControl map to an MXD

I used to know how to do this, but I must have lost the code. I tried this: IMxdContents mxdcontents = mapControl.Map as IMxdContents; IMapDocument doc = new MapDocumentClass(); ...
3
votes
0answers
287 views

Print axMapControl contents with preview [closed]

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
1answer
354 views

Select Feature shows outline not filled

public static void SelectBy(this IActiveView view, ILayer2 targetLayer, string filterClause, esriSelectionResultEnum selectionResult ) { IFeatureSelection featureSelection = targetLayer as ...
0
votes
1answer
171 views

Setting the Color of a TextSymbol

public void DrawText( IActiveView view, string text, string fontName, int fontColor, float fontSize, IPoint point ) { ITextSymbol textSymbol = new TextSymbol(); stdole.IFontDisp ...
1
vote
0answers
126 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
244 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 ...
6
votes
1answer
442 views

Clearing map cache - ArcGIS Engine

Is there a programmatic way to clear the cache of a map in ArcGIS Engine 10.0? It is apparent that there is some caching scheme operating under the covers, and I'd like to clear all of its cached ...
1
vote
0answers
111 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 ...
4
votes
1answer
230 views

Closing MeasureTool Window

I'm activating the built in ArcGIS measure tool using the following code: ControlsMapMeasureTool measureTool = new ControlsMapMeasureToolClass(); measureTool.OnCreate(_axMapControl.Object); // set ...