Tagged Questions
1
vote
0answers
63 views
Error Input FeatureClass Arcgis 10 VB.net And Geoprocessing
I have a problem when i execute GeoProcessing in ArcEngine 10 with VB.net
i had create the toolbox : Models.tbx
and Model Process : disolveRoute with 2 parameters
My Function is :
Sub diso()
...
2
votes
1answer
51 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 ...
2
votes
1answer
97 views
ComException -2147467259 Arcgis 10 VB.net +Geoprocessing
I have a problem when i execute GeoProcessing in ArcEngine 10 with VB.net
i had create the toolbox : Models.tbx
and Model Process : disolveRoute with 2 parameters
My Function is :
Sub ...
2
votes
0answers
43 views
Problem when executing Dissolve method in ArcEngine
I'm always having a problem in GP.execute() when trying to execute this method. Here is my code:
Friend Function DissolveFeatures(ByVal pInFLayer As ESRI.ArcGIS.Carto.IFeatureLayer, ByVal ...
0
votes
0answers
36 views
ArcEngine crashes on IProjectedCoordinateSystemEdit.Define
I need to create a projected coordinate system in my ArcEngine (Version 10.0) application from this .prj-file. Since I don't want to load from a file (with ...
1
vote
2answers
45 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
4answers
243 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
0answers
31 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 ...
1
vote
0answers
71 views
How to show size/length of sketch while creating new feature?
While adding a new feature to a feature layer I like to show the size (area)/length of the sketch so that the user has a better feedback while placing the vertexes.
So I hook up MapControl's ...
2
votes
0answers
118 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 ...
0
votes
0answers
107 views
How to Reclassify Raster using ArcGIS Engine?
i'd like to create an application that reclass a raster . user enter his/her range of class in a listbox . the application calculate minimum and maximum of band value . the problem is that i couldn't ...
1
vote
1answer
578 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 ...
1
vote
0answers
53 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
1answer
155 views
How to print semi-transparent elements?
I highlight some features with a semi transparent color via an ILayerExtensionDraw. When I print the ActiveView of the PageLayoutControl with IPrintAndExport the highlightning is not on the printout.
...
1
vote
0answers
47 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
1answer
214 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 ...
1
vote
2answers
174 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
0answers
360 views
Make a Join Permanent
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
0answers
29 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
2answers
222 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, ...
1
vote
4answers
748 views
AxMapControl: How to set map extent in ArcObjects?
I have a stand-alone application written in C#. I want to be able to save and restore the current map view (extent) that the user sees. I assumed that it would be as simple as saving the active view's ...
6
votes
3answers
573 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 ...
0
votes
1answer
291 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
1answer
146 views
Get Feature Symbol
I am using this code to get the symbol associated with a feature:
IFeature feature = geoFeatureLayer.FeatureClass.GetFeature( geoFeatureLayer.FeatureClass.FeatureClassID );
...
8
votes
1answer
556 views
What is the best way of refreshing the view after drawing graphics?
I draw a polygon on button click which to highlight a feature. Then I need to refresh the ActiveView to show the new polygon. This lines do work:
...
1
vote
1answer
307 views
Get all features in extent not working correctly in PageLayoutControl
I want to get all features in the current extent of my PageLayoutControl's ActiveView. I got it working for a MapControl as described here.
With my PageLayoutControl it seems that I don't get the ...
1
vote
2answers
348 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 ...
4
votes
4answers
370 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 ...
3
votes
1answer
974 views
Label Selected Features Only
OK, I've been labeling using the LabelEngine and simple expressions and it is working for every layer. I want to offer the option of labeling only selected features and thought it would be this ...
4
votes
2answers
277 views
How to enable MapTips in ArcGIS Engine? (ArcGIS 10)
My organization is working on a new version of our software using ArcGIS Engine. Previous versions of the software (running on ArcGIS Engine 9.3) displayed MapTips fine as long as they were enabled in ...
1
vote
0answers
96 views
Set Numeric Format for Class Breaks Labels?
Why doesn't this code change the numeric format of the labels generated when I build this renderer? When I execute the set_Break() this nnumeric format is correctly set in the renderer but I still get ...
2
votes
1answer
196 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 ...
2
votes
0answers
96 views
Remove Layer Labels
public void LabelOff( IActiveView view, IGeoFeatureLayer geoFeatureLayer ) {
IAnnotateLayerPropertiesCollection annotationProperties =
geoFeatureLayer.AnnotationProperties;
...
3
votes
0answers
194 views
Print axMapControl contents with preview
I have a map with many feature layers on top of it. I would like to be able to print the map and feature layers either scaling it to fit a certain page size or printing it to actual scale thus ...
3
votes
1answer
278 views
Select Feature shows outline not filled
public static void SelectBy(this IActiveView view, ILayer2 targetLayer,
string filterClause, esriSelectionResultEnum selectionResult ) {
IFeatureSelection featureSelection = targetLayer as ...
4
votes
1answer
110 views
Find Selected Element
Using the esriControls.ControlsSelectTool I select a text element that I have previously placed on the map. In code, how can I find this element on the map? I know I can iterate using the ...
0
votes
1answer
121 views
Setting the Color of a TextSymbol
public void DrawText( IActiveView view, string text, string fontName, int fontColor, float fontSize, IPoint point ) {
ITextSymbol textSymbol = new TextSymbol();
stdole.IFontDisp ...
3
votes
1answer
149 views
Self-Sizing Labels
I have labels now in my application that work fine using the usual ILabelEngineLayerProperties2. When I set them up I set the .Expression property and using the .Symbol property I set the font, style, ...
2
votes
2answers
88 views
Bring Feature Selection To Top
I'm using IFeatureSelection.SelectFeatures() to select parcel polygons in my parcel layer. It works fine until I create a ClassBreaksRenderer to apply a color ramp based on a field in the feature. The ...
1
vote
0answers
86 views
What does SetHistogramData do?
I run the following code:
IClassify classify = new NaturalBreaksClass();
ITableHistogram tableHistogram = new BasicTableHistogramClass();
IBasicHistogram basicHistogram = tableHistogram as ...
1
vote
0answers
180 views
UniqueValueRenderer and ClassBreaksRenderer configuration
So I can create one of these renderers based on parameters I let the user set. Some parameter combinations either create invalid conditions or no conditions at all - missing data, too many breaks or ...
3
votes
0answers
204 views
IUniqueValueRenderer on Polyline and Points made my Features all invisible
I am currently using IUnique value renderer like this:
foreach (string nodeType in nodes)
yield return new KeyValuePair<string, ISymbol>(nodeType, CreateNewSymbol() );
public static ...
6
votes
1answer
335 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 ...
1
vote
0answers
49 views
Strange Behavior for TOCControl PopupMenu
The sample "TOCControlContextMenu" demonstrates how to display a context menu from the AxTOCControl. When I run this sample and right-click on the TOC control the context menu pops up and remains ...
1
vote
1answer
92 views
Named ITable removal
I am dynamically creating a join between a GeoFeatureLayer and an external ITable derived from a SQL query and opened with OpenQueryClass(). It works. Now if I could only delete the Join!? But even ...
3
votes
2answers
322 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 ...
6
votes
2answers
334 views
Display map scale (like 1:20.000) next to ScaleBar
In my PageLayoutControl I add a ScaleBar. Additionaly I like to show the map scale/ratio (e.g. "1:20.000") next to it, but didn't find a way to achieve this with the ScaleBar. Am I missing something ...
3
votes
1answer
1k views
How to Insert Feature into Feature Class (in Memory) ESRI
I'm looking for suggestions on how to insert a new feature instance into a feature class that is in memory -- assuming that I don't have access to the feature workspace. For example, the feature class ...
5
votes
0answers
114 views
How can I control what is passed to the OnCreate() method when a command or tool is initialized?
In an ArcEngine application can I control what is passed to the OnCreate() method when a command or tool is initialized?
(I am using a synchronization object because I have both a map and a ...
2
votes
1answer
290 views
ArcGIS Server: “MapServer is not supported with the current license.”
I am at a complete loss... I have a Server 10.0 license on my machine but the following code fails:
if (ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Server) == false)
throw new ...