Analysis of accordance of maps objects and classifiers

Top

The program of analysis of conformity of object composition of maps and classifiers is intended for optimization of processing digital maps in format SXF for the purpose of determining the classifier most appropriate to the each map.

Input data - the catalog containing a set of maps in format SXF and a set of classifiers.

Degree of map conformity to the classifier is defined by quantity of different values of classification codes of map objects missing in the classifier.

The program consistently performs processing of SXF-files from the input directory.

For each SXF-file a loading from SXF format is consistently carried out with each classifier from the input directory. In the course of processing there is counted up the number of classification codes which are available for objects in SXF-file but are missed in the classifier.  Then the classifier with the fewest missing classification codes is defined.

Results of work are written into the “Catalogue for saving target maps”.

For each classifier the program creates in it subdirectories <Classifier name> and <Classifier name.err>.

Into subdirectory <Classifier name> SXF-files are copied, for which the number of missing classification codes in the classifier is equal to zero.

Into subdirectory <Classifier name.err> SXF-files are copied for which the number of classification codes missing in the classifier is greater than zero. SXF-file is copied into subdirectory of the classifier with the fewest missing classification codes in the classifier. In LOG subdirectory of the catalog <Classifier name.err> there is created a file <Classifier name.log> which for each SXF-file written down into catalog contains the information on all missing classification codes in the classifier:

- <Name of SXF-file>  

- <Classification code> <Type> <Number of objects>

- <Classification code> <Type> <Number of objects>