Simple JPEG2000 GML data parser / extractor
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. # GML data parser for JPEG2000 files
  2. Simple JPEG2000 GML data parser / extractor, _without additional tools such as [GDAL](https://en.wikipedia.org/wiki/GDAL) (Geospatial Data Abstraction Library)_. Just pure Python 3.
  3. ## Requirements
  4. - Python 3 (Arch Linux: `python`)
  5. - Python 3 [XML-to-dict](https://github.com/martinblech/xmltodict) (Arch Linux: `python-lxml`)
  6. ## Usage
  7. File: [gmlparser.py](data/gmlparser.py)
  8. ```
  9. usage: gmlparser.py [-h] [-i [INPUTFILE]] [-f [OUTPUTFORMAT]]
  10. [-o [OUTPUTFILE]] [-l [FORMATTING]]
  11. optional arguments:
  12. -h, --help show this help message and exit
  13. -i [INPUTFILE], --input [INPUTFILE]
  14. Input JPEG2000 image file
  15. -f [OUTPUTFORMAT], --dataformat [OUTPUTFORMAT]
  16. Output format (Default: xml; Available: xml | json |
  17. [tfw|worldfile] | info)
  18. -o [OUTPUTFILE], --output [OUTPUTFILE]
  19. Output file name
  20. -l [FORMATTING], --formatting [FORMATTING]
  21. Data formatting (Default: raw; Available: raw |
  22. pretty)
  23. ```
  24. ### Examples (commands + output):
  25. **JSON:**
  26. ![](images/sample_json.png)
  27. **XML:**
  28. ![](images/sample_xml.png)
  29. **TFW + info:**
  30. ![](images/sample_tfw_info.png)
  31. ## License
  32. This repository uses GPLv3 license. See [LICENSE](LICENSE) for details.