GIS Client


Purpose
GISClient is a stand-alone sample application, developed on top of MapServer, that allows you to connect to a map server object hosted by ArcGIS Server. The map server object can be accessed directly over a local area network (LAN) or by using an Internet or intranet connection to a Web catalog service that exposes the map server object. Web services can be accessed by clients via the Simple Object Access Protocol (SOAP) Extensible Markup Language (XML). The GISClient application uses Java Swing technology to provide the user interface (UI) framework and Java Image I/O to render images.
This sample demonstrates how to use an ArcGIS Engine map server object to develop a stand-alone Java application. Java Advanced Imaging (JAI) is embedded in this sample.

How to use

See How to use ArcGIS samples for help on running the sample.

  1. Start ArcCatalog.
  2. Add and start a map server object in ArcGIS Server.
  3. Use ArcGIS Server Manager to build and deploy a Web service catalog from a MapServer-type geographic information system (GIS) service.
  4. Enable the map, query, and data capabilities for the service catalog.
  5. Configure your Java platform for ArcGIS Engine.
  6. Navigate to the GisClientApp directory (in Windows, open a Command Prompt window and cd to GisClientApp).
  7. Type arcgisant run-sample at the command prompt to run the application.
  8. Click the Load Data button to connect to an ArcGIS Server map server object. The Server Connection dialog box opens.
  9. Choose Internet or LAN from the Connection Type drop-down box (depending on your type of connection).
  10. In Catalog URL, type in the universal resource locator (URL) of an ArcGIS Web catalog service (such as http://gisserver:8399/myservice/catalog) or type the host name of a local ArcGIS server.
  11. Click the Connect button. The drop-down box is populated with the available map server objects.
  12. Select a map server object and click Add Map. The map service is added to your application.

If you installed the samples feature, you will find the files associated with this sample in <Your Developer Kit install location>\DeveloperKit10.4\Java\Samples\ArcObjects.

scenario/toc/CheckBoxPanel.java Utility class
scenario/ConnectionDialog.java Utility class
scenario/map/Display.java Utility class
scenario/map/DrawTool.java Utility class
scenario/map/Envelope1.java Utility class
scenario/GisClientApp.java Main class. Open the Server Connection dialog box to connect to a Web service hosted by ArcGIS Server.
scenario/map/IdentifyDialog.java Utility class
scenario/map/IdentifyInfo.java Utility class
scenario/map/ImagePainter.java Utility class
scenario/map/InternetConnectionInfo.java Utility class
scenario/toc/LabelPanel.java Utility class
scenario/map/LANConnectionInfo.java Utility class
scenario/map/LayerInfo.java Utility class
scenario/toc/LayerNode.java Utility class
scenario/map/MapServerConnectionInfo.java Utility class
scenario/MapActions.java Utility class
scenario/map/MapComponent.java Utility class
scenario/toc/MapFrameNode.java Utility class
scenario/map/MapInfo.java Utility class
scenario/toc/Node.java Utility class
scenario/toc/TocControl.java Utility class
scenario/toc/TocTreeRenderer.java Utility class
scenario/ToolBar.java Utility class




Development licensing Deployment licensing
Engine Developer Kit Engine
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced