Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [arcgis-engine]

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

0
votes
1answer
196 views

Making point move to right or left using ArcObjects?

I want to make a point and the point can move to the right or to the left. To make the point I can handle it , but I can already confused in the movement of the point. This code for draw point ...
3
votes
1answer
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); ...
1
vote
0answers
26 views

Implementing new Snapping in ArcGIS Engine C# Application?

As I can find, there are two kinds of snapping in ArcGIS 10.2.2: 1- Classic snapping. 2- New ArcGIS Snapping, which doesn't have any specific name as I know. I can't implement the New ArcGIS ...
14
votes
6answers
5k views

What are the rules for releasing ArcObjects from memory in .NET?

Do I need to release each object? Is some memory management handled for me?
0
votes
1answer
92 views

Installing ArcGIS Engine Runtime via image copy?

We have about 400 ArcGIS Runtime Engine 10.4.1 licences, where we will install on devices for emergency. These devices already up and running and using ArcGIS Engine Runtime 9.3. The time we are going ...
1
vote
1answer
912 views

Using intersect method of ItopologicalOperator gives error 0x80040239? [duplicate]

I would like to intersect a polygon and a polyline to know if the polyline is in the polygon. The code works but when i do it on more than 100 000 times in a for, there is this error : System....
3
votes
1answer
1k views

Snapping Polygon vertices to Point features using ArcGIS?

I have a set of polygons drawn using an inaccurate GPS PDA. these polygons are sharing nodes. After post-processing GPS data to get accurate coordinates i have a set of all the nodes, then i have to ...
0
votes
0answers
19 views

Rotating features using ArcGIS Engine?

Using ArcGIS Engine I want to rotate several selected features simultaneously, like the Rotate-tool in ArcMap allows me to do. I haven't found a similar tool yet. Is it even possible, and if so, ...
0
votes
1answer
99 views

Using ArcGIS Engine with Background Geoprocessing (64 bit)

Could someone suggest how to use ArcGIS Engine Background Geoprocessing (64 bit) in ArcGIS Engine 10.4 ArcObjects console application? I am using C#, .Net 4.5.2 framework, ArcObjects SDK 10.4 to ...
1
vote
1answer
18 views

Why feature.shape can't use multipoint type?

IPointCollection pointcollection = new MultipointClass(); p.PutCoords(x.lon, x.lat); pointcollection.AddPoint(p); IGeometry geometry = ...
2
votes
1answer
463 views

Drawing Rectangle with INewRectangleFeedback?

I´m developing in ArcGIS Engine and my question is how to draw a rectangle with INewRectangleFeedback interface. Here is my code but it does not create the rectangle. If someone could help me it would ...
0
votes
1answer
29 views

Error when using IFeatureCursor to inquire feature

As you can see the other attributes are doing well, but the shape of the feature throw an exception "Shape = "(pFeature).Shape" raises an exception of type "System.Runtime.InteropServices....
8
votes
1answer
3k views

Open source GIS engine that is similiar to ArcGIS Engine?

If I was to develop a mapping application to be a standalone windows app, is there an open source GIS engine that is somewhat comparable to ArcGIS Engine?
1
vote
1answer
62 views

Creating multi-row toolbar in ArcGIS Engine?

I am using ArcGIS Engine 10.1 and Visual Studio 2010 I created a MapControl App, (New Project>Visual C#> ArcGIS>Extending ArcObjects > MapControl Application) and added a toolbar (In MainForm and ...
1
vote
0answers
75 views

Adding to group layers in loop is slow in ArcGIS Engine?

I am using ArcGIS Engine 10.5.1. I wanted to ask and see if anyone else has encountered this and or found a work around. I have a loop in c# where I am taking a large set of layer files and adding ...
2
votes
0answers
400 views

Searching for features added in an edit session with QueryFilter only works when using object id or no WhereClause

I'm getting strange behaviour reading added features from a feature class while within an edit session. The feature class is in a personal geodatabase and is open in the map control in an ArcEngine ...
5
votes
1answer
1k views

Using Merge GeoProcess task in ArcGIS Engine with C#?

Having the hardest time getting the correct syntax when adding layers as gp parameters to call the Merge_management GeoProcessing Task. Below is just one of MANY, MANY ways I have tried with no luck. ...
2
votes
1answer
70 views

How to Remove Decimal Points From Measured Grid Label C#

I'm creating a map layout with a measured grid using visual studio and ArcGIS Engine 10.4. I was able to change all the properties for the grid label (color, font and font size), except for the part ...
0
votes
1answer
152 views

Printing a Form includes data grid and axmapcontrol [closed]

I have created a windows form with some controls in it like data grid and axmapcontrol, it seems that printform cannot print the content of the axmapcontrol. I need to create a table of data and a map ...
3
votes
1answer
917 views

Executing Dissolve method in ArcGIS Engine?

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 ...
3
votes
1answer
1k views

“Geometry cannot have Z values” exception in ArcGIS Engine

I'm trying to put a list of point features (selected points) into a new FeatureClass. but when I add them to my FeatureClass I get the "Geometry cannot have Z values." exception on the line "buff....
1
vote
0answers
35 views

Displaying NorthArrow on ArcObjects axSceneControl?

I have standalone application (ArcObjects C# 10.3) uses axSceneControl. How to display on the scene NorthArrow or Directional Arrow or something like that? I found an example for NorthArrow http://...
1
vote
0answers
52 views

ArcGIS Elevation and Z Coordinate

I have standalone application (ArcObjects C# 10.3) uses axSceneControl, I'm trying to get a mouse click point: private void M_axSceneControl_MouseDown(object sender, ...
3
votes
0answers
133 views

Using Spatial Analyst Classification in ArcGIS Engine? [closed]

I tend to use ML classification of Spatial Analyst ToolBox in ArcGIS Engine, I wrote this sample code: ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.Desktop); IAoInitialize ...
0
votes
1answer
323 views

Arcgis Visualbasic Templates

I am using ArcGis 10 Template windows application(Desktop) in VisualStudio 2010. i have added an ArcGis Engine Map Control and engine TOC Control in that. when I am Adding my digitized map to the map ...
1
vote
0answers
304 views

Spatial Reference and Area/Length Attributes relationship

I currently allow users to add a shapefile in. From the shapefile, allow the user to generate a new layer base on the polygons from the shapefile's polygon they imported. Generating the new polygon ...
0
votes
2answers
320 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. ...
2
votes
0answers
97 views

Create a shapefile from inMemory workspace

I am trying to convert a raster dataset into a shapefile using IConversionOp.RasterDataToPolygonFeatureData API. See the code below: IConversionOp conversionOp = new RasterConversionOp() as ...
0
votes
1answer
1k views

How to call a GP service from ArcObjects in .NET using ArcGIS Engine 10.2?

I published and successfully accessed a GP service in ArcMap 10.2, but I couldn't make it work in my .NET program using ArcObjects 10.2: IGeoProcessor gp = new GeoProcessorClass(); gp....
2
votes
4answers
3k views

How to set a definition query for an AGS layer?

Is it possible to 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 ...
0
votes
3answers
236 views

Building desktop map applications in ArcGIS Engine using Python?

Is it possible to build custom desktop mapping applications in ArcGIS Engine with Python language?
7
votes
2answers
374 views

Does ArcPy work for Engine or Server the same as Desktop?

I am contemplating a project where there is not going to be access to ArcGIS Desktop and wondering if Engine and/or Server install ArcPy and Python? Is this possible? Does anyone have an example?
0
votes
1answer
50 views

Porting ArcGIS Engine to ArcGISRuntime SDK for .NET, dealing with interior/exterior polygon rings

I've inherited some code that converts ArcGIS Engine IPolygon4 objects to GeoPackage-compatible objects. The format is very specific in terms of what's permitted with exterior and interior rings. I ...
4
votes
2answers
2k views

What is needed to develop ArcGIS application in C#? [closed]

I want to develop a piece of software that uses the ArcGIS Engine. This application needs to import user data (GeoTIFF, etc) and allow users to put points and polygons on a map. I would think this ...
5
votes
3answers
494 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 ...
5
votes
1answer
942 views

How to set up graduated colors for a layer using ArcObjects?

I have to render a feature layer with a graduated colors renderer, using the ArcGIS API for Java (or VB, .NET). As the feature layer data is created dynamically using webservices, I don't in advance ...
1
vote
1answer
96 views

Using ArcObjects Sample for Custom vertex editing commands?

I downloaded this sample : http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#/Sample_Custom_vertex_editing_commands/0001000002pz000000/ it's a Dynamic Link Library. using ...
2
votes
1answer
310 views

Self-Sizing Labels [closed]

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, ...
7
votes
2answers
1k views

Is it a bad idea to hold references to ArcObjects inside business classes?

According to best practices is it a bad idea to cache features and geometries inside business objects? If it is bad, what is the alternative way? References to features may be replaced with their Ids,...
1
vote
0answers
160 views

Scaling Selection Symbols with Reference Scale using ArcGIS Engine?

With an ArcGIS Engine application, I am trying to figure out how to have the Selected Symbols scale with reference scale when selected using ArcObjects. They are currently not scaling correctly in ...
1
vote
1answer
2k views

How do I calculate polygon area with arcobjects?

I'd like to develop an application with ArcEngine that can calculate the area of a polygon. I wrote the below code to select a polygon in a combobox: for (int i = 0; i < pmapcontrol2.LayerCount; ...
3
votes
1answer
1k views

How to make a custom ToolbarControl Item in ArcEngine?

I would like to create a custom toolbar item in ArcEngine. I add items like this ((AxToolbarControl)toolbarControl).AddItem( myCustomItem ) I need to know how to create a custom item in ...
3
votes
1answer
882 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 ...
3
votes
2answers
322 views

Loading .SID files in ArcGIS Engine?

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) { ...
0
votes
1answer
151 views

how to save layers in combobox

I'd like to develop an app so that user introduce the layers in comboboxes ( layers are slope,aspect,elevation etc) then user use these layers for processing in another form(processing form) and dose ...
1
vote
1answer
435 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 ...
11
votes
3answers
20k views

Remove lock on feature class

When i try to delete a feature class , after or during the use of an Arcgis engine app which uses the same feature class i got an error concerning the lock , so i can't get ride of this lock until i ...
2
votes
0answers
110 views

How to erase using feature(s) within the same feature class? [closed]

I develop an application and I want to erase overlay features in a feature class in the application. I use ArcEngine 10. I don't have another layer that have erase features then I can't use erase tool ...
1
vote
0answers
504 views

Convert FeatureLayerClass to shapefile 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 shapefile and export it. However, some how for ...
6
votes
3answers
1k views

Numbering polygons according to their spatial relationships?

I have, for example, this layer in postgresql (polygons): table : poly (objectid: integer, num: integer, shape: geometry) I want to enumerate the polygons from left to right and top to bottom like ...