manimaul/MTCW
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Copyright (C) 2011 by Will Kamp <manimaul!gmail.com> Distributed under the terms of the Simplified BSD Licence. These are wrapper programs for tilers-tools, gdal and gemf designed to create gemf files from bsb charts Required programs: gdal 1.7+, pngnq, python, python imaging library (PIL) Optionally, if you use a more recent version of tilers-tools you should make the following customizations: (http://code.google.com/p/tilers-tools/) ################################################################################### tiles_opt.py - command(['pngnq','-n',options.colors,'-e','.png','-d',dpath,src]) + command(['pngnq','-s1','-g2.2','-n',options.colors,'-e','.png','-d',dpath,src]) ################################################################################### reader_bsb_data.csv # KNP/ projection parameters +proj_knp,OTHER, PROJ4:+proj=merc,PP:lat_ts, +proj_knp,UNKNOWN, PROJ4:+proj=merc,PP:lat_ts, ################################################################################### map2gdal.py - lines=[f.readline() for i in range(10)] + lines=[f.readline() for i in range(24)] ################################################################################### gdaltiler.py - mtd_lst=[xml_txt('MDI',metadata[mdkey].encode('utf-8'),4,key=mdkey) for mdkey in metadata] - meta_txt=meta_templ % '\n'.join(mtd_lst) + try: + mtd_lst=[xml_txt('MDI',metadata[mdkey].encode('utf-8'),4,key=mdkey) for mdkey in metadata] + meta_txt=meta_templ % '\n'.join(mtd_lst) + except: + print("error encoding meta data") + meta_txt=''
About
Map Tile Collection Wrapper programs
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published