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

learn more… | top users | synonyms (1)

5
votes
3answers
5k views

Remove lock on feature class

When i try to delete a feature class , after or during the use of an Arcgis engine app which uses the same feature class i got an error concerning the lock , so i can't get ride of this lock until i ...
7
votes
4answers
629 views

Is there a way to get a good human readable error from a COM error in arcEngine?

I'm trying to perform the following operation: IPropertySet addressProperties = reverseGeocoding.ReverseGeocode(point, false); And I get this error: Exception from HRESULT: 0x80040217 Is there ...
4
votes
2answers
1k views

Running ArcPy script from ArcObjects?

the standard method requires to run ArcPy script in command line, i've struggled with it to run but without a result, i can import arcpy, set the workspace to the geodatabase path and describe the env ...
11
votes
3answers
800 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 ...
4
votes
3answers
255 views

How to number polygons according to their spatial relationships?

I have, for example, this layer in postgresql (polygons): table : poly (objectid: integer, num: integer, shape: geometry) I want to enumerate the polygons from left to right and top to bottom ...
9
votes
4answers
5k views

Uninstalling ArcGIS extensions from earlier version after ArcGIS upgraded?

I uninstalled ArcGIS 9.3.1 (server, desktop, engine), then installed ArcGIS10.0 (Server, Desktop, engine). When I tried to uninstall some arcmap extensions, I got error 1001 "unable to get installer ...
3
votes
2answers
1k views

Accessing ArcGIS layers from separate thread using ArcGIS Engine?

I've got an ArcEngine application, referencing a MXD for it's data (and map display). I'm running a query against all layers, so can take quite some time. I would normally run the query in a ...
5
votes
2answers
2k views

How to catch when scale is changed in ArcGIS?

We want to update a combobox so that it always shows the correct scale. If the user zooms-in, out or resizes the control hosting the map. What is the best event or events to catch and use in ArcGIS to ...
2
votes
1answer
205 views

Automated correction of parcel geometry based on area measure?

i have a set of parcels in DWG file and i have the areas that should be in these parcels in an excel file, so i have to modify each parcel to match the area specified in the excel file with a moving ...
2
votes
1answer
880 views

How to let user only rearrange layers in a group layer?

We have a stand-alone application were we let the users add local shape and raster layers. We would like to add functionality so that the user can rearrange the added layers within a specific group ...
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#
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 ...
7
votes
2answers
592 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 ...
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 ...
4
votes
1answer
2k views

Feature Layer Attribute table to Datatable and make it editable

Hi Currently i'm using this to turn it into a data table featureCursor = layer.FeatureClass.Search(que, false); row = featureCursor.NextFeature(); if (row != ...
4
votes
1answer
1k views

How to create images from symbol in ArcObjects?

I'm trying to create images from symbols so that I can create a custom symbol dialog. Found this sample code on the ESRI forums and it workes great on almost all symbols. I'm having problems with a ...
8
votes
2answers
1k views

Is there workaround for very slow ArcSDE 10.1 data display

I'm suffering from very slow viewing data of and ArcSDE database from an Arcgis engine application, the SDE database is in localhost so there's no network issues. but i still don't know the reasons ...
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 ...
7
votes
2answers
877 views

Control the colors of a shapefile

I have a Shapefile with road data. Sometimes the roads are blue, sometimes they are green. I didn't used to mind, but now I'm tiling everything so I need to control the colors. I'm loading it with ...
6
votes
2answers
1k views

Does anyone know a function to determine if a Point exists within a polygon?

Does anyone know a function to determine if a Point exists within a polygon? Edit: I'm using C# with ArcEngine10.
5
votes
2answers
480 views

IPoint -> Nearest Address

Summary: How to use the MDB file (link below) as a locator to reverse geocode (point->address) with ArcMap? I've implemented this sample: ...
4
votes
2answers
614 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 ...
4
votes
3answers
375 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 ...
4
votes
4answers
594 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 ...
4
votes
2answers
866 views

Replicating ArcMap's Point Sketch Geometry Editing (Feature Templates) in ArcObjects

I'm looking for a way to place, select, move, delete features inside a custom C# ArcObjects application (using AxMapControl). I found the exact behavior in ArcMap, but I want to save the user some ...
4
votes
3answers
947 views

Get part of polyline based on 2 points in Arc Engine

Currently I have a layer with polylines; in another layer, I allowed the user to create 2 points on the polyline. I want to know if there is a function for the polyline feature that I can use to get ...
4
votes
2answers
807 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 ...
3
votes
2answers
781 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. ...
1
vote
2answers
295 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 ...
5
votes
2answers
580 views

Does anyone know a function to determine if a Point lies on a polyline?

ArcEngine 10 .Net 4 c# Hi I'm currently allowing user to select a point on a polyline and creating a point on the line. I am using snapping tool. I just want to make sure that when the user clicks ...
4
votes
2answers
815 views

Editor Extension in ArcGIS Engine 10 Application

How can I find the Editor extension in an ArcGIS Engine application (i.e. no access to the IApplication object)? There is an example method at ...
3
votes
2answers
399 views

Using IRelQueryTable

I create a RelQueryTable like this to join a GeoFeatureLayer to an external table. Everything seems to work (no errors, I can look in the table and see the correct fields.) Silly question: what do I ...
3
votes
2answers
626 views

How to get all features in current extent

I like to add text information to each feature in the shown map extent in my MapControl/PageLayoutControl. Adding the text is not a problem, but I couldn't find a way on how to get the features. Is ...
3
votes
2answers
443 views

Determine point relation to given line

In ArcGIS engine I have a polyline with From and To points. I also have a Point. How can I determine if the point is located on the right or left of the line on the plane considering the direction of ...
3
votes
1answer
543 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
2answers
153 views

Importing Bing Maps into application using ArcGIS Engine?

I'd like to create an application using ArcGIS Engine 10. I want to import Bing Maps into my application as base map. I surf the internet but couldn't find any tools or API to import these maps to ...
2
votes
1answer
401 views

Problem Initializing License for ArcEngine application

I have written an ArcEngine application using vb.net and Visual Studio 2010. When I initially started the code, I indicated an ArcInfo license was available during the project setup. This worked ...
2
votes
0answers
139 views

Remove Layer Labels

public void LabelOff( IActiveView view, IGeoFeatureLayer geoFeatureLayer ) { IAnnotateLayerPropertiesCollection annotationProperties = geoFeatureLayer.AnnotationProperties; ...
2
votes
0answers
388 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
3answers
844 views

How to connect to bundle files?

I tiled my mxd document using the Multithreaded MapCruncher sample located here: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000mm8000000 It appears to work, ...
2
votes
4answers
2k views

How to set a definition query for an AGS layer?

Is it possible filter out some features using a definition query set from the client on a AGS layer? I've checked out the map server layer but it only supports find and identify. Also looked at WMS, ...
2
votes
1answer
1k views

What are the main steps when building a balloon callout using ArcObjects in arcengine 10 in VS2010 with C#

I'm looking for a good BalloonCallout example / tutorial / sample. edit: Using C# with ArcEngine 10 edit #2: What are the main steps when building a balloon callout using ArcObjects in arcengine ...
1
vote
2answers
729 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 ...
1
vote
0answers
79 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
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
1answer
553 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. ...
1
vote
2answers
892 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 ...
1
vote
1answer
509 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 ...
1
vote
1answer
1k views

How to work with .lyr files in ArcGIS Engine

I want to be able to load .lyr files created in ArcMap and ArcGIS Engine and save any updates in symbology in ArcGIS Engine back to the .lyr file. What APIs should I use the only method I found so ...
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 ...