[OSM-talk] Few changes to png2tileinfo script (was: Re: too much blue)

cagri coltekin cagri at xs4all.nl
Sat Apr 28 23:04:42 BST 2007


Hi,

On Fri, Apr 27, 2007 at 02:19:13PM +0200, Frederik Ramm wrote:
> 1. check out the oceantiles_12.png file
> 2. change the color of the Turku tiles from blue to green (or white  
> if you suspect they include coastline but that's not too important)
> 3. run the perl script that generates the data file
> 4. check in the new data file and the changed png file
> 
> I'm happy to do 3./4. for you if you do not yet have an SVN account.  
> I can also do 1./2. but I prefer it when people familiar with an area  
> do that.

While working on a mostly incorrect long coastline, I found it
easier to change the png2tileinfo script to allow changing both
.dat and .png files with the values provided in the command line.
It works faster, it does not require an image editor, and may
also help resolving trouble trouble with updating the png file in
svn (merging two binary files from two different people who do
not have svn accounts would be rather difficult).

The changed version of the scrip (patch was almost the same size)
is attached. It was made to save time, so I did not spend time to
beautify it, but so far it worked for me it may also be of
interest to others. 

Quick documentation: Running the script with arguments 'check x y' 
gives the current status of the tile x,y in both oceantiles_12.png
and oceantiles_12.dat. Running it 'set x y (land|sea|coast)' 
sets the given value on both files. Both files need to be in 
the same directory. Running the script without these arguments 
still does the same thing.

cheers,
-- 
cagri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: png2tileinfo.pl
Type: text/x-perl
Size: 3986 bytes
Desc: not available
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20070429/c5cc75d8/attachment.pl>


More information about the talk mailing list