-
CreaMMM: Maps and cartographic series automatic creation
Presentation and options
This application creates MiraMon maps (MMM format) rapidly from the command line. An existing map may be used as a template. This application is useful for automatically generating map series (with many sheets, typically map series such as "Topogràfic 1:50000").
Create a map (option 1):
Creates a MiraMon map (MMM format), where the number and order of the layers remain constant, but the layer names change.
Create series of maps (option 2):
Option thought to work 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)
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 application 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 application 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 application makes the changes to the paths of the layers in the template. In the example line, parameters 4 and 5 tell the application 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 color or for black and white printing).
The application 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 MiraMon cartographic series, we recommend working with map series whenever there are various map sheets referring to the same concept (contour lines, roads, etc).

Syntax
Syntax:
- CreaMMM 1 NewMMM TemplateMMM Layers... [/TITOL] [/VERIFICA]
- CreaMMM 2 NewMMM TemplateMMM SearchText SubstituteText [/TITOL] [/VERIFICA]
Options:
- 1:
The names of the layers and some of the display parameters are entered in the command line.
- 2:
The names of the layers are taken from the template and only the SearchText is changed for the SubstituteText in the layers' paths.
Parameters:
- NewMMM
(New MMM -
Output parameter): Is the MiraMon map to be created.
- TemplateMMM
(Template MMM -
Input parameter): The MiraMon map that will serve as a template for all that is not generated by the program. If a template is not wanted the user can enter NUL (only option 1).
- Layers...
(Layer, palette or color -
Input parameter): This parameter is repeated as many times as necessary. The first time contains a name of a layer. Depending on the nature of the layer other parameters may follow. For a JPG, there is no extra parameters. For a IMG, next parameter can be a palette or an IMG. In the second case another IMG is expected, forming a RGB combination. If the file contains Points no extra parameter is needed. If the file contains lines/arcs, a palette or a color follows. If the file contains polygons, a palette or a color follows for the border color and another palette or a color follows with the interior. This pattern can be repeated as many times as layers to be included in the map.
- SearchText
(Search text -
Input parameter): Text to search for within the layer name path in the template map. If no search is desired, specify a string that cannot be found.
- SubstituteText
(Substitute text -
Input parameter): Replaced text inside layer name path in new map.
Modifiers:
/TITOL= (Title) The title of the map. If not entered the first layer is used. (Input parameter) /VERIFICA (Verify) Indicates that it is necessary to verify the existence of the layer. In option 1, and where a template exists, the program stops. If there is no template the program emits a message but allows the process to continue. For VEC type files, the program always verifies the existence of the file and stops if it doesn't find it because it needs to read the documentation file to identify the file type. (Input parameter)
