Presentation and options Dialog box of the application
Syntax

Presentation and options

Program that compresses and decompresses both MMZ files (compressed MiraMon files) and their standardized evolution, MMZX files. The MMZX and MMZ formats allow to compress all files related to a map (MMM), such as linked thesaurus, or files related to a layer (POL, IMG, etc) in a single file. These files can be distributed over the Internet, email, etc, with all their parts (data, metadata, symbolization, etc). In addition to their interest in the distribution of geographic information datasets that contain all kinds of data (vector, raster, geoservices, tables, etc), the MMZX/MMZ files are the best option for preservation of cartographic documents for general archiving purpose, compilation of documentation related to legal process, etc.

The MMZX/MMZ files present a similar compression feature in the ZIP format. Consult the specifications of the MMZ format in this document. The specifics of the new MMZX format are described in the article:

Pons X, Masó J (2016) A comprehensive open package format for preservation and distribution of geospatial data and metadata Computers & Geosciences, 97, 89-97. http://dx.doi.org/10.1016/j.cageo.2016.09.001.

In addition, MMZX is the first global implementation of the international standard ISO 19165 ("Geographic information - Preservation of digital data and metadata"), published in May 2015 and available at https://standards.iso.org/ittf/PubliclyAvailableStandards/c061796_ISO_IEC_29500-2_2012.zip. The internal structure of the MMZX is an adaptation of the 1998 original ideas of the MMZ, now standardized under the also international standard ISO 29500-2 ("Open Packaging Conventions, OPC"), published in September 2012 and available at https://www.iso.org/standard/61796.html.

Specifications of the contents of the file resulting from the preservation of bases in MiraMon (Option 8 of the program) can be found in this document.

The program has several options:

The program can compress/decompress all files in a directory or all files linked to a map (MMM) or a layer (IMG, POL, etc). It is also able to certify maps. Certification is advisable to generate maps that can be distributed over the Internet or on institutional or business CD/DVD/USB, etc, but it is only available to those users who have a MiraMon Internet Map Publisher corporate license. The certificate appears in the application dialog box. If the user does not have this type of license, the certification options are not available. For more information, please visit: https://www.miramon.cat/mmr/usa/index.htm or write tocontacte@miramon.uab.cat.

MMZX and MMZ formats allow saving on the file path, allowing the user to load the file upon decompressing. During the compression the user can force the conservation of the full path or only the relative path. In file options of a directory this is equivalent to no path and, for compression options, a relative path to the map/layer, and an absolute path to the rest.

During compression the user can indicate how this path will be regenerated when the user uncompresses the file. There are 4 regeneration modes:

During decompression it is possible to force a method of regeneration of the path ignoring what is specified when compressing.
If the user uncompresses a file that already exists, the program shows the following dialog to determine whether it can be overwritten and how.

The file j:\raster\ras.img
already exists on the disk and is POSTERIOR to the compressed file.

File on disk:
15172 bytes, modified 01/16/2017 at 11:42:21
Compressed file:
2587417 bytes, modified 01/18/2017 at 13:14:46

Overwrite the file j:\raster\ras.img? (y/n/a/c):

The possible answers are 'y' if the user wants to overwrite this file, 'n' if the user does not want to overwrite this file, 'a' if you want to overwrite all the files (the user won't be asked again) and 'c' if you want to cancel to keep all the files (do not overwrite).

The following table illustrates how the 'directory tree' method works:

1234\map.mmm               becomes   1234\map.mmm
M:\1234\map.mmm            becomes   M$\1234\map.mmm
\\server\resource\map.mmm  becomes   $\server\resource\map.mmm
..\map.mmm                 becomes   $$\map.mmm  (only when unable to go back in the tree directory) 

Advanced functionalities

Several MMZX/MMZ files can be labeled as belonging to the same group. In this case, when the user opens more than one compressed map at the same time, MiraMon opens these files in the same session without asking. This allows the user to create web pages or BATCH processes that start combinations of MMZX/MMZ files without questioning the user about each individual file. (See parameter /GRUP in the syntax.)

A part of the file path can be replaced by compressing (see parameters of path variables in the syntax) with a nickname. When opening the map MiraMon changes this by the system environment variable, or by the value of the variable indicated in MiraMon, by section, or by one of the predefined alternative values in the MMZX/MMZ file (in this order). Each variable gives its descriptor the ability to question the user about its value when all the pre-established alternatives fail. When compressing a MMZX/MMZ file, the user can define an expected future update date, an expiration date and a list of sites from where to download future updates (see parameters /DATAACTUA=, /DATACADUCA=, / UBIC#= and /DESCUBIC#= to the syntax).


Dialog box of the application

MMZ dialog box


Syntax

Syntax:

Options:

Parameters:

Modifiers:

Finally, note that it is NOT possible to use the Simplified and Advanced Syntax at the same time.

Recommended syntax for map compression/decompression:
MMZ 3 MMZFile MMMFile /REGENERACIO=ARBRE [/CERTIFICAT]
MMZ 1 MMZFile Dir

Recommended syntax for compression and labeling for opening DBF files:
MMZ 2 MMZFile Taula.DBF /REGENERACIO=RELATIVA /RELATIU= [/CERTIFICAT]
MMZ 5 MMZFile 0 OBERTURA:1