CreaMMM: Maps and cartographic series automatic creation

This program creates MiraMon maps (MMM format) rapidly from the command line. An existing map may be used as a template. This program is useful for automatically generating map series (with many sheets, typically map series such as "Topogrāfic 1:50000").

If working with map series where the file names are fixed (changing only the directory or the first few letters of the name, for example, to indicate which sheet is which) but for which some layers of some sheets of the series may be missing (for example a small sheet containing no electricity power lines), then prepare a template for the map with the maximum number of layers present and select option 2. If working with series where the name and the order of the layers is constant but the names of the layers change, select option 1.

The program modifies the sections of the map layers, the view, the general view and the title.

For option 1 no template is needed. Option 2 only works if the map and the template are located in the same directory.

Option 2 is excellent for unifying map series made up of many sheets. It will make a BAT file with the list of all the layers and for which the program is called as many times as there are layers. The following syntax could be one of the lines in the BAT file (for sheet 222-222):

CreaMMM 2 mapes\222-222.mmm mapes\template.mmm #dircapa# ..\222-222 /VERIFICA "/TITOL=Full 222-222. Topogrāfic 5000"
As can be seen, a template (template.mmm) map is needed in the same directory as the new maps. The program makes the changes to the paths of the layers in the template. In the example line, parameters 4 and 5 tell the program that, when interpreting the template, where it says "#dircapa#" this is changed to "..\222-222".

Note on maps series: The display properties can be defined using a .REL of a map series. The map series are used to manage the display of all the sheets of the same layer from a single file. Each map then contains, for each layer, the name of the .REL file in which the display characteristics are found. When the user wishes to change the display settings they only have to change one file and the whole series changes. It is possible to have various sets of .RELs for the same series for different uses (for example for colour or for black and white printing).

The program support map series but it is not obligatory that the maps should be parts of a series. Nevertheless, for the reasons given above and set out in detail in appendix 4 "MAP SERIES" of the MiraMon manual (accessible through the Help Menu), we recommend working with map series whenever there are various map sheets referring to the same concept (contour lines, roads, etc).


Syntax:
CreaMMM 1 NewMMM TemplateMMM Layers...
CreaMMM 2 NewMMM TemplateMMM SearchText SubstituteText