Description
This sample takes the ags_simple sample and extends it
with a custom command and tool. The command counts the
features in the current view extent. The tool counts
the features in a user dragged box.
This sample also demonstrates the use of the Value Objects
and SOAP ports that are returned from the ADF.
Example Code
Code for this example is located in
ArcGISInstall/java/samples/server/webadf.ags_custom_tool_command
Instructions
- Create and start an ArcGIS map service. You must create a service named 'usa' from the map configuration file at
%ARCGISHOME%\java\samples\data\mxds\usa.mxd.
- Open a command window.
- Navigate to the folder containing the build.xml file.
- Type arcgisant build.
Note: The location %ARCGISHOME%/java/tools/ant/bin should be in your system path.
- Provide response to the input prompt with relevant connection information
- An exploded web application and a WAR file for the sample will be created under the folder called build.
- You can either deploy this web application or import the WAR file directly into your IDE.
- Deploy the web application in any supported servlet engine or application server.
- After deployment access the sample by typing the URL (e.g. http://[host]:[port]/[samplename]) in a web browser. The default
value for [samplename] is ags_custom_tool_command
Files
- map.jsp -- The page with a map, overview and toc controls
- faces-config.xml -- Configuration file that describes the resources and functionalities for the application
Products
Server
Platforms
Windows, Solaris, and Linux