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

learn more… | top users | synonyms (1)

4
votes
1answer
344 views

How can I import external bookmark (.dat) using ArcEngine

Does anyone know how to use arcObjects (specifically ArcEngine for me) to import a bookmark (saved as a .dat) that was created and saved externally using ArcMap? I have an ArcEngine application that ...
1
vote
0answers
274 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
1answer
340 views

If a shapefile with geometry esriGeometryPoint is valid is it guaranteed to have a 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 ...
2
votes
1answer
274 views

arcgis10: export eventlayer (from querylayer) to ArcSDE

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 ...
3
votes
4answers
1k views

Help with QueryFilter

I have a query filter which works if pass a new instance of QueryFilterClass without setting any properties. But it breaks if I set the WhereClause. I get an error 0x80040358 ...
3
votes
2answers
290 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
95 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 ...
4
votes
2answers
804 views

Identifying features using ArcGIS Engine?

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 ...
0
votes
1answer
379 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
439 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
263 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
497 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
459 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
523 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
170 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
723 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
774 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
256 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
262 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
572 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
2k 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
333 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
449 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
541 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
694 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
2k 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
438 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
484 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
545 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
110 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#
7
votes
2answers
459 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
544 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
897 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
270 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
750 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
230 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
571 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
332 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
552 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
445 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
891 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
262 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
219 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 ...