ArcGIS Engine is for embedding GIS data, maps and geoprocessing into desktop and mobile applications.

learn more… | top users | synonyms (1)

1
vote
0answers
91 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 ...
4
votes
3answers
442 views

How to use ITrackCancel to escape IRubberBand track?

I have a BaseTool for AX_MapControl and AX_PageLayoutControl that allows to draw a polyline via IRubberBand. But once the rubberband is started, you can't cancel it e.g. by hitting escape. I found ...
-2
votes
1answer
266 views

I have a shapefile containing three types of polylines, how can I color each type with different colors? [closed]

I have a shapefile containing three types of polylines, how can I color each type with different colors ?
7
votes
1answer
1k 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?
2
votes
1answer
84 views

Does ArcEditor use ArcEngine?

If I use ESRI ArcEditor / ArcView / ArcInfo is it using ESRI ArcEngine under the hood?? I think the answer is no, but please enlighten me.
7
votes
2answers
739 views

Is it a bad idea to hold references to ArcObjects inside business classes?

According to best practices is it a bad idea to cache features and geometries inside business objects? If it is bad, what is the alternative way? References to features may be replaced with their ...
2
votes
1answer
381 views

How to use multiple graphics layers in ArcEngine?

My organization is working on an ArcEngine application that displays a GPS cursor for the user's current position. We are using custom-made GPS code since ESRI's is buggy in ArcGIS 10. Whenever the ...
1
vote
2answers
334 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 ...
1
vote
2answers
2k views

Select and highlight features

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 ...
2
votes
0answers
913 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 ...
1
vote
0answers
35 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
1answer
366 views

How draw a Rectangle with INewRectangleFeedback?

I´m developing in ArcGIS Engine and my question is how to draw a rectangle with INewRectangleFeedback interface. Here is my code but it does not create the rectangle. If someone could help me it would ...
3
votes
2answers
480 views

Slow FeatureClass Sort

I am passing in a geofeatureLayer to a method that creates a UniqueValueRenderer. I am using the following code to sort that renderer so my values will be in some kind of order. This seems very slow, ...
2
votes
4answers
2k views

AxMapControl: How to set map extent in ArcObjects?

I have a stand-alone application written in C#. I want to be able to save and restore the current map view (extent) that the user sees. I assumed that it would be as simple as saving the active view's ...
8
votes
5answers
4k views

What are standard scales, or zoom levels, for map applications?

I am working on an ArcEngine program that is restricted to a set of scales. It currently has: 1:187.5 1:375 1:750 1:1500 1:3000 1:6000 1:12000 1:24000 1:50000 1:100000 I don't think there's ...
0
votes
1answer
139 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 ...
-2
votes
1answer
140 views

How can I access the AddShapefile method in HookHelper?

I'm new to ArcEngine and ArcObjects. I'd like to develop an extension for ArcMap where I have to use IHookHelper instead of AxMapControl. I am looking for the AddShapefile method, which is available ...
1
vote
1answer
351 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
1k 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 ...
4
votes
2answers
269 views

Developing tools for ArcMap 9.x and 10.x

I've been asked to start developing something for ArcGIS 10.x, but here is the problem: in my computer I already have the SDK and ArcMap 9.3.1 installed. That means that I need to uninstall it before ...
0
votes
1answer
673 views

CenterPoint of Polygon in ArcEngine .Net 10

I am currently trying to get the center point of a polygon. In GIS, i can see the "x" mark in the center of the polygon, but I do not know how to get it from the IPolygon object. I tried getting the ...
0
votes
1answer
986 views

how do i calculate polygon area with arcobjects?

i'd like to develope an application with arcengine that can calculate area of a polygon . i wrote the below code to select a polygon in combobox for (int i = 0; i < pmapcontrol2.LayerCount; ...
1
vote
1answer
228 views

Get Feature Symbol

I am using this code to get the symbol associated with a feature: IFeature feature = geoFeatureLayer.FeatureClass.GetFeature( geoFeatureLayer.FeatureClass.FeatureClassID ); ...
0
votes
1answer
514 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
2answers
2k 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
464 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 ...
11
votes
4answers
1k views

Performance of ArcGIS Engine using multiple file geodatabases as opposed to one?

I'm trying to decide the best way to organize my data for an ArcGIS Engine application. I am particularly interested in map display and query speed. Currently I have all of my data separated into ...
1
vote
0answers
205 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
445 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
880 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 ...
4
votes
4answers
813 views

(Professional) Label Positioning?

Just a general question here. I've implemented labeling in my code and solved a fair amount of problems that seemed insurmountable at first. Now that the labeling is working I have directed my ...
3
votes
1answer
3k 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
806 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
178 views

How to merge multiple shapefile via ArcEngine 9.3 Java?

I try to merge the some shapefiles into one by using ArcEngine java platform. But it seem like that parameters of my merge class is wrong ,i google it a long time and got nothing. Pls figure my ...
4
votes
2answers
394 views

How to enable MapTips in ArcGIS Engine? (ArcGIS 10)

My organization is working on a new version of our software using ArcGIS Engine. Previous versions of the software (running on ArcGIS Engine 9.3) displayed MapTips fine as long as they were enabled in ...
1
vote
0answers
263 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 ...
1
vote
1answer
1k views

(arcengine) export selected features from sde to shapefile (with joined fields)

I have a SDE featureclass that is joined to an access table in my map control. I want to export selected features of the SDE layer to a shapefile AND retain the joined fields. this following method ...
1
vote
1answer
105 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 ...
1
vote
0answers
109 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 ...
2
votes
2answers
992 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(); ...
2
votes
1answer
322 views

Making Labels Scale Correctly

I asked a question before about whether it was possible to scale labels and I was correctly pointed to the IAnnotateLayerTransformationProperties.ReferenceScale property. What would like to know now ...
0
votes
1answer
201 views

How do I use DynamicCacheLayerManager in ArcEngine to connect to a previously created cache

I am trying to load a cacheDataset that was created using the MapCookerClass as shown in the Multithreaded MapCruncher example at the URL below. In arcMap it is possible to connect/add this cache ...
1
vote
0answers
138 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 ...
2
votes
0answers
155 views

Remove Layer Labels

public void LabelOff( IActiveView view, IGeoFeatureLayer geoFeatureLayer ) { IAnnotateLayerPropertiesCollection annotationProperties = geoFeatureLayer.AnnotationProperties; ...
11
votes
3answers
954 views

Which data format typically displays fastest in ArcMap?

My organization is working on an application running on ArcGIS Engine. Previous versions of the application used primarily Shapefiles for displaying roads, parcels, buildings, etc. Since I was ...
3
votes
0answers
338 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
404 views

Select Feature shows outline not filled

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

Find Selected Element

Using the esriControls.ControlsSelectTool I select a text element that I have previously placed on the map. In code, how can I find this element on the map? I know I can iterate using the ...
2
votes
1answer
510 views

Adding barriers to a Network Analyst layer programmatically

Right now, I have code that allows the user to indicate on a map, which contains a Network Dataset layer, stops that are needed to create a route. I need to add functionality to the interface that ...
0
votes
1answer
230 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 ...