esri

Web-based map authoring with ArcGIS Server?

I'm embarking on a project in which users will author, save, and share their own maps over the web. We will provide them with a large number of feature classes, but users will effectively author their own maps, map symbologies, etc. Furthermore, they will create and edit their own feature classes, which they can both map and share with o...

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. ...

Esri mapobects in Delphi 2010

Has anyone installed ESRI mapobjects activeX controls in Delphi 2010? I get a conflict on tTable as a component name. ...

Script or automate feature class creation in ESRI/ArcSDE

I'm looking for info on how to write SQL scripts to automate the creation of a versioned feature class in ArcSDE I want to be able to automate the process itself as well as put the scripts under version control. Can anyone point me to a resource that explains how to do this? Is this even possible? It seems like there are lots of interre...

Serialize a FeatureClass to XML in ESRI ArcGIS

How can I serialize an IFeatureClass object to XML? There are some resources for using IXMLSerializer on other ArcObjects, but that won't work for IFeatureClass because it doesn't implement ISerializable. ...

How to Add a Dynamic Layer to an Esri Map Control Programatically in WPF?

Just as the question asks. I have an Esri map control and want to add a Rastor image to the control in WPF and don't know how to do it. I see that I can add layers to the Map control, but is there a way to add a Raster image to a map control? I did find this code to turn the raster image into a Dynamic layer, but Im still lost on how ...

How to automate the finding of an M value along a route

Kirk Kuykendall had given a script example a few years back in an ESRI forum http://forums.esri.com/Thread.asp?c=93&f=996&t=88246&mc=4 as to how to find the M (measure) value of a point in a shapefile along a route when you clicked on the point. This is very handy, BUT..I have 1500 points that I need M values for. Is there a...

ArcObjects - IWorkspaceExtension and Component Category Registration

I have coded an implementation of IWorkspaceExtension (along with IWorkspaceExtensionControl, which declares the Init method), and registered it in the ESRI Geodatabase Workspace Extensions Component Category. However, when I connect to the Workspace, the Extension is not "Init"ed. I was able to get the implementation "Init"ed when I re...

How do I draw the points in an ESRI Polyline, given the bounding box as lat/long and the "points" as radians?

I'm using OpenMap and I'm reading a ShapeFile using com.bbn.openmap.layer.shape.ShapeFile. The bounding box is read in as lat/long points, for example 39.583642,-104.895486. The bounding box is a lower-left point and an upper-right point which represents where the points are contained. The "points," which are named "radians" in OpenMap, ...

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....

ESRI Map object - Is it possible to disable the MouseWheel event handler?

Hi there. I've posted this on the ESRI support forum, but no one has come back with a solution as yet. Background: I'm maintaining a C++ map display application that makes use of ESRI ArcGIS components (version 9.3.1 SP1). It instantiates a Map object (esriCarto::Map), queries for the IActiveView interface, and calls Activate to pass ...

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 ...

Combining bordering shapefiles in R

I have five shapefiles of bordering counties in California that I am trying to combine into one large shapefile and maintain the original borders of the counties. I then want to plot points such as this so the map only needs to be a simple map of county boundaries. Is there a way to do this in R or will I have to use something like Arc...

How to save esri map as an image file

Hi, I am using Silverlight 3 and I am trying to take a screenshot of esri map. I was able to take a screenshot and save as a file for silverlight controls, but when I try to access Esri map image, I get "Pixel access not allowed" error. I heard this is because of different domain (I am trying to get map image on the client side, and...

ways to convert current screen into array of bytes in silverlight3

Hi, I would like to know if there is any other way than using WriteableBitmap to convert the current screen into array of bytes. Because I am trying to get a screenshot of Esri map, but I am getting "pixel access not allowed" error. Please help. Thanks, ...

Getting an Access 2007 table (.accdb extension) in ArcMap programmatically

I have recently found a script from ArcScripts on how to get an Access table in ArcGIS programmatically and it works well. But this is for Access 2003 (.mdb extension) and earlier. The code is posted below, and I want to know how to modify it for using Access 2007 (.accdb extension) and later databases. Attribute VB_Name = "Access_conne...

Unable to cast COM object (IMapServer --> IMapServerObjects)

I have just deployed an AGS-based application to our web server. This app worked great in development, but after deployment to the server I get the following errror: Unable to cast COM object of type 'System.__ComObject' to interface type 'ESRI.ArcGIS.Carto.IMapServerObjects'. This operation failed because the QueryInterface call on the...

How do I finding multiple Intersection results via ReverseGeoCoding in ArcObjects?

The project I'm working on requires me to find intersections near a point (searching a street centerline layer). For 90+% of my searches, I seem to be getting the appropriate results, however in certain instances I'm getting intersections that are technically intersections as far as ArcObjects is concerned, but not as far as what I need...

How to create variables from strings in arcobjects?

This hopefully is a simple question with a simple answer. If I have a list box or something that has a list of like 4 years (like 2006 through 2009), how do I programmatically make variables of these years with names like pTable2006, pTable2007, etc (as ITable of course). If this isn't possible and I have publicly declared these tables...