source: subversion/applications/rendering/png2tileinfo/README @ 10399

Last change on this file since 10399 was 10399, checked in by deelkar, 12 years ago

copy oceantiles stuff into separate directory

File size: 1.4 KB
Line 
1README for png2tileinfo
2-----------------------
3
4This is the "source" for the oceantiles_12.dat file used in
5close-areas.pl and in lowzoom.pl.
6
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.
10
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:
15
16white - coastline intersects with this tile
17green - no coastline intersect, land tile
18blue -  no coastline intersect, sea tile
19black - unknown
20
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!)
26
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.
30
31Usage:
32% cd applications/rendering/png2tileinfo
33% svn update
34% perl png2tileinfo.pl check 3762 2471
35oceantiles_12.png(3762, 2471) = 3 (mixed)
36% perl png2tileinfo.pl set 3762 2471 land
37% perl png2tileinfo.pl
38
39[wait until file generated...]
40
41% svn commit
Note: See TracBrowser for help on using the repository browser.