Commit Graph

8 Commits (master)

Author SHA1 Message Date
Gael-de-Sailly c5591b3b06 Change data length/sign according to min-max values.
It enables support for float images, by the way.
2018-03-09 17:57:43 +01:00
Gael-de-Sailly 7bd9a4b513 Added scale and offset options 2018-03-04 12:38:37 +01:00
Gael-de-Sailly c4e5af7072 Divide elevations by scale
(so scale is hardcoded in the database)
This can reduce hugely the size of the database
(compression more efficient)
2018-02-22 19:17:17 +01:00
Gael-de-Sailly f697ce5f51 Fix metadata being interpreted as bytes on some computers
Read them as bytes so that we are sure it's bytes,
and then convert them into string.
2018-02-22 18:17:46 +01:00
Gael-de-Sailly 5c3246f62c Added logs for image converter 2018-02-21 21:14:57 +01:00
Gael-de-Sailly 7f187fc565 Added support for landcover file on Python side.
It's now able to generate the database with landcover data.
Not implemented on Lua side for now.
2018-02-20 11:59:50 +01:00
Gael-de-Sailly c204e1fa71 Fix type check in database.py 2018-02-19 12:31:36 +01:00
Gael-de-Sailly 570ac21cd4 Reorganize the code
Split up in 5 Python files:
- image_convert.py: main file, containing the GUI
- map_transform.py: projections, map reading, etc.
- geometry.py: small helper for map_transform.py
- database.py: generate the database
- rivers.py: the river algorithm
And various modifications.
It's now working even if it's still buggy and not documented.
2018-02-19 01:19:03 +01:00