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

learn more… | top users | synonyms (1)

3
votes
2answers
286 views

SQL statements on a Geodatabase

I have converted a shapefile into a geodatabase which I use for geocoding via the ILocator interface. It has the extension (.mdb) and contains address fields with a point which is stored as a long ...
4
votes
2answers
93 views

Given a collection of IPoints is there a quick way to get the extent that contains them?

I have a bunch of IPoints. I need an extent which contains all of them. Is there a quick way to do it? I had the idea of converting them to screen coordinates and then figuring it out manually but ...
5
votes
2answers
759 views

Identify features

I am new to arcgis.I am building a custom desktop GIS application using arcgis engine 9.3.1 .I want to make a custom identify tool and add it to toolbar control.Any example or code will be helpfull. ...
0
votes
1answer
369 views

How to print ActiveView to printer in ArcEngine 10

I am following a printing tutorial, but it's not working. The tutorial is here: ...
1
vote
1answer
423 views

Adding a marker symbol to a MapControl

How do I add a marker symbol to an ArcGIS Engine MapControl at a specific coordinate?
1
vote
1answer
262 views

Capturing Feature Dragging and Dropping, ArcEngine 10 .net 4

I am currently trying to implement something that captures the feature that i clicked on and dragging. Basically i want to be able to "OnMouseUp" figure out the item I was dragging, so I can do some ...
1
vote
3answers
2k views

ArcEngine 10 Polyline with arrow

I was wondering if there is a way to draw a polyline but with an arrow head at the end point? Thanks all IPolyline line = new PolylineClass(); ...
2
votes
1answer
488 views

Drag and Drop with Arcengine MapControl within WindowsFormsHost in WPF

I have an application that requires dragging and dropping onto Arcengine's Mapcontrol in a Windowsformhost. I have set the Allowdrop property on both the host and the control itself and it still does ...
4
votes
1answer
441 views

Is there a way to get the X,Y from a feature class?

I currently have an instance of a selected feature class, and I want to be able to get the midpoint X,Y (if its polygon) or the X,Y (if its IPoint) of the feature from the layer, is there some build ...
3
votes
2answers
451 views

Is there a way to 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. My question is, is there a way I can do ...
2
votes
1answer
162 views

IToolbar uncheck items - ArcGIS

I currently have an app with two menu bars. One being the AxToolbarControl in a UserControl and one in a separate menu bar containing in-house stuff. I currently have the issue where if I select ...
2
votes
2answers
670 views

Selecting Multiple Layers under Table of Contents

I have been trying out what ARCMap10 can do in terms of the TOC. And their TOC has a lot of good functionalities. I really want to figure out how to Group/Drag and Drop/ and select multiple layers. ...
3
votes
2answers
736 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. ...
3
votes
2answers
255 views

Programmatically reordering ArcGIS layers

I programmatically create several layers for my map and I want my layers to be on top of the layers from the original map. Is there a way I can do that? I also want to be able to put "bring ...
6
votes
1answer
2k views

How to Verify if a FeatureLayer already exists?

I am currently working on a project where when user loads up their map (mxd) into our system, we create several custom featuerlayers for them. My problem is though, I have no idea how to check if I ...
5
votes
1answer
256 views

Creating dynamic links between features

I currently want to create links between 2 features. Ie., I have 2 basins that flow out and I want to use a line/polyline to have a link out of them and both point to a common 3rd feature, indicating ...
2
votes
1answer
557 views

ArcEngine 10 Editor: Split/Rotate/Cut Features toolbar?

I am currently looking for the Split/Rotate/Cut/Reshape tools in the toolbar control provided by ESRI, however according to ArcGIS Engine commands page there isn't one. Is it called something else ...
2
votes
1answer
1k views

How to MOVE and RESIZE Features within a Layer?

I am still new to ArcEngine 10, I currently am able to create a feature layer that is associated with a feature class. Its a polygon layer. So I can create polygon, give it attritbute table and put it ...
1
vote
1answer
103 views

Configure SoundEx in ArcEngine

Is there a way to configure SoundEx properties in ArcEngine? This query: "100 Fairvew Rd returns "100 Fairview Rd" But this query: "100 Farview Rd" returns no results Is there a way to make the ...
1
vote
0answers
322 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 ...
4
votes
2answers
439 views

Topology Edit Tool in ArcGIS Engine

Is a Topology Edit Tool available "out of the box" for ArcGIS Engine 10? Or do I have to write one myself?
3
votes
1answer
527 views

save IGeometry to disk as a Layer file

How can I save an IGeometry to disk as a Layer file? ArcEngine 10, C#, VS2010 Edit 1: With Jason Scheirer 's suggestion I managed to convert a point into a shapefile - and I'll post the code here ...
2
votes
1answer
663 views

ArcGis Engine, select object(s) by mouse

I've got a standalone program using ArcGis Engine, showing a map on the screen like this: AxMapControl _mapControl; AxToolbarControl _toolbarControl; // in constructor: _mapControl = new ...
3
votes
2answers
1k views

ArcGis Engine, how to zoom&pan to selected objects?

I'm writing a program using ArcGis Engine, and need to zoom&pan into the map to show the selected content. Loading and displaying the map does work using something like this: AxMapControl ...
4
votes
3answers
425 views

How can I programmatically determine if a shapefile contains points, polygons, or lines?

How can I programmatically determine if a shapefile contains points, polygons, or lines? ArcEngine 10, VS2010, C#
2
votes
2answers
450 views

Make a single layer multiple colors

I have a layer file that has a few polygons in it, each of these polygons is required to be a different color based a column in the DBF file. I normally color layers like this: ISimpleRenderer ...
2
votes
4answers
2k views

Where can I download ArcGIS Engine 10?

Can anyone help me find the link to download ArcGIS Engine 10? I have tried to find it, but unfortunately I have not found it.
1
vote
1answer
517 views

Change annotation font size on a IGeoFeatureLayer

I would like to change the font size for the annotations on an IGeoFeatureLayer. I tried to set it in the lpLabelEngine.Symbol.Font.Size below but the set doesn't persist. IGeoFeatureLayer ...
0
votes
1answer
109 views

Give Universal BaseCommand a custom Icon

If I add ControlsMapZoomInTool like this: AddItem("esriControls.ControlsMapZoomInTool", -1); To a Basic Context Menu I get the magnifying icon in my context menu right next to the words "Zoom In". ...
12
votes
5answers
3k 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? ArcEngine 10, VS2010 C#
6
votes
2answers
441 views

Exporting ArcGIS plugin data source to Shape

I have implemented a plug-in data source for ArcGIS. In my case, the format read by the plug-in may contain point, line and polygon features within the same file. In my implementation the data file ...
0
votes
1answer
518 views

Programmatically uncheck layer in AxTOCControl

I am running my map in dynamic display mode, and I want to programmatically uncheck a layer that is not a IDynamicLayer that is visible in the AxTocControl -- its just a regular layer file. I ...
0
votes
4answers
864 views

MFC Dialog Application using ESRI ArcEngine 10.0

I'm new to ESRI ArcObjects and I'm trying to create a basic MFC dialog application. I add the License and MapControl to the dialog resource. I compile and run the app, but I get the following runtime ...
2
votes
2answers
265 views

Migrating Defense Solutions objects from ArcGIS 9.3.1 to 10.0 gives Unable to cast COM object error?

I've got an ArcGIS Engine application that uses the IMADtedLayer interface to access VPF DTED catalog layers and adds them to a map. The code ran fine under v9.3.1. I just updated to v10, and now I ...
3
votes
3answers
705 views

How to use ArcGisServer from Engine?

MapServerQuerySublayer (Version 10) does not seem to support setting a definition query, although according to documentation it should using ImapServerSublayer2.LayerDescription as IMapserverSublayer. ...
2
votes
0answers
228 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 ...
7
votes
4answers
1k views

US One Address locator style missing city, state and zip code fields?

I am using the file: C:\Program Files\ArcGIS\Desktop10.0\Locators\US One Address.lot To do address resolution on a parcel / polygon layer. I'm trying to understand why the file doesn't contain ...
3
votes
1answer
552 views

How to make a custom ToolbarControl Item in ArcEngine?

I would like to create a custom toolbar item in ArcEngine. I add items like this ((AxToolbarControl)toolbarControl).AddItem( myCustomItem ) I need to know how to create a custom item in ...
2
votes
0answers
312 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
1answer
536 views

Setting color of a feature “street” with a FeatureRenderer

I have a layer with streets and I'm trying to change the color of the streets. I know I asked a similar question, How do I change the colors of my layer file?, and the answer worked for points. ...
2
votes
4answers
429 views

How to create a circle with ArcEngine?

I want to create a circle with IPoint P and radius r in ArcEngine and then I need to cast it to an IGeometry. Does anyone know how to do this? ESRI ArcEngine 10 VS2010 C#
3
votes
1answer
1k views

Identify sample doesn't work

I'm trying to follow the Identify snippet from the ESRI ArcEngine SDK http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Do_Identify_Snippet/00490000000n000000/ The third ...
1
vote
2answers
816 views

How do I change the colors of my layer file?

I have a ILayer which I load from a .lyr file which I created from a shapefile. How can I change the colors of the elements? I want to make the roads red instead of green for example. I need to do ...
3
votes
1answer
256 views

Is there a way to figure out what files an MXD points to?

Let's say I load up two layers, and then save an .mxd file. Now I want to get the path names of my layers from the .mxd file. Is there a way to do this in ArcEngine? I'm using ArcEngine 10 with ...
6
votes
3answers
214 views

Is there a way to read the columns in a shapefile / layer without converting it first to an MDB file?

My shapefile has a number of fields, like roadname, and street number. Is there a way to get at these without converting the shapefile first into a featureclass (mdb)? Sometimes the conversion is a ...
1
vote
1answer
479 views

Right click on layer in TOCControl get a context menu

Is there a way to right click on a layer in the AxTOCControl and get a context menu? I would like the options to be something like: {annotate layer, change annotation, move layer up or down the ...
4
votes
1answer
160 views

Add Cache as a Raster?

According to step 4 of the MapCruncher sample, http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Sample_Multithreaded_MapCruncher/000100000mmm000000/ Once the cache is ...
1
vote
1answer
175 views

MapCruncher makes maps but what scale?

Here is my workflow for creating tiles and linking them to a layer. 1) load shapefile 2) grab layer representing shapefile 3) init & execute mapcruncher 4) turn on dynamic display 5) create ...
3
votes
1answer
278 views

Add Shapefile now fails :(

This code used to work... if (File.Exists(@"C:\Roads.shp")) { mapControl.AddShapeFile(@"C:\", "Roads.shp"); } I have Roads.shp on the C:\ drive I also have Roads dot {sbn, sbx, shp.gcd, shp.xml, ...
4
votes
1answer
136 views

Modify MapCruncher sample to make it generate tiles with GCS 1984 spatial reference

I want the MapCooker sample to generate tiles with a projected spatial reference of GCS WGS 1984. I currently initialize it with a path to a layer with the NAD_1983_HARN_Adj_MN_Isanti_Feet coordinate ...