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

learn more… | top users | synonyms (1)

1
vote
2answers
390 views

How to center map in PageLayoutControl?

In my print preview dialog I have a PageLayoutControl loading the same map as the main view's MapControl. I want the map in the PageLayoutControl to center at the same position as the MapControl. ...
2
votes
1answer
122 views

What's the strongest refresh method available to ArcEngine?

I have five layers: polygon, line, and point with a single IRasterLayer file. I am programmatically setting the ILayer.Visible attribute for the Raster but the layer is not refreshing. If I zoom in, ...
1
vote
1answer
266 views

Set size of map in PageLayoutControl to print ScaleBar underneath, not within map

For printing we have a PageLayoutControl where the user can select the map extent, he wants to print. I like the map to fill only a square in the middle of the page so that the title, the ScaleBar and ...
4
votes
1answer
242 views

Excluding layers from snapping using IPointSnapper

I'm working with ArcObjects in C#, and am trying to exclude all map layers but one (the only one I want to snap to) from the snapping environment. I'm using the ISnappingEnvironment and IPointSnapper ...
3
votes
1answer
265 views

How to listen for ESRI drawing events using ESRI drawing tools in ArcObjects?

I am trying to make use of the built-in ArcObjects drawing tools (ie ControlsNewCircleTool) - but I need to listen for the events so I can add the drawing graphics to the database in our application. ...
1
vote
2answers
126 views

How do I use the OverviewClass in ArcObjects?

I want to display an Overview map - I know how to do it using a separate PageLayout or MapControl - but I noticed ESRI has an OverviewClass - how do I make use of this with the AxMapControl?
3
votes
1answer
114 views

Prevent ArcGIS from maintaining extents during resize

Background: I have a custom ArcGIS application written using ArcGIS Engine 10.0 that at its simplest form is just a map control inside of a resizeable form. The Problem: During resizing of the ...
5
votes
1answer
751 views

Drag a Feature in ESRI, ArcObjects Engine (AxMapControl)

I'm trying to implement moving a point feature in a custom C# ArcGIS Engine application on an AxMapControl. I've already created a custom tool to do some other things. And I can track when the user is ...
0
votes
1answer
504 views

How to display scale on ArcGis-Engine map?

I embedded ArcEngine into a c#/wpf application and use it to display a map. Now for print my client needs to display the scale of the map like it is used on street maps (the small bar which shows how ...
5
votes
1answer
518 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
0answers
285 views

Convert FeatureLayerClass to shape file error : Item not found in collection

so following this link http://edndoc.esri.com/arcobjects/9.2/NET/91e3e8a0-d355-43d2-a201-0a8ceb719334.htm I am able to convert my featureLayer into a shape file and export it. However, some how for ...
4
votes
1answer
1k 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
2answers
683 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
734 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 ...
2
votes
0answers
327 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 ...
6
votes
2answers
756 views

How to read data from PostGIS in DotNet (VB.Net/C#)

I have stored my data in PostGIS (PostgrSQL). Now I want to read the data in DotNet ArcEngine Application using VB.NET/C#. Anyone know how to read the data from PostGIS in .Net? Regards
4
votes
1answer
202 views

Create a esri layer file through web map

Is there some way to create a layer file through web mapping application. If I expose data through a map service is there a way to create a .lyr file?
3
votes
2answers
106 views

Is there a way to center an IPointCollection?

I built an IPointCollection and can display it, but I would like to display multiple copies in different locations. Is there a way to center a point collection on another IPoint?
2
votes
1answer
417 views

Draw Triangle Polygon with Dynamic Display

I'm trying to draw a custom polygon in Dynamic Display but its really not working at all. I can get it to work if I do this: IPointCollection pc = seg.setRectangle( mapcontrol.map.extent.envelope) ...
1
vote
1answer
152 views

How to manipulate annotation text outline color in ArcEngine?

I can get the color of my annotation text like this: IColor TextColor = lpLabelEngine.Symbol.Color; How can I get / set the outline color? Something like this, I want a black letter with a ...
0
votes
0answers
58 views

hDC of DynamicDisplay always 0

When I try to access the hDC of my dynamic layer the result is always 0. Is there a way to get a non zero hDC from a layer that inherits BaseDynamicLayer? public class BalloonCalloutLayer : ...
0
votes
1answer
151 views

How can I make a BaseCustomLayer Draw() fire more often?

I'm experimenting with the idea of replacing my dynamic display moving graphics with the static (DynamicDisplayEnabled = false) moving graphics. public class CustomLayer : BaseCustomLayer { ...
3
votes
0answers
269 views

ArcObjects - WFS:

Hy, has anybody an example concerning accessing data from a WFS server by using the DataInteropability in ArcObjects? I'm getting the right field definistion, but don't know how to read the data. ...
2
votes
1answer
291 views

How to change standard button bitmap of esri tool/command in ArcEngine 10

I'd like to use some of the standard 'out of the box' esri tools e.g. Measure Tool in an ArcEngine app, but I'd like to change the default bitmap of the tool button. Any suggestions would be ...
5
votes
4answers
333 views

How can I create a universal ArcGIS 'Current tool' property?

I have a base tool class which handles 90% of my custom logic, but some tools need to set themselves as the current tool. The operations between ArcEngine's IToolbarControl and ArcDesktop's ...
3
votes
2answers
822 views

App using ArcGis Engine throws error at customers

I developed a program using the ArcGIS Engine 10.0. On my development computer it runs nicely, but when I deploy the binary to the customer computer the program throws an exception when trying to ...
8
votes
1answer
529 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: ...
4
votes
4answers
1k views

How to determine a point lays within a polyline in arc engine?

I recently asked a similiar question on this, however I needed to know if there is a way to solve this if I only have a IPolyline Feature, and not the whole layer. I want to know if I can determine ...
4
votes
3answers
848 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 ...
2
votes
2answers
597 views

Drawing in ArcGIS Engine

I am trying to port over a large amount of code for drawing lines, bitmaps (with transparency), and text onto our map display. Originally it was done using Dynamic Display and IDynamicMap but that is ...
5
votes
2answers
491 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 ...
12
votes
1answer
382 views

Hyperlink tool use in ArcEngine

I'm having some difficulties using the hyperlink tool (ControlsMapHyperlinkTool) in ArcEngine. Does anyone have any experience with it? It looks like it behaves correctly except that every time a ...
1
vote
1answer
280 views

Integrate ArcGIS 10 extension INTO ArcEngine 10

I was wondering if there is a way at all to use some of ArcGIS 10's extension into arc engine. A good example would be if we could put Arc Hydro extension into ArcEngine. Thanks and Regards, Kev
3
votes
2answers
223 views

How can I load .SID files in ArcEngine?

How can I load .SID files in ArcEngine? I think its possible, but I can't find any links. With Kirk's help I got it here's the code: public void add_SID_file(string dir) { ...
5
votes
1answer
382 views

New Snapping while editing vertex's in ArcEngine 10

Is it possible to use the new (not classic) snapping functionality when editing the vertices of a polygon feature in ArcEngine 10. I would like editing vertices to behave exactly the same as editing ...
4
votes
1answer
322 views

How can I import external bookmark (.dat) using ArcEngine

Does anyone know how to use arcObjects (specifically ArcEngine for me) to import a bookmark (saved as a .dat) that was created and saved externally using ArcMap? I have an ArcEngine application that ...
1
vote
0answers
258 views

Spatial Reference and Area/Length Attributes relationship

I currently allow users to add a shape file in. From the shape file, allow the user to generate a new layer base on the polygons from the shape file's polygon they imported. Generating the new ...
1
vote
1answer
295 views

If a shapefile with geometry esriGeometryPoint is valid is it guaranteed to have a non null featureclass?

I have been given a point shapefile but it's feature class is null. I haven't seen this before so I'm wondering if the data is bad or if it's something I need to handle with code. //I was using this ...
2
votes
1answer
253 views

arcgis10: export eventlayer (from querylayer) to ArcSDE

I am not using arcmap but I am creating a arcgis desktop console app. I am pulling an external SQL table in as a querylayer. This table has lat & long so I created an eventlayer (or ...
3
votes
4answers
1k views

Help with QueryFilter

I have a query filter which works if pass a new instance of QueryFilterClass without setting any properties. But it breaks if I set the WhereClause. I get an error 0x80040358 ...
3
votes
2answers
273 views

SQL statements on a Geodatabase

I have converted a shapefile into a geodatabase which I use for geocoding via the ILocator interface. It has the extension (.mdb) and contains address fields with a point which is stored as a long ...
4
votes
2answers
91 views

Given a collection of IPoints is there a quick way to get the extent that contains them?

I have a bunch of IPoints. I need an extent which contains all of them. Is there a quick way to do it? I had the idea of converting them to screen coordinates and then figuring it out manually but ...
5
votes
2answers
710 views

Identify features

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 helpfull. ...
0
votes
1answer
334 views

How to print ActiveView to printer in ArcEngine 10

I am following a printing tutorial, but it's not working. The tutorial is here: ...
1
vote
1answer
402 views

Adding a marker symbol to a MapControl

How do I add a marker symbol to an ArcGIS Engine MapControl at a specific coordinate?
1
vote
1answer
259 views

Capturing Feature Dragging and Dropping, ArcEngine 10 .net 4

I am currently trying to implement something that captures the feature that i clicked on and dragging. Basically i want to be able to "OnMouseUp" figure out the item I was dragging, so I can do some ...
1
vote
2answers
2k views

ArcEngine 10 Polyline with arrow

I was wondering if there is a way to draw a polyline but with an arrow head at the end point? Thanks all IPolyline line = new PolylineClass(); ...
2
votes
1answer
470 views

Drag and Drop with Arcengine MapControl within WindowsFormsHost in WPF

I have an application that requires dragging and dropping onto Arcengine's Mapcontrol in a Windowsformhost. I have set the Allowdrop property on both the host and the control itself and it still does ...
4
votes
1answer
420 views

Is there a way to get the X,Y from a feature class?

I currently have an instance of a selected feature class, and I want to be able to get the midpoint X,Y (if its polygon) or the X,Y (if its IPoint) of the feature from the layer, is there some build ...
3
votes
2answers
370 views

Is there a way to make a straight line in ArcEngine 10 (Polyline but with ONLY start and end)

So I want to allow the user to create a connection between 2 polygons on my map. So it doesn't make sense to allow them to draw polyline with multi points. My question is, is there a way I can do ...