source: subversion/applications/rendering/tilesAtHome/tools/png2tileinfo/README @ 10397

Last change on this file since 10397 was 4939, checked in by christofd, 13 years ago

added usage

File size: 1.5 KB
1README for png2tileinfo
4This is the "source" for the oceantiles_12.dat file used in and in
7The oceantiles_12.dat file contains two bits for every level-12
8tile in the world, specifying whether it is a land tile, a sea tile,
9a coastal tile, or unknown.
11The file is easy to access by the programs using it, but difficult
12to edit. So here is the "source data" in the form of a large PNG
13file 4096x4096 pixels for the whole planet, in which each pixel
14corresponds to one level-12 tile and may have one of four colours:
16white - coastline intersects with this tile
17green - no coastline intersect, land tile
18blue -  no coastline intersect, sea tile
19black - unknown
21If you find errors in the data file - i.e. an inland area rendered
22blue or a sea area not rendered blue -, you can simply fix the PNG file
23with any image editor, then run png2tileinfo, and you have a new
24data file. (Please make sure to upload both the .png file that you
25changed and the .dat file created!)
27Please note that the code is picky about the colours used. Nothing
28but "pure" colors will do - blue has to be 0,0,255, green has to be
290,255,0, black is 0,0,0 and white 255,255,255.
32% cd applications/rendering/tilesAtHome/tools/png2tileinfo
33% svn update
34% perl check 3762 2471
35oceantiles_12.png(3762, 2471) = 3 (mixed)
36% perl set 3762 2471 land
37% perl
39[wait until file generated...]
41% cp oceantiles_12.dat ../..
42% cd ../..
43% svn commit
Note: See TracBrowser for help on using the repository browser.