Showing posts with label ArcGIS 10. Show all posts
Showing posts with label ArcGIS 10. Show all posts

Wednesday, March 2, 2011

P2P Collaboration in ArcMap

Most collaboration technologies require a central server to manager communication. Email, web browsing and instant messaging all require a server to handle communication between clients. This post re-introduces a sample originally published in May of 2008 that facilitates server-less map collaboration or “peer-to-peer geo-collaboration”.

The new add-in for ArcGIS 10 can be downloaded (with source code) from here.

How to Install:

Download the contribution from the code gallery (link), unzip the file and double click on file with the esriAddIn extension. This will launch the Esri add-in installer, click Install Add-In

How to Uninstall:

The add-in can be removed by clicking Customize > Add-In Manager, selecting P2P Collaboration from the list of installed add-ins and clicking Delete this Add-In.

How to Use:

First, display the collaboration toolbar by clicking Customize > Toolbars > P2P Collaboration. Clicking on the only button on the toolbar will display the p2p collaboration dockable window as shown below.

 image

Before you can collaborate with other peers you must first connect to a mesh (or peer cloud).  A mesh is virtual network comprising of two or more peers.  When the Connect button is clicked the following dialog is displayed.

image

The Username is a friendly name that you want to be identified on the mesh as.  By default, a password is not used. If you specify a password then you will ONLY be able to "see" other peers that used the same password. Using a password is a good method of excluding unwanted peers.

Most P2P applications are considered to be examples of hybrid P2P technology. This is because most rely on some sort of server interaction, such as a DNS server.  In the case of this add-in, a centralized resource is required for peers to find other peers. This central resource is called a peer resolver.

The p2p collaboration add-in supports two resolver types:

  1. PNRP
    Peer Name Resolution Protocol (or PNRP) is a proprietary technology by Microsoft. The add-in supports PNRP 2.0 which is installed by default on computers running Microsoft Windows Vista and an optional install for Microsoft Windows XP SP2.  Unfortunately PNRP is not supported on Microsoft Windows 2003/2008.
  2. Custom
    This is the address of a custom peer resolver running on your network. Details on how to configure and start a custom peer resolver are detailed below. The purpose of the resolver is to exchange IP addresses (and ports) of other peers. All subsequent communication is done on a peer-to-peer basis.

Within a few seconds on connecting you should see the names of other peers appearing in the list. The user in bold is you.

 image

There are five ways you can collaborate with other peers:

  1. Chatting
    To chat click the Chat tab and start typing. It is important to note that chatting is communal, that is, all peers see all text messages. 
    image
  2. Publishing geo-referenced screenshots
    Returning to the Users tab, if you right click on another peer's name you will see the following context menu appear. Clicking on Publish Map will send your current map display to the selected user.  The selected user (i.e. Jim) will automatically receive a new raster layer in his map document. 
    image
  3. Requesting geo-referenced screenshots
    In the example above, Jim sent a screenshot to Bob. This would have required Bob to make an explicit request to Jim. The p2p collaboration add-in has the capability of requesting a screenshots from other peers without them knowing! To covertly request a screenshot, select Request Map in the context menu. To stop other peers from harvesting screenshots (or "maps") from your computer, unchecked the Map > Share option from the main menu.
    image
  4. Add, removing, editing shared graphics and ink
    Shared graphics is probably the most useful feature of the add-in. All peers can add, remove, edit graphics collectively. A line or box added by one peer can be moved or deleted by another peer. Any graphic from the Drawing toolbar or ink from the Tablet toolbar is supported.

    image  

    By default, all graphics/ink that is added to the map are shared with all other peers. If you want to add graphics/ink to your map without it being shared then you can disable sharing by clicking Graphics > Share. 
    image 
  5. Share navigation
    From a screenshot above you may have noticed a entry in the peer context menu called Zoom to Map.  This will change your map extent to be same as the peer you selected.  Essentially you can see what areas other people are looking at.  However there is a significantly more advanced feature called shared navigation that allows one peer to control the map display of other peers.  The controlling peer (aka the master) must first enable extent sharing from the main menu (Extents > Share). 
    image

    Other peers (aka slaves) must then subscribe to the master peer’s map extent.  To subscribe to another peers extents click Follow in the peer context menu as shown below. 
    image

If you choose to use PNRP as your organization’s peer resolver then please remember that this is only supported on Microsoft Window XP SP2, Microsoft Windows Vista and Microsoft Windows 7. Another disadvantage of PNRP is that it requires partial support for IPv6. If your network and routes do not support this protocol then PNRP may not function correctly. On Vista, PNRP 2.0 is already installed and running. However, PNRP, by default is not installed on Microsoft Windows XP. To install PNRP on Microsoft Windows XP follow these steps:

  1. In the Control Panel, double-click Add or Remove Programs.
  2. In the Add or Remove Programs dialog box, click Add/Remove Windows Components.
  3. In the Windows Components Wizard, select the "Networking Services" check box and click "Details".
  4. Check the "Peer-to-Peer" check box and click "OK".
  5. Click "Next" in the Windows Components Wizard.
  6. When the installation completes, click "Finish".
  7. From a command shell prompt, start the PNRP service with the following command: net start pnrpsvc.

After installing PNRP on Microsoft Windows XP, there is one more step. The version of PNRP that is included with Microsoft Windows XP is not compatible with Microsoft Windows Vista. To upgrade PNRP 1.0 to the Vista compatible PNRP 2.0 you need to install KB920342 from here.

For greater compatibility, your organization may choose to run a custom peer resolver on your network. The downloadable contribution includes a sample custom peer resolver that is specifically designed for the ArcMap add-in. The customer peer resolver is named ESRI.PrototypeLab.P2P.PeerResolver.exe and is located in the following subdirectory of the download.
ESRI.PrototypeLab.P2P\ESRI.PrototypeLab.P2P.PeerResolver\bin\Release

image

The for best results, leave the Server name as localhost and the Protocol set to Tcp. If there is an obvious port conflict then change it to something else. For example, port 80 might be used by a web server. To start the peer resolver service click Start.  If you close the application by clicking the "X" button then the application will continue running in the windows system tray as shown below.

image

When the peer resolver is minimized to the system tray, use the right click menu (or “context menu”) to start, stop, open or close the resolver.

Lastly, to assist with configuring and testing your setup, the download includes a simple test app. This file is called ESRI.PrototypeLab.P2P.Test.exe and is located here:
ESRI.PrototypeLab.P2P\ESRI.PrototypeLab.P2P.Test\bin\Release

image

Wednesday, July 21, 2010

Z Swipe Tool for ArcGIS Desktop 10

Z Swipe Tool for ArcGIS Desktop 10

Z Swipe Tool for ArcGIS Desktop 10

ESRI’s Applications Prototype Lab has just published a new addin to the code gallery called the Z Swipe Tool.  The addin allows users to filter features in ArcScene based on vertical position using a slider.  Under-the-hood, the addin works by dynamically amending the definition queries of participating layers.  The Z Swipe Window (pictured above) contains a tree view for users to select (or de-select) participating layers.

The addin is ideal for working with documents with vertically concurrent features such as floors and services of a high-rise building.

The addin is available here and includes full source code.

Tuesday, July 20, 2010

ArcGIS Diagrammer for ArcGIS 10 Released

ArcGIS Diagrammer

ArcGIS Diagrammer is now available for the newly released ArcGIS 10.  The application can be downloaded here from the new code gallery on the ArcGIS resource center.

If you still have ArcGIS Desktop 9.2 or 9.3 then you can still use the previous version available here on ArcScripts.

The most significant change or addition to Diagrammer in the 10 release is the addition of Terrain dataset support.  Unfortunately we could not add support for mosaic datasets because they currently do not support xml serialization, that is, terrains are currently omitted from xml workspace documents exported from geodatabases.  Diagrammer also needed to be updated to reflect changes to how ArcGIS 10 manages metadata.  Overall it is basically the same Diagrammer you love or hate.  :-)

If you think that concepts presented in ArcGIS Diagrammer (and other samples like XRay) should be formally ported into the core ArcGIS product then please voice your opinion on ESRI’s ideas forum.

Friday, July 16, 2010

Presentation AddIn for ArcGIS Desktop 10

Presentation AddIn for ArcGIS Desktop 10

About this time last year, the Applications Prototype Lab at ESRI published a presentation tool for ArcGIS 9.2/9.3.  That release is discussed here and can be downloaded from the old code gallery here.

Today, the lab released a new version of the presentation tool as an AddIn for ArcGIS 10.  This AddIn is similar to the presentation capability recently added to ArcGIS Explorer.  The AddIn can be downloaded here from the new code gallery.

The AddIn was developed in C# for .NET 3.5 and utilizes the graphics capabilities of WPF.  Full source code is provided with the code gallery download.

Thursday, July 15, 2010

Touch for ArcGIS Desktop 10

Touch for ArcGIS Desktop

Just published on the ArcGIS Resource Center is a proof-of-concept developed by the ESRI’s Applications Prototype Lab called Touch for ArcGIS Desktop. This contribution is an AddIn that adds touch navigation to ArcGlobe.  The contribution can be downloaded from here and includes the AddIn itself and full source code.  The download page includes instructions how to install and use the AddIn.

The AddIn will install on any computer running ArcGIS 10 but a warning message will appear if you do not have a Windows 7 Touch-enabled device connected.

This AddIn is based on code from the Windows 7 Multitouch .NET Interop Sample Library.

GeoTagger for ArcGIS Desktop 10

Geotagging text from an English web page  Geotagging text from an Arabic web page

Have you ever wanted to extract geographic locations from an email or web page? This is now possible with the free GeoTagger AddIn for ArcGIS Desktop 10 published by the Applications Prototype Lab. The AddIn uses MetaCarta’s public geotagging web service to extract geographic references from text. The service supports English, Russian, Spanish and Arabic.

The AddIn is available here from ESRI’s ArcGIS Resource Center.  The download page includes usage and installation instructions.  Source code is bundled with the download.

Wednesday, July 14, 2010

Dynamic Charting for ArcGIS Desktop 10

Late last year ESRI’s Applications Prototype Lab released the dynamic charting tool for ArcGIS Desktop 9.2/9.3.  This tool provided the unique ability to display dynamic pie charts during editing operations.

Today, the lab released a new version of the tool for the newly launched ArcGIS Desktop 10.  The tool features a number of improvements:

  • Ability to switch between a pie chart and a column chart,
  • Ability to pick any summary field other than area, for example, cost or mineral volume,
  • Improved performance, the charts are only updated following an editing operation such as an add or delete.  Previously updates occurred at regular time intervals.
  • The legend is now sorted alphabetically,
  • And mostly importantly, the user interface colors have been toned down.  :-)

The new tool can be downloaded from the ArcGIS Resource Center from this link.  The download includes full source code.  The tool is developed as a desktop AddIn and is written in C# using WPF and the WPF Toolkit.