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.

46 lines
1.1 KiB

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_. Just pure Python 3.
  3. ## Requirements
  4. ## Usage
  5. File: [gmlparser.py](data/gmlparser.py)
  6. ```
  7. usage: gmlparser.py [-h] [-i [INPUTFILE]] [-f [OUTPUTFORMAT]]
  8. [-o [OUTPUTFILE]] [-l [FORMATTING]]
  9. optional arguments:
  10. -h, --help show this help message and exit
  11. -i [INPUTFILE], --input [INPUTFILE]
  12. Input JPEG2000 image file
  13. -f [OUTPUTFORMAT], --dataformat [OUTPUTFORMAT]
  14. Output format (Default: xml; Available: xml | json |
  15. [tfw|worldfile] | info)
  16. -o [OUTPUTFILE], --output [OUTPUTFILE]
  17. Output file name
  18. -l [FORMATTING], --formatting [FORMATTING]
  19. Data formatting (Default: raw; Available: raw |
  20. pretty)
  21. ```
  22. ### Examples (commands + output):
  23. **JSON:**
  24. ![](images/sample_json.png)
  25. **XML:**
  26. ![](images/sample_xml.png)
  27. **TFW + info:**
  28. ![](images/sample_tfw_info.png)
  29. ## License
  30. This repository uses GPLv3 license. See [LICENSE](LICENSE) for details.