Tag Info

Hot answers tagged

3

I would try registering an eventlistener, to help debug what's going on inside of the gp tool. public static void Test() { InvokeTool(@"C:\Program Files (x86)\ArcGIS\Desktop10.1\ArcToolbox\Toolboxes\3D Analyst Tools.tbx", "AddSurfaceInformation"); } public static void InvokeTool(string tbxPath, string toolName) { var gp = new ...


3

The answer to your question is subjective (a matter of opinion) so it might be voted down (-1). Since your new to this site, I will go ahead and answer -- mapserver, open layers and postgis sql would be a very good combination for an open source solution. Geoserver is also an option instead of mapserver -- it is java based. There are also other javascript ...


2

You need to wrap individual paths into the higher-level geometries, which is a Polyline. Then you can check for intersection with another geometry. The most reliable way to wrap a path in a polyline is to: Create a new instance of Polyline Cast the original Path as ISegmentCollection Cast the new Polyline as ISegmentCollection Add the path's segments to ...


1

Please read the following information. http://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html In the "ASP.NET" section, there is the instruction for IIS, and also you can download "proxypage_net.zip" which include proxy.ashx. Hope this helps you.


1

Although I have found no documentation to the effect that a Projected Coordinate System is required it is perhaps unsurprising that a Geographic Coordinate System is unsupported because the length of a degree varies depending on the latitude. I suspect that a documentation enhancement is the most that is likely to happen with this but I encourage you to ...


1

The reason is, because mouse wheel event is enabled for only activated window (focused window). So, when you press the tool, then MapControl lost focus and the tool command (window) will get focus. Here the sample how to set focus on MapControl when you activate the custom tool. [DllImport("user32.dll")] static extern IntPtr SetFocus(IntPtr hWnd); /// ...


1

I found two solutions for my question. The first one is to override the ProcessCmdKey method in my DockableWindow class e.g: protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == (Keys.Alt | Keys.A)) { button1.PerformClick(); return true; } if (keyData == (Keys.Alt | Keys.B)) { ...


1

If your Methods is capsulated to ArcMap Command, you could use AcceleratorTable. IAcceleratorTable pAccTable = m_app.Document.Accelerators; UID uid = new UIDClass(); //Some command uid uid.Value = "{E1F29C6B-4E6B-11D2-AE2C-080009EC732A}"; bool addedAcc = pAccTable.Add(uid, System.Convert.ToInt32(System.Windows.Forms.Keys.A), true, false, false) ; But, if ...


1

I had a similar problem with a custom tool. I have a custom form which gets opened by a button on an AddIn-Toolbar in ArcGis 10.x. On this form there is a button that should retreive the coordinates of a click in the map, snapping included. I could start the tool and handle the click in the map, but I could not get the value back to my form, because the cast ...


1

Your question is poorly stated. It as at once general, as it asks if anyone has ideas about how to implement MFDs, and specific, as it seems to ask what is wrong with you code. I'll try to answer this second conceptualization of your question here. You claim that the code you've posted is not optimized. I have rewritten the code below as I think you should ...



Only top voted, non community-wiki answers of a minimum length are eligible