arcmap

Developing ArcMap extension .Net books?

We have 2 new GIS programmer/analyst in our department (new to programming and ArcObjects) and I don't feel I'm qualified enough or have the time to teach them. So I'm looking for entry level books/tutorials for them to use as reference. The only books I can find for developing Extensions for ArcMap are written for VBA. Besides the ES...

Is there a way to get graphic text to scale in ArcMap?

I'm using this code to create text in ArcMap. But I can't seem to get it to scale like annotation text when you zoom in. Does anyone know how to do this? //'First setup a color. We'll use RGB red IRgbColor pRGBcolor = new RgbColor(); pRGBcolor.Blue = 0; pRGBcolor.Red = 255; ...

ArcGIS : Labels only rendered at 10,000,000 scale

I'm using ArcGIS Server 9.3 with an Oracle 10.2g database. I've created an MXD which contains my feature class and I've configured it to show one of the attributes as a label - both the feature class and the label are set to be visible at all scales. In ArcMap, the labels only show at a scale of 1:10,000,000 - as soon as I zoom in they ...

Opening ArcFM Attribute Editor from ArcObjects

I am trying to get the ArcFM Attribute Editor to open, after selecting a certain feature programatically. I figured the simplest way would be to grab a hold on a reference to its button, and call its OnClick method. Will that be the best solution? And how do I find the UID of the button? (If there's a general way of finding a button/comm...

How do you get a unique id for a layer or generate one in Arcmap?

Is there a way in arcobjects to get a unique id for a layer? If you do a search by layer name there could be possible duplicates. If there isn't a property is there a way to generate an id? I tried using the GetHash() but that didn't stay consistent. ...

Network analysis and adjacency matrices

I want to try and create a network for several hundred shapefiles that consist of polylines. The polylines are snapped to each other and consistent. Then I want to create an adjacency matrix for this network. What is the best way of doing this? I know how to do it on an individual basis by clicking through options within ArcCatalog, but...

Moving entities in ArcMap

For a project, I want to simulate movement of individual entities on a map. Someone recommended ArcGIS for this purpose, so I looked around a bit and found ArcMap. For anyone who is experienced with the program: is it possible to plot, say, a dot on a location of a map, and make it move using a for loop? I know this is a really general q...

Is it possible to animate markers in ArcMap?

I'm completely new to ArcGIS and ArcMap, but someone suggested this program to me for a project I'm working on. I would like to animate individual entities on a map, and was wondering if it is possible to do so in ArcMap. I asked this earlier here and a member directed me to a tutorial on animating in ArcGIS. The animation in the guide...

How to (programmatically) figure out the path of the current ArcMap document with VBA

Hi, I would like a Visual Basic for Application Function which shows the path of the current document. For example if ArcMap is displaying map.mxd I need to display its path. I found only some examples for querying the path of the datasources of the displayed layers. ...

How to Convert ILayer to IPolygon In ArcObjects

Having trouble converting an Ilayer to an IPolygon. I am developing a toolbar for ArcMap and I grab a layer via code from the side table of contents. The Layer is a Polygon, but the code won't convert it to a IPolygon. Can anyone help me out? This is the code I am using to try and convert it to a IPolygon... IPolygon poly = m_docum...

How to Capture an OnMouseDown Event in a ArcMap Control?

I have a Control in ArcMap in which I created with buttons, A Listbox and some more buttons. I want to add coordinate items to the list box. Scenario: A user clicks a Add a Coordinate button on the control. The user then clicks on the map to add the coordinate find the coordinate on the map. The coordinate gets added to the list box....

How do I get the DropDown selection from a Command Button in ArcObjects?

I have a dropdown and a Icommand button in the same toolbar in ArcMap. I can't seem to get access to the dropdowns selection when I am using the command button. How can I find the dropdown so I can find out what the user just selected? Thanks Scott ...

How to labele data when creating SHP from SQL?

I am using shell_exec("pgsql2shp.exe ....")in PHP and I got shp file but without labeled points (data) when visualizing..What I need is points with labeled data (names of points) as I can do in ArcMap. Thank you. ...

How to remove tags from a string in python using regular expressions? (NOT in HTML)

I need to remove tags from a string in python. <FNT name="Century Schoolbook" size="22">Title</FNT> What is the most efficient way to remove the entire tag on both ends, leaving only "Title"? I've only seen ways to do this with HTML tags, and that hasn't worked for me in python. I'm using this particularly for ArcMap, a GIS program. I...

comparing two DEMs

Hi, i have two Lidar las files, one is original let's say with X points. And the other is copy of the first las file but with Y points, where Y is less than X. Now, i wanted to compare how the Digital Elevation Models of these two las files vary... I wanted to get information like RMSE, standard deviation, etc... I would appreciate, if a...