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

learn more… | top users | synonyms (1)

3
votes
1answer
154 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 form,...
5
votes
1answer
1k views

Dragging Feature in ArcObjects and ArcGIS 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 ...
1
vote
1answer
906 views

Displaying scale on ArcGIS Engine map?

I embedded ArcGIS Engine 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 ...
6
votes
1answer
1k 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
386 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
2k 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
1k 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 http://help.arcgis.com/en/sdk/10.0/arcobjects_net/...
4
votes
2answers
1k 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
517 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
1k 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
258 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
119 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
634 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
219 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
69 views

hDC of DynamicDisplay is always zero

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
175 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
1answer
410 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
367 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
391 views

Creating 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 ArcGIS Engine's IToolbarControl and ArcGIS Desktop's ...
3
votes
2answers
1k 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
633 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
2k 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
1k 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
720 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
784 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
478 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
289 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
253 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
507 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
429 views

Importing external bookmark (*.dat) file using ArcGIS Engine?

Does anyone know how to use ArcObjects (specifically ArcGIS Engine for me) to import a bookmark (saved as a .dat) that was created and saved externally using ArcMap? I have an ArcGIS Engine ...
1
vote
0answers
288 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
391 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
302 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
2k 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 queryFilter....
3
votes
2answers
310 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
99 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 ...
4
votes
2answers
1k views

Identifying features using ArcGIS Engine?

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 ...
0
votes
1answer
474 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: http://edndoc.esri.com/arcobjects/9.2/NET/ViewCodePages/025b5da7-9b10-4623-a51e-c038c348ce29....
1
vote
1answer
535 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
278 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
3answers
3k 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(); ((IPointCollection)line).AddPoint((IPoint)sourceFeature....
2
votes
1answer
539 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
520 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
1k 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 ...
2
votes
1answer
189 views

Unchecking items in IToolbar?

I currently have an app with two menu bars. One being the AxToolbarControl in a UserControl and one in a separate menu bar containing in-house stuff. I currently have the issue where if I select ...
2
votes
2answers
1k views

Selecting Multiple Layers under Table of Contents

I have been trying out what ARCMap10 can do in terms of the TOC. And their TOC has a lot of good functionalities. I really want to figure out how to Group/Drag and Drop/ and select multiple layers. ...
3
votes
2answers
981 views

How to group layers in ArcEngine 10

I was wondering if there is a way I can code the TOC control so that I can select multiple layers and GROUP them together. So if i uncheck the group, all layers will be unchecked and be invisible. ...
3
votes
2answers
262 views

Programmatically reordering ArcGIS layers

I programmatically create several layers for my map and I want my layers to be on top of the layers from the original map. Is there a way I can do that? I also want to be able to put "bring forward/...
8
votes
1answer
3k views

How to Verify if a FeatureLayer already exists?

I am currently working on a project where when user loads up their map (mxd) into our system, we create several custom featuerlayers for them. My problem is though, I have no idea how to check if I ...
5
votes
1answer
289 views

Creating dynamic links between features

I currently want to create links between 2 features. Ie., I have 2 basins that flow out and I want to use a line/polyline to have a link out of them and both point to a common 3rd feature, indicating ...