ArcGIS Engine is for embedding GIS data, maps and geoprocessing into desktop and mobile applications.
3
votes
1answer
245 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
122 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 ...
1
vote
1answer
92 views
DynamicCacheLayerManager.Connect deletes my tiles
You are supposed to be able to connect to your existing tiles with this command.
dynamicCacheLayerManager.Connect(tileCacheDir, tileCachePath);
When I do that my tiles are destroyed and rebuilt. ...
2
votes
2answers
534 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
1answer
353 views
Create a style file using ArcEngine?
Is it possible to create a style file to complement a shapefile using ArcEngine?
I'm using C# VS2010 ArcEngine 10. Thanks.
2
votes
1answer
104 views
Dynamic Display doesn't respect my annotations when my layers are in a BasemapLayer
I have 2 annotated layers which I load in a BaseMapLayerClass. When the map is static the annotations are visible. When I enable DynamicMap I lose all annotations. I would like a way to annotate ...
7
votes
2answers
521 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 ...
2
votes
1answer
276 views
ArcEngine in WPF -> publish -> creates .msi install file -> installer fails
I am trying to install my custom ArcEngine application on another machine. I just uninstalled and reinstalled ArcGis Engine Runtime 10 and authorized it.
"Unable to install or run the application. ...
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, ...
1
vote
1answer
515 views
Balloon popup in dynamic display looks weird (with image link)
Here's how it looks when dynamic display is enabled
http://iterationx.posterous.com/34293301
Each letter gets its own balloon callout - this is quite annoying and I can't image why anyone would ...
2
votes
1answer
330 views
Hit test for dynamic object
I am drawing a dynamic moving vehicle like this:
m_dynamicSymbolProperties.set_DynamicGlyph(esriDynamicSymbolType.esriDSymbolMarker, this.bluePoliceCarGlyph);
...
3
votes
1answer
125 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 ...
3
votes
2answers
186 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:
...
4
votes
1answer
493 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
2answers
428 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:
...
3
votes
2answers
285 views
Change the background color of a AxTOCControl
I'm having trouble finding a way to change the background color of the AxTOCControl. Is there an easy way to do this? I'm using ArcEngine 10 C# and VS2010. Thanks
2
votes
1answer
122 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
2answers
256 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
1answer
414 views
Opening a shapefile with roads, how to display the roadnames?
I am using
((AxMapControl)myMap.AddShapeFile( directory, shapeFileName)
To display a shape file which has road data. Now the roads display properly, but the road names aren't displaying. How can ...
2
votes
1answer
393 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
1answer
139 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
...
4
votes
3answers
438 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 ...
5
votes
3answers
415 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 ...
2
votes
1answer
677 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
3answers
381 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?
1) Merge the shapefiles into a single shapefile then convert ...
3
votes
2answers
685 views
Accessing ArcGIS layers from seperate thread
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
1answer
243 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
3answers
220 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"...
...
4
votes
1answer
944 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
2answers
228 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
2answers
132 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
3answers
906 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
1answer
960 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
1answer
406 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 ...
5
votes
2answers
1k 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
1answer
591 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?
5
votes
1answer
736 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 ...
1
vote
0answers
94 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
3answers
1k 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 ...
2
votes
1answer
468 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
2answers
824 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
4answers
470 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
1answer
780 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
2answers
213 views
Ensure BaseDynamicLayer is always the most visible layer
If I add a shape file to my map and then a dynamic custom layer inherited from a BaseDynamicLayer, then the shape file is lower on the viewing stack then my custom layer, and it displays correctly.
...
6
votes
2answers
694 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
3answers
178 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
2answers
1k 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
0answers
1k 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
1answer
602 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;
...
1
vote
2answers
633 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 ...