Questions tagged [arcgis-engine]
ArcGIS Engine is for embedding GIS data, maps and geoprocessing into desktop and mobile applications.
344 questions
3
votes
1
answer
207
views
Custom Dynamic Layer draws below annotations
My custom dynamic layer (moving vehicles) is at position 0, specified by this code:
mapControl.Map.MoveLayer(customDynamicLayer, 0); //smaller numbers draw later
But the annotations of the layer at ...
3
votes
2
answers
271
views
Get heading from 2 IPoints
I am moving an object from one point to another and would like to update the heading of the dynamic display properties. I am using this code:
m_dynamicSymbolProperties.set_Heading(...
5
votes
1
answer
771
views
Why is SymbologyControl missing symbols in XP?
I'm using the the code form SymbolForm.vb in this sample: Change layer rendering using the SymbologyControl It's working great on my developer machine with Windows 7, 64bit.
But when I deploy the ...
5
votes
2
answers
565
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:
http://help.arcgis.com/en/sdk/10.0/arcobjects_net/...
3
votes
2
answers
432
views
Changing background color of AxTOCControl
I'm having trouble finding a way to change the background color of the AxTOCControl.
Is there a way to do this?
I'm using ArcGIS Engine 10 C# and VS2010.
2
votes
1
answer
152
views
Adding an empty dynamic layer makes my shapefiles display correctly - without it they are incorrect
I have a completely empty dynamic layer
public class CustDynamicLayer2 : BaseDynamicLayer
{
public override void DrawDynamicLayer(esriDynamicDrawPhase DynamicDrawPhase, IDisplay iDisplay, ...
1
vote
2
answers
430
views
Programmatically modify MapTip Expression
If I load a layer via a shapefile and set
((ILayer)myLayer).ShowTips = true;
How can I change the tip content (I want to point it to a different column or have a expression of multiple columns) ...
3
votes
1
answer
1k
views
Opening a shapefile with roads, how to display the road names?
I am using
((AxMapControl)myMap.AddShapeFile( directory, shapeFileName)
To display a shapefile which has road data. Now the roads display properly, but the road names aren't displaying. How can I ...
2
votes
1
answer
671
views
OpenGL samples for use with ArcEngine? Inspired by video I linked in post
Inspired by this video: http://www.youtube.com/user/mresri#p/a/u/0/KjcDWG8nV1g
What are some good OpenGL resources for use with ArcEngine?
C# ArcEngine 10
2
votes
1
answer
247
views
How to use ISymbol QueryBoundary
I have a balloon callout ISymbol and I want to get a polygon object so I can see if the user clicks it.
I am trying to use the function QueryBoundary
http://help.arcgis.com/en/sdk/10.0/...
4
votes
3
answers
633
views
Image of police car -> dynamically draw police car number
Let's say I have 10 police cars using the same image, and I want each one to be numbered 1 - 10, but the number 1 is dynamically drawn on top of the police car image. What is the class / interface I ...
7
votes
4
answers
1k
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 ...
3
votes
1
answer
1k
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 ...
5
votes
3
answers
532
views
Using Multiple ShapeFiles as a single address locator
Let's say I have 5 shapefiles, and I want to use them as a single address locator via the ILocator interface. What would you recommend?
Merge the shapefiles into a single shapefile then convert to ...
3
votes
2
answers
2k
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 ...
1
vote
1
answer
344
views
Lambert_Conformal_Conic Geographic coordinate system
A shape file I am working on uses the Lambert_Conformal_Conic projection. I would like to get a reference to this system via the IGeographicCoordinate interface.
To get at the standard lat long ...
3
votes
3
answers
257
views
Can ArcEngine resolve unstructured address data?
In the following tutorial link, the code geocodes a structured address. In the example address fields are coded so that the program knows in advance 1) state = "CA" 2) city = "Redfield"...
http://...
4
votes
1
answer
2k
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 ...
3
votes
2
answers
431
views
Pass execution control from Context Menu BaseCommand to custom app
I got a context menu to work by following this tutorial: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000000v9000000
The interesting thing about the tutorial is ...
3
votes
2
answers
150
views
Add New Project -> Class Library (Engine) targets the .NET 2.0 framework
Any one have comments on why the ArgGis Extensions in the 10 framework still target the .NET 2.0 framework?
For clarification do the following steps in Visual Studio:
Add New Project -> Class ...
2
votes
3
answers
2k
views
ArcGIS Engine License Switch
Is it possible to change to a "higher-level" license after a license has already been checked out in ArcGIS Engine? Old posts in ESRI forums seem to indicate that this is not possible, but I'm ...
1
vote
1
answer
2k
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 ...
7
votes
1
answer
597
views
How to prototype GIS workflows in Sketchflow?
I've started to use Microsoft Expression Blend and SketchFlow to visualize senarios in our line-of-business application prototypes. Right now I use the Sketch Style to do a Rectangle and write a text ...
6
votes
2
answers
3k
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 ...
4
votes
1
answer
1k
views
How to catch when layers visibility change in ArcGIS?
I'm trying to regenerate a Legend in a Pagelayout whenever the layers visibility are changed in the TocControl. What is the best way to catch when a layer visibility is changed?
6
votes
1
answer
1k
views
Are there any good resources on WFS support in ArcGIS?
Are there any good resources on WFS support in ArcGIS?
The only documents I found so far are these: How_to_work_with_WFS_using_ArcGIS_Desktop and Consommer des services/données WFS dans ArcGIS 9.2 But ...
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 ...
1
vote
3
answers
3k
views
How do I make an icon with some text to popup when I hover over it and for it not to be slow?
I would like to make an icon on the screen and have hover popup text. Ideally the text will be black with a white background.
Right now my icon is a bitmap created like this
GraphicTrackerClass ...
3
votes
1
answer
1k
views
IElement added to IGraphicsContainer ignores zOrder
I display a balloon callout after casting a axMapControl.Map to a IActiveView and doing this:
pGraphicsContainer = activeView as IGraphicsContainer;
pGraphicsContainer.AddElement(pElement, zOrder);
...
6
votes
2
answers
1k
views
How to convert GML to features in ArcObjects?
How to convert GML to features and features to GML i ArcObjects?
We are building an application where we want to communicate with a service with GML but natively in our stand-alone application we ...
1
vote
4
answers
901
views
How to hide map to print only the legend on a PageLayout?
If I'm printing a Pagelayout, is there any API for hiding the MapFrame or stop it from getting draw on the printout? I would like to only print the Legend on the paper.
2
votes
1
answer
2k
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 ...
0
votes
2
answers
342
views
Ensure BaseDynamicLayer is always the most visible layer
If I add a shapefile to my map and then a dynamic custom layer inherited from a BaseDynamicLayer, then the shapefile is lower on the viewing stack then my custom layer, and it displays correctly.
...
6
votes
2
answers
2k
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.
0
votes
3
answers
219
views
Anyone have any ideas why this tiny code snippet throws a COM exception?
System.Object obj = Activator.CreateInstance(Type.GetTypeFromProgID("esriLocation.LocatorManager"));
ILocatorManager2 locatorManager2 = obj as ILocatorManager2;
ILocatorWorkspace locatorWorkspace = ...
5
votes
2
answers
2k
views
How to filter Legend to show only visible features?
Is it possible to get the legend in a pagelayout to only show patches/swatches for features fall within the visible extent of the Map?
The solution needs to work on FeatureLayers and ArcGIS Server ...
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 = ...
0
votes
1
answer
1k
views
Use lat / long to create polyline that can be passed into DrawPolyline
public void DrawPolyline(ESRI.ArcGIS.Carto.IActiveView activeView)
{
if(activeView == null) return;
ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = activeView.ScreenDisplay;
screenDisplay....
1
vote
2
answers
1k
views
ArcEngine draw a polyline or multipoint
Does anyone have a bit of code to plot a multiline? I just want to add some IPoints to a collection and display in a particular color and width, but I can't find a good way to do this.
Right now I'm ...
4
votes
4
answers
3k
views
Which API should we use for printing a PageLayout?
We are building an standalone ArcGIS Engine application and we are going to add support for printing.
There are several APIs for printing a PageLayout in ArcObjects, in ArcGIS 10 there are at least ...
11
votes
4
answers
7k
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
1
answer
555
views
Runaway memory usage with Event Layers in ArcGIS Engine and Desktop?
I have an ArcEngine application, based off an MXD with an axMapControl. Several of the layers in the map are event layers built with XY data in a SQL table. It has routing info applied from a ...
2
votes
2
answers
349
views
.NET Components triggering ITools on ArcEngine/Objects
I'm building a simple map interface on a .net component that I need to redistribute around.
Well, my initial thoughts was to create the tools just the way I'm used to do it in ArcMap, inheriting ...
4
votes
3
answers
3k
views
Showing progress in ArcGIS Engine application!
I would like to add a progress indicator to our ArcGIS Engine 10 application. Like a progressbar in the statusbar to show when the MapControl is busy getting or drawing the map. I've been trying to ...