USGS MP Metadata Translator (Conversion) |
|
Release 9.2
Last modified April 2, 2008 |
![]() ![]() ![]() Print all topics in : "Tools" |
NOTE: This tool requires the Microsoft .NET Framework 2.0. These tools are installed with the .NET Support install option.
Uses mp to export or validate metadata content created using the FGDC metadata editor. MP, which stands for metadata parser, is a utility created and maintained by the USGS for managing metadata that follows the FGDC Content Standard for Digital Geospatial Metadata (CSDGM). A version of mp is provided with ArcCatalog.
Usage tips
Documentation for the mp utility can be found on the USGS web site
An mp configuration file can be used to specify an extension file that will recognize metadata elements that are defined in FGDC CSDGM profiles. Extension and configuration files that will recognize ESRI-defined metadata elements and ESRI-ISO metadata elements can be found at ESRI's metadata web page.
When metadata is edited using ArcCatalog, the XML elements will not be in the correct order as specified by the FGDC CSDGM rules. As a result, mp will record warnings in the error file.
MP is also used by some of the metadata importers and exporters that are available in ArcCatalog. The following Metadata Importers use mp: FGDC CSDGM (TXT) and FGDC CSDGM (SGML). The following Metadata Exporters use mp: FGDC CSDGM (HTML), FGDC CSDGM (FAQ), FGDC CSDGM (SGML) and FGDC CSDGM (TXT). These importers and exporters will not report any validation errors and warnings that were found in the conversion process, and don't let you specify a configuration file.
Command line syntax
An overview of the Command Line window
USGSMPTranslator_conversion <source> <config> {none|XML|HTML|TEXT|FAQ|SGML|DIF} <output> {errors}
Parameter | Explanation | Data Type |
<source> |
The item whose metadata will be converted, or a stand-alone XML file that will be converted. |
Data Element |
<config> |
A file that defines custom parameters that mp will consider when parsing the source object's metadata. |
File |
{none|XML|HTML|TEXT|FAQ|SGML|DIF} |
The type of conversion that will take place.
If a conversion is not specified, the "XML" conversion will be performed. For all conversion types, the source metadata will be validated according to the FGDC CSDGM rules and any warnings or errors regarding the metadata content will be reported in the log file. If the "none" conversion is specified, the log file will be created with validation information but no additional output will be generated. |
String |
<output> |
The output file, as defined by the conversion type. |
File |
{errors} |
A text file listing the warnings and errors that occurred during the conversion process. |
File |
USGSMPTranslator_conversion c:\data\states.shp # none # c:\data\FGDC_validation\states.txt
Scripting syntax
About getting started with writing geoprocessing scripts
USGSMPTranslator_conversion (source, config, conversion, output, errors)
Parameter | Explanation | Data Type |
source (Required) |
The item whose metadata will be converted, or a stand-alone XML file that will be converted. |
Data Element |
config (Required) |
A file that defines custom parameters that mp will consider when parsing the source object's metadata. |
File |
conversion (Optional) |
The type of conversion that will take place.
If a conversion is not specified, the "XML" conversion will be performed. For all conversion types, the source metadata will be validated according to the FGDC CSDGM rules and any warnings or errors regarding the metadata content will be reported in the log file. If the "none" conversion is specified, the log file will be created with validation information but no additional output will be generated. |
String |
output (Required) |
The output file, as defined by the conversion type. |
File |
errors (Optional) |
A text file listing the warnings and errors that occurred during the conversion process. |
File |
USGSMPTranslator_conversion (c:\data\states.shp, , none, , c:\data\FGDC_validation\states.txt)