POST
|
I could never get the Append Tool with the NO_TEST option to work so I called a Python script. Test Failed try { ESRI.ArcGIS.Geoprocessor.Geoprocessor gp = new ESRI.ArcGIS.Geoprocessor.Geoprocessor(); ESRI.ArcGIS.ConversionTools.MapToKML mk = new ESRI.ArcGIS.ConversionTools.MapToKML(); mk.in_map_document = @"U:\kmltest.mxd"; mk.data_frame = "Layers"; mk.map_output_scale = 24000; mk.out_kmz_file = @"U:\junk5.kml"; /*mk.is_composite = "NO_COMPOSITE"; mk.is_vector_to_raster = "VECTOR_TO_VECTOR"; mk.extent_to_export =""; mk.image_size = 2048; mk.dpi_of_client = 192;*/ gp.Execute(mk, null); } catch { MessageBox.Show("Failed"); } this.Close(); Python Fix appendStatus = RunPythonScript.ExecuteCommand("cmd", "/c " + @"C:\python26\ArcGIS10.0\python.exe " + @"U:\loc\GIS\PROJECTS\CustomTools\PythonScripts\append.py" + " " + input + "," + output); class RunPythonScript { public static Boolean ExecuteCommand(string command, string arug) { Boolean appendComplete = true; try { string result; Process pProcess = new Process(); pProcess.StartInfo.UseShellExecute = false; pProcess.StartInfo.Arguments = arug; pProcess.StartInfo.CreateNoWindow = true; pProcess.StartInfo.RedirectStandardOutput = true; pProcess.StartInfo.RedirectStandardError = true; pProcess.StartInfo.FileName= command; pProcess.Start(); result = pProcess.StandardOutput.ReadToEnd(); if (result.Substring(0, 4) == "true") { appendComplete = true; } else { appendComplete = false; } } catch { appendComplete = false; } return appendComplete; } }
... View more
04-02-2012
05:09 PM
|
0
|
0
|
1
|
POST
|
In my project, I hosted a ArcGIS mapcontrol in a WPF window through WindowsFormsHost. Everything works great. However, one issue bothers me. When the window size is not large enough, the window scroll bar shows up as I expected. However, the axMapcontrol displays on the top of the scroll bar, which makes the scroll bar be invisible. Please advise if there is a solution for this issue. Thanks!
... View more
12-28-2011
06:46 AM
|
0
|
0
|
387
|
POST
|
Actually the example "Draw text on a MapControl" coming with ArcGIS development kit has a better solution. http://edndoc.esri.com/arcobjects/9.2/NET/ViewCodePages/F54BEB08-DA6E-475a-8163-92439A754D06DrawText.cs.htm
... View more
12-22-2011
10:16 AM
|
0
|
0
|
18
|
POST
|
Thanks for the response Mike. I appreciate it. I think that the ArcGIS Runtime is really cool. I like the idea of being to run it against ArcGIS Server or in a disconnected mode using functionality on the local system. I also really like the architecture in that it forks off requests to multiple processes, i.e. it issues asynchronous HTTP requests that can be processed locally. This will work well with Windows 8. As an application developer what I want to do is to be able to add application specific coarse grain APIs to the set of functions exposed out. Today I can do that using an SOE in conjunction with ArcGIS Server. The thing that I'd like to be able to do is to leverage that work in the ArcGIS Runtime locally. I ask for that because having to develop a custom set of libraries/add-ins for the runtime is expen$ive. Perhaps this is not possible but if GP works then alot of the core infrastructure must in place. I have a dream that one day I will be able to write code for the ESRI platform that works across the various technologies you offer.
... View more
12-13-2011
05:20 AM
|
0
|
0
|
3
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|