Skip to content
This repository was archived by the owner on May 7, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ tox = "*"
matplotlib = "~=3.0.2"
area = "~=1.1.1"
numpy = "~=1.15.4"
mqm = {editable = true,path = "."}

[requires]
python_version = "3.7"
4 changes: 4 additions & 0 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@ OpenStreetMap (OSM) data quality is always a concern and frequently a barrier fo

# Usage

Eventually, this project will be on PyPI, which will make the following steps only necessary for development.

**Installing dependencies**

To utilize the MQM tool, please install Python3 and `pipenv`. Then, run the following command to install all of the dependencies: <br />
To run the MQM tool from source, please install Python3 and `pipenv`. Then, run the following command to install all of the dependencies: <br />
```
pipenv install
```
Expand All @@ -22,12 +24,12 @@ pipenv shell
2. run the program through applying <br />

```
python3 mqm_tool.py --folderPath [a absolute folder path] --maxDepth [maximum tree depth (default = 10)]
python3 -m mqm --folderPath [a absolute folder path] --maxDepth [maximum tree depth (default = 10)]
--countNum [a count number (default = 10)] --gridPercent [a grid percentage (default = 0.9)]
--maxCount [maximum count to the second k-d tree]

For example:
python3 mqm_tool.py --folderPath ~/desktop/program/test_data
python3 -m mqm --folderPath ~/desktop/program/test_data
```

Note:
Expand Down
4 changes: 4 additions & 0 deletions src/mqm/__main__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from .mqm_tool import main

if __name__ == '__main__':
main()
3 changes: 2 additions & 1 deletion src/mqm/mqm_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ def main():
# get a sub-directory list
util = Utility()
folder_list = util.get_sub_directionaries(input_folder)
del util
if len(folder_list) == 0:
folder_list.append(input_folder)


# iterate through all sub-directories
Expand Down