1
vote
1answer
53 views

Extent is zooming map to 0,0

When I use this code (from the example): ESRI.ArcGIS.Client.Geometry.Envelope myEnvelope = new ESRI.ArcGIS.Client.Geometry.Envelope(); myEnvelope.XMin = -130; myEnvelope.YMin ...
1
vote
1answer
246 views

How to convert a shapefile polygon to raster in C#

Does anybody know a way to convert a polygon (vector) in a shapefile to raster data WITHOUT using ArcGIS Explorer Desktop? Is there a way to do this 'progmatically' in C# (WPF with ArcGIS runtime ...
2
votes
1answer
173 views

How to obtain map service url from within Server Object Extension (.NET)

I'm having trouble figuring out how to obtain the full url to the map service a Server Object Extension is running on top of. I bascially want: IMapServer4 mapServer = ...
2
votes
1answer
513 views

How to split zAware polyline by points programmatically with C#?

I'm trying to split a polyline by the boundaries of a polygon using IPolyCurve2.SplitAtPoints using C#. The polyline I'm trying to split is zAware and holds elevation values at a regular interval. ...
2
votes
1answer
193 views

Can't cast from IFeatureClass to IFeatureClassLoad [duplicate]

I'm attempting to load a large number of features (up to 310k) into a feature class. It is functional at the moment, but speed is a major issue. It takes about .42 seconds per 1000 features. I've ...
4
votes
2answers
256 views

Which Geodatabase supports SQL and is easily portable?

I want to choose the geodatabase type, which could be: permits direct sql queries. easily portable, because the app would installed in one computer. I know that the personal geodatabase is a good ...
5
votes
1answer
668 views

Select By Location in ArcGIS using C#

I am creating a tool which the user will select point or line features from the map and it will display their names in a list then after clicking on any of these features from the list, it will show ...
4
votes
1answer
377 views

Arcgis: Programmatically export to geotiff in different scales

I am totally new to ArcGis so please bear with me using the wrong terminology. I would like to programatically export geotiff files in different scales (e.g. 1:25000, 1:50000 etc) using arcgis10. ...
2
votes
1answer
373 views

Using a map from ESRI Server in a radMap

I was wondering if there was a way to use a map that I have stored on an ESRI server in a telerik radMap. I am not very familiar with the radMap control so any help would be appreciated. I have found ...
0
votes
1answer
593 views

How do I make points with label info in ArcGIS Silverlight?

I'm a new user of the Arcgis for Silverlight SDK. Using c#, I would like to add points with labels showing the id for point. How can I do this? Thanks in advance
1
vote
3answers
1k views

Merge separate features into single feature in a shapefile programmatically

I have a shapefile in which some features shares same values for all the attributes. I can merge them manually by going into edit session and, selecting features to be merged, and then using merge ...
2
votes
1answer
59 views

Should I use thread lock when implementing Enabled void in ArcGis Command?

I've noticed that that ArcGis Commands are activated asynchronously. So I supposed that there is a chance to corrupt memory without using thread locks when overriding Enabled void of custom ArcGis ...
0
votes
2answers
432 views

Using an InfoWindow with a Feature Layer and a DialogWindowBase

I need to have an infoWindow that displays the Outfields of a FeatureLayer. The infoWindow is popping up, but it is popping up no matter where you click on the map and it does not contain any of the ...
3
votes
1answer
765 views

Displaying information on a map using an InfoWindow

I am wanting to display information in an InfoWindow when the user clicks on a point on the map. I have implemented the InfoWindow in XAML, but I do not understand the code behind it. Any information ...
3
votes
1answer
901 views

Feature Layer is not showing the points on the map

I have a simple feature layer. The points will show up if I put the URL in a DynamicMapServiceLayer, but I need to use maptips, so that will not work. Below is my relevant XAML. If you need anymore ...
2
votes
1answer
100 views

How to output the ActiveView to a Jpeg image

I have an ArcGIS Desktop extension and I need to extract images from the map. How can I programmatically output the active view to a jpeg image?
2
votes
1answer
169 views

Get Annotations selection Arcobjects

i have annotations stored in mxd document, when i select some annotation , i tried to get the selection through graphics selection, so i got always the rectangle of the dataframe (because i'm working ...
2
votes
1answer
188 views

Error in Symbol Selector Sample

This question can seems to be n00b, but really im stuck at running this Arcengine Sample code, then i got this error i'm looking for any working example of Symbol Selector. i'm working on XP SP3, ...
1
vote
1answer
82 views

How to serialize IStyleGallery Object? [duplicate]

Possible Duplicate: Can I store an ArcObject inside a BLOB or XML field? I am saving shape file in database and now i want the symbology selected for the feature layer also get stored in ...
0
votes
2answers
672 views

Unselect Individual Selected Features using ArcObjects

I've been stumbling around with this issue for a bit now and I can't seem to find any relevant answer for it anywhere else. In my Add-In built using .NET ArcObjects/C# with Arc 10.0 I would like to ...
1
vote
1answer
472 views

Convert a FeatureLayer to graphics in Arcobjects

I want to convert a Map or FeatureLayer to graphics on Arcobjects 10.1, Any help or code examples Problem Solved this is the working code: private void Convert_to_graphics( IMapDocument doc) ...
1
vote
1answer
253 views

How to programmatically create ArcGIS Image Service and add it to map using C# / .NET?

How can I programmatically create ArcGIS Image Service and add that service to my MXD file programmatically? I am using C# .Net.
1
vote
1answer
484 views

Implementing Custom Selection Tool (Adding to current selection) with ArcObjects

I am trying to implement a custom selection tool in ArcMap 9.3.1 that is functionally similar to the default ArcMap selection tool with "Adding to current selection" enabled. ie. the user can click to ...
0
votes
2answers
205 views

How to add command developed with C# to ArcToolbox

I have a command that develop with c# . I want to add this command to the arctoolbox . is there any way to add command to arctoolbox in arcgis programmatically ?
0
votes
1answer
171 views

error running c# code

I'm new in programming . i'd like to write a simple code that can create offset from a polyline . i wrote the below code but when run the code i encounter to the error " Null reference exception was ...
1
vote
1answer
484 views

Custom C# tool populate field combobox parameter from layer parameter

I'm creating a custom tool for arcmap toolbox where user select FeatureLayer in one combobox, and in next combobox user can select a field from selected FeatureLayer. FeatureLayer combobox fills ...
5
votes
2answers
1k views

Detect Table of Contents Changes in ArcMap using ArcObjects

What is the preferred and/or most efficient method for detecting a change in the table of contents in ArcMap using ArcObjects? My current implementation relies on a dictionary with the names and ...
2
votes
3answers
556 views

How to change Map Scale programmaticaly in C# WinForm Project

I have created form with axMapControl and comboBox with values of possible scales (e.g. 1:1 000 000, 1: 500 000, etc). How can I change current map scale programmaticaly by using value from ...
0
votes
1answer
159 views

Which is Map format provide the best performance in Arcgis visual C# application

I am developing small Arcgis visual C# applications. I can display maps on the interface. Which is map format(.jpg , .tif , .png / Arcgis supported other map formats ) provide the best performance?
3
votes
2answers
1k views

Find intersection points of two polyline features

I'm currently working with street intersections trying to find point(or points) where 2 given streets intersect(!disjoin). Streets are all Polyline features, and I have to work with 2 features at ...
3
votes
2answers
938 views

Flash more than one feature in arcmap using C#

How to flash many features at same time in ArcMap using C# coding? Currently I call this function in a loop, private void FlashFeature(IActiveView _activeView, IFeature _feature) { IActiveView ...
2
votes
2answers
2k views

Geoprocessor Select By Location Using Features Instead of Layers

I have a simple spatial feature selection function that includes: public static void SelectByLocation(IFeatureClass sourceFC, ILayer selectLayer) { Geoprocessor GP = new ...
4
votes
2answers
890 views

I need help with saving Graphics to the a map

I have everything working just like I need it to, but when I add a new graphic to the map it does not save it. So I will add it, close the application, and when I reopen it the graphic is gone. I have ...
1
vote
1answer
225 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. ...
3
votes
2answers
3k views

Draw a circle in ArcGIS map

I have Center point(Latitude,longitude) for a place and radius. How to draw a circle/polygon on an ArcGIS map using Latlong and radius(also need WKT string). I am new to ArcGIS & do not have much ...
3
votes
1answer
238 views

Repairing disconnected layers with selection sets

Has anyone had any success of repairing disconnected layers that have selection sets that have their data sources broken in ArcGIS? Is there a way to detect this through code and then re-create that ...
2
votes
2answers
847 views

Programmatically convert multipart polygon to singlepart in ArcGis 10

I have a multipart feature and I need to convert it to a singlepart feature. Couldn't find any code sample. I wonder if i could get some help from you! I'm working with ArcGis10 and c#. Tks
1
vote
1answer
430 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 ...
5
votes
1answer
393 views

GP Progress Dialog in ArcGIS10

I have an ArcGIS custom IGPFunction tool. I want to use the GP progress dialog not the progress bar at the bottom of the ArcGIS window as I don't want people to interact with the map whilst it's ...
7
votes
3answers
789 views

E_FAIL when calling ESRI.ArcGIS.Carto.IImageServer.Initialize()

I am using ArcGIS Engine and Developer Kit 10 on Windows 7. Specifically, I'm writing an ArcObjects console program using Visual C# Express 2008. I am attempting connect to an image server via a URL ...
3
votes
1answer
2k 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
2k views

How to create a report from selected features in ArcMap

I am new to ArcGIS and I am trying to create an Add-In button which can figure out which polygons are selected and query the selected polygons to generate a report on the underlying metadata ...
4
votes
1answer
250 views

Closing MeasureTool Window

I'm activating the built in ArcGIS measure tool using the following code: ControlsMapMeasureTool measureTool = new ControlsMapMeasureToolClass(); measureTool.OnCreate(_axMapControl.Object); // set ...
3
votes
2answers
388 views

uniquely identify feature classes & compare them for equality

I want to implement EqualityComparer<T> for feature classes so that I can stuff them into a Dictionary or HashSet. For motivation, say that I am looping over many IFeature objects which belong ...
2
votes
3answers
576 views

Select “interior” lines of a polygon-to-line layer

I have a polygon featureclass that has adjacent features. Using Arc10, I am turning those polygons into lines using the "Featureclass to Lines" tool. Now I would like to select ONLY THE INTERIOR ...
2
votes
1answer
331 views

CodeDom.Compiler fails in Arcmap add-in, but works from console app

The Test method in the code below succeeds in a console test app, but fails when I call it from within an Arcmap add-in, throwing a ReflectionTypeLoadException with a loader exception saying: ...
3
votes
2answers
364 views

Where to buy training licenses for learning ArcObjects?

A client of mine wants me to do some work with C# and ArcObjects. However, I have no real experience with C# (or much ArcObjects except with Java to be honest). Rather than outsource the work, I ...
3
votes
1answer
338 views

Draw text in PageLayoutControl in OnAfterDraw

I have a PagyLayoutControl in a print preview dialog. It shows the same extent and layers as the master MapControl. Both controls are not syncronised, because changes made in the PageLayoutControl ...
1
vote
2answers
430 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
651 views

DTED/GeoTiff layer: Get elevation under mouse pointer

I have a simple desktop app with a map control. The map data that will be available to show will be either DTED files (Military Analyst's catalog / MADTEDLayer), or GeoTiffs (created by gdal). I want ...