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.
 
Pekka Helenius 1d34daebfa
README: Add GDAL info link
5 years ago
data Upload files 5 years ago
images Upload files 5 years ago
LICENSE Initial commit 5 years ago
README.md README: Add GDAL info link 5 years ago

README.md

GML data parser for JPEG2000 files

Simple JPEG2000 GML data parser / extractor, without additional tools such as GDAL (Geospatial Data Abstraction Library). Just pure Python 3.

Requirements

  • Python 3 (Arch Linux: python)

  • Python 3 XML-to-dict (Arch Linux: python-lxml)

Usage

File: gmlparser.py

usage: gmlparser.py [-h] [-i [INPUTFILE]] [-f [OUTPUTFORMAT]]
[-o [OUTPUTFILE]] [-l [FORMATTING]]
optional arguments:
-h, --help            show this help message and exit
-i [INPUTFILE], --input [INPUTFILE]
Input JPEG2000 image file
-f [OUTPUTFORMAT], --dataformat [OUTPUTFORMAT]
Output format (Default: xml; Available: xml | json |
[tfw|worldfile] | info)
-o [OUTPUTFILE], --output [OUTPUTFILE]
Output file name
-l [FORMATTING], --formatting [FORMATTING]
Data formatting (Default: raw; Available: raw |
pretty)

Examples (commands + output):

JSON:

XML:

TFW + info:

License

This repository uses GPLv3 license. See LICENSE for details.