SET REGION COUNT Statement |
Alchemy will infer the number of administrative region levels from a supplied data file, however some data providers span a single data set across multiple files which may result in Alchemy detecting an incorrect number of region levels. The SET REGION COUNT statement overrides the inferences made by Alchemy and sets the number of administrative region levels present in the data.
SET REGION COUNT value; [SET REGION COUNT VARIES;]
value | The number of region levels to set. |
SET REGION COUNT 4;
This sets the number of administrative region levels to four.
If you are creating a data file for the United Kingdom, you will note that the two countries of Scotland and England have different numbers of administrative levels. In this case, add the SET REGION COUNT VARIES statement after the above SET REGION COUNT statement:
SET REGION COUNT 4; SET REGION COUNT VARIES;
This will ensure that the English administrative regions are promoted to their proper position.
Caution |
---|
In the event that a street is missing region levels, the lower region levels will be promoted to fill the upper region levels. This behavior may be undesirable. |