Convert Old Format Data

In the DOS version of the cadastral package, some parameters were encrypted into the type code. For example to force a lot accuracy to type 3, the number 4000 was added to the parcel code.

As well, special types were used for certain conditions. Unclosed lots were type 997, compiled parcels were type 16 or type 17 etc.

This routine will scan through the data and translate accuracy, unclosed and compiled types to correctly set up each parcel according to the way that data is stored in GeoCadastre.

Old Format to New Format
Compiled plans are set to accuracy 5 if no accuracy is specified.
Type 16 parcels are set to Compiled and the accuracy to 5 if no accuracy is specified.
Type 17 parcels are set to Compiled and the accuracy to 6 if no accuracy is specified.
Type 16 & 17 parcels have their type set to 0.
Type 2000-2999 parcels force (override) the accuracy to 1, type reduced to 0-999 range.
Type 3000-3999 parcels force (override) the accuracy to 2, type reduced to 0-999 range.
Type 4000-4999 parcels force (override) the accuracy to 3, type reduced to 0-999 range.
Type 5000-5999 parcels force (override) the accuracy to 4, type reduced to 0-999 range.
Type 6000-6999 parcels force (override) the accuracy to 5, type reduced to 0-999 range.
Type 8000-8999 parcels force (override) the accuracy to 6, type reduced to 0-999 range.

For the program to be able to convert old format parcel codes and accuracies to new format when reading a job into GeoCadastre, the 'Fix Accuracies' check box in 'Program Settings' needs to be ticked. See 'Fix Accuracies' in Program Settings