Questions tagged [arcgis-engine]
ArcGIS Engine is for embedding GIS data, maps and geoprocessing into desktop and mobile applications.
344 questions
0
votes
1
answer
195
views
How to add layers to MXD programmatically on linux or windows without ArcGIS for Desktop?
Is it possible for me to programmatically create in linux centos 6.4 or a windows with only arcGIS Engine runtime (single use license without sdk)?
3
votes
2
answers
2k
views
How can I split a polygon into its sub polygons?
I am trying to define user generated polygons with Esri's ArcGIS Engine 10.1.
Here's how it works at the moment:
User clicks on the map and creates points
User connects the points
I have a ...
1
vote
0
answers
193
views
How to create FeatureLayer without Legend in Table Of Contents (TOC) using ArcGIS Engine?
So what I am trying to accomplish is having a IGroupLayer that contains an IFeatureLayer and in the table of contents (TOC) there would be no + next to the feature layer (i.e. there is no legend). So ...
1
vote
0
answers
275
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 ...
8
votes
2
answers
3k
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 ...
0
votes
1
answer
344
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 ...
1
vote
0
answers
584
views
AddData tool stop working after Interoperability connection has been used?
Bug in ArcGIS Engine? Has anyone seen this behavior? We get an exception from our ArcGIS Engine test projects after we had been testing the Interoperability connection in ArcEditor.
We had to enable ...
2
votes
1
answer
313
views
Why does a raster in Gauß-Krüger has a little offset to a shape in UTM?
I have raster data (TIFF files) where I think it's spatial reference is in Gauß-Krüger ("DHDN_3_Degree_Gauss_Zone_3") and some shape files in UTM ("ETRS_1989_UTM_Zone_32N_8stellen"). As you can see in ...
4
votes
0
answers
465
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 = (...
3
votes
0
answers
3k
views
How to set margin on PageLayout in ArcGIS Engine?
When we create a PageLayout from the A4 Landscape template and print the layout on a pinter with A4 Landscape paper we get four pages instead of one. We are using the IPage.PageToPrinterMapping = ...
3
votes
0
answers
316
views
How to turn off tool tip for the Identify button? [closed]
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 ...
2
votes
0
answers
143
views
Unable to retrieve custom extension state from a document in ArcEngine
I created a custom extension in ArcMap 10.1 which implements the IPersistVariant interface. State related to the extension features is persisted and retrieved via the Load and Save methods. ...
2
votes
1
answer
1k
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 ...
1
vote
2
answers
222
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
4
answers
2k
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
0
answers
193
views
Creating a custom, local Route Task
I'm trying to replicate something similar to the ArcGIS WPF Runtime SDK (C:\ArcGIS\WPF1.0\SDK\Samples\Sample Application\Sample Application.exe) "Routing with Barriers Online" sample with two major ...
1
vote
0
answers
164
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 ...
6
votes
1
answer
1k
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 ...
2
votes
0
answers
422
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 ...
6
votes
1
answer
574
views
Automated geodatabase replication with offline editors
I would like to design an application that would use an SDE database with simple features and a geometric network. That geodatabase would then be replicated out to any number of personal geodatabases ...
2
votes
1
answer
194
views
ArcEngine: Drawing graphics returned from BackgroundWorker
My application is drawing graphics objects on the map(as simple as adding IElement to GraphicsContainer).
When I create graphics elements and add them to GraphicsContainer in BackgroundWorker DoWork ...
1
vote
1
answer
4k
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 ...
0
votes
1
answer
742
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 ...
6
votes
1
answer
2k
views
How to turn an IField from Not Editable to Editable?
so i have turned my ITable into an editable DataGridview from this post
link.
Now i want to set some of the columns to be non editable. So what I can do is initially set my IFieldEdit.Editable_2 to ...
1
vote
0
answers
110
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
1
answer
478
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 )?
2
votes
2
answers
2k
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();
doc.ReplaceContents(...
11
votes
5
answers
10k
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 anything ...
1
vote
0
answers
129
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 ...
-2
votes
1
answer
369
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 ?
1
vote
2
answers
504
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 ...
2
votes
1
answer
465
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 ...
3
votes
3
answers
1k
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. ...
3
votes
0
answers
2k
views
Make a Join Permanent [closed]
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
0
answers
44
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, ...
3
votes
2
answers
834
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, ...
6
votes
3
answers
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 ...
2
votes
1
answer
1k
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 ...
-2
votes
1
answer
170
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 ...
4
votes
3
answers
489
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#
0
votes
1
answer
1k
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 ...
1
vote
0
answers
330
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,
http://forums.esri.com/Thread.asp?c=159&...
0
votes
1
answer
1k
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, ...
0
votes
1
answer
268
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 ...
2
votes
1
answer
457
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 ...
1
vote
2
answers
2k
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 ...
8
votes
1
answer
743
views
Custom panning using ArcGIS Engine
Due to some constraints, that I will not go into, I have found myself needing to implement custom panning in my application.
The ArcGIS API reference suggests using the following methods:
...
1
vote
1
answer
248
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 ...
1
vote
0
answers
387
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
1
answer
2k
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 ...