This repository contains example code used in testing and illustrating development of the tiling optimization algorith and method for the GarminCustomMaps QGIS plugin.
A detailed description of all the code can be found at the Geospatial Development Documentation page.
factors_comparison.py:
-
adjust parameters in the code:
#Set up sample space n = 15 x = np.logspace(1, n, num=50, base=2, dtype=np.uint32) -
run
python factors_comparison.py
optimization.py:
-
adjust parameters in the code:
# Set up conditions x = 6000 y = 6000 max_tile_size = 1024 **2 max_num_tiles = 100 flag_plot = False ofunc = 'dtb' savefig = True -
run
python optimization.py
ti.*:
-
adjust code in
ti_setupandti_* -
run with
timeit:$ python -m timeit -n 50 -s "$(<ti_setup)" "$(<ti_code_bool)"