Find Intersections custom Java geoprocessing tool


Purpose
This sample demonstrates how to create a geoprocessing tool that finds intersections in a network dataset, then saves the intersections in a feature class. The input to this tool is a network dataset, and the output is a point features class.

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Navigate to this sample's lib folder (findintersections/lib) and copy FindIntersectionsExt.jar into the <ArcGIS Desktop Install Dir>/java/lib/ext folder to deploy the custom extension.
  2. Open ArcCatalog and expand Toolboxes.
  3. Create a new toolbox under My Toolboxes providing a logical name: CustomGPFindIntersections.
  4. Right-click CustomGPFindIntersections, hover the mouse over Add, and click Tool. A dialog box opens.
  5. Expand FIFunctionFactory from the list of toolboxes, select FindIntersections tool and click OK.
  6. To run this custom tool you must have the scratch workspace set to a valid folder. Ensure you have a scratch workspace set.
  7. In ArcCatalog, double-click the custom tool and provide values for all the parameters.
  8. Click OK to execute the tool.


Download the files for Java
geoprocessing/customtool/FindIntersections.java Geoprocessing tool class
geoprocessing/customtool/FIFunctionFactory.java Geoprocessing Function Factory class




Additional Requirements
  • ArcGIS Desktop Installed (ArcCatalog)

Development licensing Deployment licensing
Engine Developer Kit Engine Runtime: Network
Engine Runtime: Geodatabase Update, Network
ArcView: Network Analyst