Skip to content
Snippets Groups Projects
user avatar
Jake Wigal authored
d5f6b539
History
Name Last commit Last update
geojson_test
images
python
README.md

MetadataMaker

metadatamaker logo

Table of Contents

Overview

Utility to easily create metadata in the FGDC-STD-001-1998 format for GeoJSON files. Can read GeoJSON and write formatted XML files. Metadata fields designed to support stakeholders in the US Virgin Islands, including but not limited to:

This script can be run from the command-line to open a batch-metadata-creation utility with a GUI.

Installation

Step 1
Download or clone the repository.

GitLab Download

Step 2
Ensure you have the following python packages installed in your current Python environment:

  • ttkthemes pip install ttkthemes
  • tkinter (may come with your python distribution) conda install -c anaconda tk
  • os (comes with your python distribution)
  • re (comes with your python distribution)
  • json (comes with your python distribution)
  • ast (comes with your python distribution)
  • datetime (comes with your python distribution)

If you are missing a package you can install it through your command-line interface (e.g., bash shell, anaconda prompt, etc.).

Python Compatability notes: MetadataMaker has been tested and succesfully runs on Python 3.6.10 - 3.7.7.
It may be possible to run MetadataMaker with other versions of Python.

Usage

Step 1
Open your command-line interface (e.g., bash shell, anaconda prompt, etc.)

Step 2
use cd to navigate to the "python" folder within the downloaded "metadatamaker" folder.
cd /yourfilepath/metadatamaker/python

Step 3
Run the MetadataMaker script from your command-line interface.
python mm.py

If you have followed these steps correctly you should see the following window open:

Fig 1 | Windows Screenshot of MetadataMaker
MetadataMaker Mac screenshot

Fig 2 | Mac Screenshot of MetadataMaker
MetadataMaker Mac screenshot

Step 4
Click "Choose Folder" then choose a folder containing the files you wish to create metadata for. MetadataMaker will create a formatted metadata file (.xml) for each GeoJSON file within the chosen folder. Next, click "Create Metadata". Once completed, all new metadata files will be in a new folder called "metadata" within the original chosen folder.

Known issues

There are no currently known issues with MetadataMaker installation or usage. If you happen to find one, please open an issue or send an email.