<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.esri.com/Info/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ArcGIS Explorer Blog : geoprocessing</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/geoprocessing/default.aspx</link><description>Tags: geoprocessing</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP2 (Debug Build: 61120.2)</generator><item><title>Creating add-ins that execute geoprocessing services</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2009/08/31/creating-add-ins-that-execute-geoprocessing-services.aspx</link><pubDate>Tue, 01 Sep 2009 05:05:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:5626</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>1</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/5626.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=5626</wfw:commentRss><description>&lt;P&gt;Using the ArcGIS Explorer SDK you can create add-ins using Visual Studio&amp;nbsp;that connect to and execute geoprocessing services.&amp;nbsp; With SDK capabilities such as TrackPoint, TrackLine, and TrackPolygon, users can create geometries on the map which can be packaged with other parameters as inputs to the geoprocessing service.&amp;nbsp; When the service has finished, outputs from the service can be displayed on the map, used in popups, and more depending on what is appropriate for the type of information returned.&lt;/P&gt;
&lt;P&gt;The &lt;A class="" title="Drive time analysis sample" href="http://blogs.esri.com/Info/controlpanel/blogs/Here’s%20an%20outline%20of%20the%20steps,%20using%20the%20Drive%20Time%20Analysis%20sample%20to%20illustrate%20some%20specific%20points:" target=_blank&gt;drive time analysis sample&lt;/A&gt; included in the SDK Help shows a working example of a DockWindow add-in being used to call a geoprocessing service and add the results to the map. Here’s an outline of the steps using the drive time analysis sample to illustrate some specific points.&lt;/P&gt;
&lt;P&gt;First, make sure you have a supported development environment and the ArcGIS Explorer SDK installed. The SDK can be&amp;nbsp;obtained from the &lt;A class="" title="SDK download" href="http://resources.esri.com/arcgisexplorer/900/index.cfm?fa=download" target=_blank&gt;ArcGIS Explorer download page&lt;/A&gt; and you&amp;nbsp;can download and install&amp;nbsp;Microsoft &lt;A class="" title="MS Visual Studio Express" href="http://www.microsoft.com/express" target=_blank&gt;Visual Studio&amp;nbsp;2008 Express&amp;nbsp;Editions&lt;/A&gt; for free.&lt;/P&gt;
&lt;P&gt;Next, use the ArcGIS Explorer DockWindow project templates to create an add-in with a dockable window.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5627/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;If you've not created an add-in before, you can review&amp;nbsp;a &lt;A class="" title="Building your first button blog post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2009/08/20/getting-started-with-the-arcgis-explorer-sdk-your-first-button.aspx" target=_blank&gt;recent blog post&lt;/A&gt; that covers the basics and also view a full walk-through on &lt;A class="" title="Creating a custom DockWindow" href="http://resources.esri.com/help/900/arcgisexplorer/sdk/doc/f894783b-cebb-4b24-bc85-b13ea7759040.htm" target=_blank&gt;creating a custom Dock Window&lt;/A&gt;&amp;nbsp;in the SDK Help.&lt;/P&gt;
&lt;P&gt;In Visual Studio add a web reference to the project and enter the URL of the SOAP endpoint of the geoprocessing service that you want to work against.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/e3/images/5628/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;This will create an API to connect to the geoprocessing service and program against it. If you have not programmed against a SOAP API before, refer to the &lt;A class="" href="http://resources.esri.com/help/9.3/arcgisserver/apis/soap/index.htm" target=_blank&gt;Using SOAP to access ArcGIS Server Web Services&lt;/A&gt; Help topic for an introduction.&lt;/P&gt;
&lt;P&gt;The information you need to pass in and receive back from the service will depend on the geoprocessing service that you are working with. If the service has input parameters,&amp;nbsp;work out&amp;nbsp;if this will be determined automatically by the add-in or if it will be chosen by the ArcGIS Explorer use scenario, and then think how you will gather this information from the user. &lt;/P&gt;
&lt;P&gt;Also look at the output of the service and work out how you want to display this information in ArcGIS Explorer. For example, the Drive Time Analysis sample lets the user to click on the map using the MapDisplay.TrackPoint method&amp;nbsp;and the resulting Point object is used to pass starting coordinates to the GP service. Here are some more tips on dealing with some of the different geoprocessing service types:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The GPBoolean, GPDate, GPDouble, GPLinearUnit, GPLong, GPString types can be mapped to equivalent .NET value types such as Boolean, DateTime, Double and so on - for example if these types are input to the service, add a NumericUpDown control to the DockWindow to allow the user to determine a numeric value.&lt;BR&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;From the GPFeatureRecordSetLayer type you can access attributes and shapes of a recordset of results. The shape from the recordset can be converted to an ArcGIS Explorer Geometry and added to the Map as a Graphic or Note. The attributes from the recordset can be formatted into content for a Note popup, or shown in a form or on the DockWindow; a similar approach can be taken with the attribute data represented by a GPRecordSet.&lt;BR&gt;&lt;/DIV&gt;&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV&gt;Services returning URLs to other documents or images can be incorporated into the content of the popup of an ArcGIS Explorer note or view. An &lt;A class="" title="UC plenary demonstration" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2009/07/13/arcgis-explorer-at-the-esri-user-conference-plenary-part-1.aspx" target=_blank&gt;example was shown&lt;/A&gt; during the User Conference plenary session.&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;
&lt;P&gt;Finally, program against the service to pass in information and display the result in Explorer using the input and output types you worked out in the previous step. Consider using a BackgroundWorker if the call to the service may take a while and your intended workflow means that the user can continue working while the call to the service is made. If the user must wait for the result, consider using a ProgressHelper to inform the user of progress, as shown in the Drive Time Analysis sample.&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=5626" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/geoprocessing/default.aspx">geoprocessing</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/add-ins/default.aspx">add-ins</category></item><item><title>BPC and Dev Summit - Some Custom Tasks</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/03/24/explorer-at-the-bpc-and-dev-summit-part-1.aspx</link><pubDate>Mon, 24 Mar 2008 17:16:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:1132</guid><dc:creator>bszukalski</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/1132.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=1132</wfw:commentRss><description>&lt;P&gt;Last week was a busy week for the entire Explorer team, with lots of interesting things happening and lots of great discussions in the Showcase area and elsewhere at Palm Springs. We appreciate all of your comments and feedback. We'll be highlighting some of the presentations and those discussions in a series of posts beginning this week.&lt;/P&gt;
&lt;P&gt;First, here's a few things that were shown during the ESRI Business Partner Conference and Developer Summit plenaries. We've covered some of the general things that we typically&amp;nbsp;demonstrate in previous posts on the &lt;A class="" title="Explorer at FedUC blog post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/02/26/explorer-at-the-feduc.aspx" target=_blank&gt;ESRI Federal User Conference&lt;/A&gt;, &lt;A class="" title="Explorer at PUG blog post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/03/01/explorer-at-the-pug.aspx" target=_blank&gt;Petroleum User Group meeting&lt;/A&gt;, and &lt;A class="" title="Explorer at GITA blog post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/03/10/explorer-at-gita.aspx" target=_blank&gt;GITA&lt;/A&gt;, so we'll focus on some of the different things that were shown last week. &lt;/P&gt;
&lt;P&gt;One of the custom tasks demonstrated is one you'll find on the &lt;A class="" title="Explorer tasks at the Resource Center" href="http://resources.esri.com/arcgisexplorer/index.cfm?fa=content_tasks" target=_blank&gt;Explorer Resource Center&lt;/A&gt;. Just choose File &amp;gt; Resource Center and choose the&amp;nbsp;Tasks tab. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1137/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;The one we chose&amp;nbsp;is the Weather Finder task authored by Michael Waltuch, one of the lead designers on the ArcGIS Explorer development team. Just click to open the NMF file, which will add the task to your current session. To learn more about this task click the Description link on the Resource Center entry, or choose About Weather Finder on the task UI. You'll learn the following:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT face=times size=3&gt;Weather Finder locates the nearest weather station to a specified location and reports its most recent weather observations. The task is based on a reverse geocoding web service located at GeoNames.org. To learn more about GeoNames go to their &lt;A href="http://www.geonames.org/"&gt;web site&lt;/A&gt; and see the &lt;A href="http://www.geonames.org/export/reverse-geocoding.html"&gt;service description&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;The popup window associated with the weather station includes a link to the National Weather Service's Telecommunication Operations Center which lists more information and a 24 hour summary for the weather station. &lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is a good example of a custom task which has been written using the &lt;A class="" title="Open the ArcGIS Explorer SDK Help" href="http://services.arcgisonline.com/440/explorer/help/hh_goto.htm#sdk.htm" target=_blank&gt;ArcGIS Explorer SDK&lt;/A&gt; to work against an existing Web service - In other words it's a mashup.&lt;/P&gt;
&lt;P&gt;Using one of the Portland bookmarks, we&amp;nbsp;right-clicked the pushpin&amp;nbsp;to use the Send To capability to use this location as the starting point for the Weather Finder task. The bookmark itself is the result of a task (the Create Notes task in this case), and when you take the result of one task and send it to another we refer to that as &lt;EM&gt;task chaining, &lt;/EM&gt;and you can &lt;A class="" title="Results Help topic" href="http://services.arcgisonline.com/450//explorer/help/hh_goto.htm#results.htm" target=_blank&gt;read more&lt;/A&gt; about that in the Help&lt;EM&gt;.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1136/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Here's the result of the Weather Finder task, the closest weather station to our Portland bookmark. In this case it's located at the airport. If we click the result pushpin you'll see the latest weather information in the popup, including links to the NOAA site providing more detailed information and historic data for this location.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1133/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;We also used a task we obtained from the &lt;A class="" title="Showcase on Explorer Resource Center" href="http://resources.esri.com/arcgisexplorer/index.cfm?fa=showcase" target=_blank&gt;Showcase&lt;/A&gt; area on the Explorer Resource Center. The showcase is a place where anyone can contribute tasks, results, or other items they want to share with the Explorer community. We chose the Flickr Task authored by Rob Dunfey, a member of the ArcGIS Explorer SDK team who also &lt;A class="" title="Flickr custom task blog post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/02/11/deploying-custom-tasks-with-supporting-files.aspx" target=_blank&gt;authored a blog post&lt;/A&gt; with more details about the custom task. This task is another good example of a mashup with other existing Web-based APIs, in this case it uses the &lt;A class="" title="Link to Flickr API" href="http://www.flickr.com/services/api/" target=_blank&gt;Fickr API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Here we typed in "portland" to return the first 20 Flickr photos tagged with that keyword. Each of the results can be clicked to open a popup displaying the photo.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1134/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Another task that was shown was a custom geoprocessing task, authored using the Model Builder in ArcGIS Desktop and published using ArcGIS Server. The task's UI was automatically generated by ArcGIS Server, based on parameters specified by the task author. The &lt;A class="" title="Open the ArcGIS Explorer SDK Help" href="http://services.arcgisonline.com/440/explorer/help/hh_goto.htm#sdk.htm" target=_blank&gt;ArcGIS Explorer SDK&lt;/A&gt; can be used to modify its UI, but we just used the default, automatically generated one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here we've used Send To again to use our Portland bookmark as the input location for a 1 and 3 minute drive time analysis.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1135/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;In upcoming posts we'll cover more of what was shown, including some of the technical details of the plenary and workshop presentations, and also cover some of the things we&amp;nbsp;showed that are coming in future releases.&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=1132" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Custom+Task/default.aspx">Custom Task</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Flickr/default.aspx">Flickr</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/geoprocessing/default.aspx">geoprocessing</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/BPC/default.aspx">BPC</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Developer+Summit/default.aspx">Developer Summit</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Find+Weather/default.aspx">Find Weather</category></item><item><title>Explorer at GITA</title><link>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/03/10/explorer-at-gita.aspx</link><pubDate>Mon, 10 Mar 2008 17:56:00 GMT</pubDate><guid isPermaLink="false">8296249d-4d69-4913-b1e7-14b85fcd9fb0:1062</guid><dc:creator>ArcGIS-Explorer-Team</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/comments/1062.aspx</comments><wfw:commentRss>http://blogs.esri.com/Info/blogs/arcgisexplorerblog/commentrss.aspx?PostID=1062</wfw:commentRss><description>&lt;P&gt;Over the last couple of posts we've covered ArcGIS Explorer at the &lt;A class="" title="Explorer at PUG post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/03/01/explorer-at-the-pug.aspx" target=_blank&gt;Petroleum User Group (PUG) Conference&lt;/A&gt; and also the &lt;A class="" title="Explorer at FedUC post" href="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2008/02/26/explorer-at-the-feduc.aspx" target=_blank&gt;Federal User Conference&lt;/A&gt; (FedUC). We're now at GITA, and here's a quick recap of what was presented at last night's ESRI dinner reception, and what will be hightlighted in the ESRI booth on the showroom floor.&lt;/P&gt;
&lt;P&gt;Once again Explorer's&amp;nbsp;ability to add a variety of internet content and local data sources was highlighted. For many users this is essential, as many already publish services using ArcIMS and ArcGIS Server, and have wide variety of local data that must be integrated.&lt;/P&gt;
&lt;P&gt;The City of Riverside is shown below with&amp;nbsp;a 3D model of a substation. The substation is part of a citywide 3D landscape that was authored in &lt;A class="" title="ArcGlobe and 3D Analyst" href="http://www.esri.com/software/arcgis/extensions/3danalyst/index.html" target=_blank&gt;ArcGlobe&lt;/A&gt; and published as an &lt;A class="" title="ArcGIS Server" href="http://blogs.esri.com/Info/controlpanel/blogs/ArcGIS%20Server" target=_blank&gt;ArcGIS Server&lt;/A&gt; globe service. Also&amp;nbsp;shown is part of the street scene, showing some of the 3D objects (trees, cars, poles) from the ArcGlobe 3D library, as well as several buildings designed using Sketchup.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1063/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1064/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;Utility assets such as hydrants, poles, pipes, valves, and others can be linked to files like&amp;nbsp;geo-tagged photos shown below. These linked and integrated&amp;nbsp;documents&amp;nbsp;can includes videos, diagrams, work orders, and other files.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1065/original.aspx" border=0&gt;&lt;/P&gt;
&lt;P&gt;A geoprocessing tool was authored that performs network tracing on the electrical network based on a trouble call location, identifying upstream and downstream infrastructure and devices that may be affected.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="http://blogs.esri.com/Info/photos/arcgisexplorer/images/1066/original.aspx" border=0&gt;&lt;/P&gt;&lt;img src="http://blogs.esri.com/Info/aggbug.aspx?PostID=1062" width="1" height="1"&gt;</description><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/ArcGlobe/default.aspx">ArcGlobe</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/Custom+Task/default.aspx">Custom Task</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/geoprocessing/default.aspx">geoprocessing</category><category domain="http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/tags/GITA/default.aspx">GITA</category></item></channel></rss>