4. Running the tool¶
As discussed in the Setting up the tool section, the Data Buffer tool is operated from a MapInfo workspace or ArcGIS document within which the GIS layers required to run the tool are already loaded. It also relies on the configuration document for setting up the tool. Therefore, before running the tool, ensure the following conditions are met:
A MapInfo or ArcGIS document has been created which contains any GIS layers that may be included in the process.
The XML configuration document has been set up correctly, both for general settings and for each individual layer that can be used for input. It is also named correctly. If the tool is run from MapInfo the XML file must be in the same directory as the tool MapBasic application (.MBX).
The Data Buffer tool has been installed and is loaded in the GIS software.
See also
Please refer to the setup section for further information about any of these requirements.
4.1. Opening the form¶
To open the Data Buffer tool inn MapInfo, open the tool in the Tools menu (Tools… -> Data Buffer), as shown in Fig. 4.1. In ArcMap, open the Data Buffer tool by clicking on the tool button (Fig. 4.2).
Fig. 4.1 Launching the Data Buffer tool (MapInfo)¶
Fig. 4.2 Launching the Data Buffer tool (ArcGIS)¶
If there are any structural issues with the XML document, the tool will display a message that it has encountered an error, and not load any further. If any of the input layers that are listed in the configuration document are not present in the active workspace a warning will be shown (Fig. 4.3). The layers that are missing will not be loaded into the form and so cannot be included in the process.
Fig. 4.3 Example warning message when any GIS layers are not found¶
Provided that the XML document is otherwise correct, the form will display (Fig. 4.4).
Fig. 4.4 The form displaying the available input layers¶
4.2. Using the form¶
The form can be used to process as many input layers as required into a single output layer. Select the input tables that you would like to include and press OK.
Fig. 4.5 Select the required input layers on the form¶
Caution
The tool can run for a considerable amount of time dependent on the number of input layers and records that are being processed.
Progress is shown in a progress window in MapInfo (Fig. 4.6), and as a series of status messages in ArcMap (Fig. 4.7).
Fig. 4.6 Progress window during the process (MapInfo)¶
Fig. 4.7 Progress window during the process (ArcGIS)¶
When the process finishes it asks the user whether to close the form or keep it open for subsequent use (Fig. 4.8).
Fig. 4.8 Prompt to close form when process completes¶
Once the user makes a choice the log file is shown (Fig. 4.9). This should be checked thoroughly to ensure that all expected input tables have been processed and the number of output records is as expected.
Fig. 4.9 Example log file shown for review¶
You can now repeat the process for different input files if required.
4.3. Output results¶
The output records are saved in the GIS layer specified by the user when the tool was run. Fig. 4.10 shows an example of an output layer with some records clustered because they are from the same input layer, have the same key column values and are within the specified distance of each other.
Fig. 4.10 Example output layer¶
The log file results of the process is saved in the logfilepath folder as specified in the XML configuration document.