To perform every operation of copying it is required to make the following actions:
select the source and the destination;
choose the variant of the operation;
perform setting of the operation;
perform the operation of copying itself.
The source component of the operation is always located in the current GDB. The copying operation starts with selection of this component in one of a navigation window's panes.
As a rule, every copying operation can be performed in two variants: Whole or Structure.
For example, to copy a map as a whole the following components participate in the operation: layer structure; themes; features of map layers; library styles of source GDB used in the structure of layers, themes and features; structures of tables linked with types of map layers; queries built on the basis of tables being copied; table records; links between features and table records; tables, queries and filters used in the themes being copied.
If the operation of copying map structure is selected, only the following components will take part in the operation: structure of layers; themes; library styles of source GDB used in the structure of layers and themes; structures of tables linked with types of map layers; queries built on the basis of tables being copied; filters; structures of tables and queries used in filters.
Subsequent actions after selecting source, operation and its variant are performed under control of copying wizard. Some steps of the wizard are common for various copied components and different operations, other steps are specific for particular operations.
First step of the wizard always consist in selection of destination GBD for the operation. This step is shown at figure 50-1.
Figure 50-1. Page of copying wizard “Select GDB”
If the radio button Other GDB is turned on then one should choose a GDB after pushing the button Browse.
For some operations of copying which require complex setting of parameters there is a possibility to avoid repeated manual setting if the settings were saved in a file earlier, when a previous similar operation was executed. If the box Load settings is checked, the user has a possibility to choose an appropriate file. See below about saving settings. For more simple operations (for instance, copying and moving tables, copying styles) saving of settings is not provided.
Selecting the destination of operation is not yet completed after selection of an appropriate GDB. As a rule, it is also necessary to specify a component in the destination GDB which would be immediate destination for the source compoment. The operation of merging GDB make an exception because the whole GDB is its destination.
When selecting a destination component one should take into account position of components taking part in the operation in the hierarchy of GDB components (table 50-1).
In the case of a merging operation the component selected as the destination is to be of the same type as the source component.
To select a destination component the wizard page “Select component of destination GDB” will be opened at the next step. An example of such a page is shown at the figure 50-2.
Figure 50-2. Page of copying wizard “Select feature type of destination GDB”
A warning displayed in red letters is an indication that the user has not yet done all required actions at this page (in this case, a layer and destination feature type are not selected).
To lighten the work of the user, the system tries to find an appropriate destination component for merging. It is possible if there is a component in the destination GDB with the same name and type as the source component. The user can ignore the prompting and select any other appropriate destination component. The name of the selected component is displayed in the corresponding field of the page.
For copying and moving operations, a component of higher level should be selected, in which a copy of the source will be created, and a name for the copied component should be entered.
For example, if a layer is copied, the system demands to select a map, a theme or an EDB, and then enter the name of the layer.
To select a destination component and enter a name, the wizard page “Enter name of component of destination GDB” will be opened at the next step. An example of such a page is shown at the figure 50-3.
Figure 50-3. Page of copying wizard “Enter name of feature type of destination GDB”
Setting of the operation permits the user to define the character of the operation for constituent parts of source component. For example, when copying a map it is possible to copy only some layers or not to copy themes at all. Names of some source components can coincide with names of destination components. If there are conflicts of this kind the user should specify how they should be resolved in the settings. Possible variants of resolving conflicts are determined by the type of components.
The character of the required setting depends on the copied component and will be considered later in the corresponding chapters.
Taking into account complexity of performing the setting, the system provides a possibility to save settings in the settings file to be able to use this file later to perform setting of operations with components having the similar structure.
If the current settings was not saved in a file, all the copying settings will be lost after the operation is completed (or after it is canceled), and next time when performing the operation with the same components the user will have to perform the settings once again.
Saving of settings in a file is not provided for the most simple operations, such as the copying of a table.
When loading the settings file, the system selects only the lines of the settings file which do not contradict the variant of the copying operation being executed and the structures of components being copied. All lines of the settings file which contradict the performed operation of copying are ignored, the system does not display any error message.
For example:
if the settings file of map copying has a line with the name of the layer which the source map does not have, such a line is ignored;
if the source and destination GDBs are the same, all the lines specifying style processing modes are ignored.
If there is no data about processing mode of some component in the settings file, the mode which corresponds to the one set for this component by the item Default in menu of the settings pane will be set for it.
To analyze results of performing a copying operation, writing report on the operation into report file is very useful. Such a report contains both general totals and messages about errors and suspicious situations revealed in the course of performing the operation.
The page of the copying wizard allowing selecting a settings file and a report file is shown at the figure 50-4.
Figure 50-4. Page of copying wizard “Select report file”
One can select an existing file as the report file. In this case it is necessary to choose one of two modes: Append (new information will be appended at the end of report file) or Overwrite (all existing information in the file will be deleted and new information will be written instead). The checkbox Limit size permits specifying maximum size of the report file.
For report files on copying the extension CPR is used.
At the last step of wizard, the page “Review settings” is opened. It contains a list of main settings made at previous steps. The user has a possibility to check correctness of settings and, if necessary, to return back to one of previous steps.
After pushing the button Copy (Move, Merge) the operation will be performed.
If a report file is specified, then messages about results of operation and about errors of execution are written in this file.