View previous topic :: View next topic |
Author |
Message |
Ranger
Joined: 12 Dec 2006 Posts: 6030
|
Posted: Thu Feb 08, 2007 10:44 am Post subject: |
|
|
As I see you dream that someone should decide about folders names of yours maps ...
BTW, map folders names can be created from map files names, but only by hand now.
|
|
Back to top |
|
 |
kruch Site Admin
Joined: 02 Jul 2006 Posts: 5676
|
Posted: Fri May 25, 2007 3:00 pm Post subject: |
|
|
I'm not sure whether I'm using latest version, but there is a "bug" in TB Cutter: slices listing filename should differ from calibration filename only by extension. I have eg. C08_ozf.map, TB Cutter creates C08.set but it should be C08_ozf.set.
In 0.9.57, a warning will be shown if "set" file is not found for a map.
|
|
Back to top |
|
 |
guest
Joined: 08 Oct 2006 Posts: 5035
|
Posted: Wed Jun 27, 2007 2:30 pm Post subject: |
|
|
The tool runs with wine + mfc42.dll (in ~/.wine/c_drive/windows/system32) on Ubuntu 7.04.
thx for that great tool!
hp5000
|
|
Back to top |
|
 |
beyond005
Joined: 07 Sep 2007 Posts: 1
|
Posted: Sat Sep 08, 2007 3:52 am Post subject: Throws error when use TB cutter to cut big map |
|
|
When I use TB Cutter to cut several big maps which great than 1G in windows xp sp2, it throws a runtime error and exit.
What's the matter?
|
|
Back to top |
|
 |
wzab
Joined: 17 Sep 2007 Posts: 5
|
Posted: Mon Sep 17, 2007 8:28 pm Post subject: Multiplatform (e.g. Linux) rough equivalent of TB Cutter |
|
|
Hi All,
As a Linux user, I was tired with having to use wine for TB Cutter.
Therefore I've prepared a small tool which is able to split a scanned map into tiles, and to prepare the .set and .gmi file (well, it is just a gmi file header, the callibration points must be added with another tool which is not ready to be released yet, but should be released soon).
My tool - pyTBcutter is written in Python and uses Tkinter and the Python Imaging Library. It runs perfectly on Linux, but should also run on other platforms where the above are available.
The tool is public domain. The code is very simple, and may be easily customized.
--
Cheers, Wojtek
Description: |
The pyTBcutter program. Ungzip it, and set the "execute" attribute. On some operating systems you may need to customize the extension, to have it recognized as a Python program |
|
Download |
Filename: |
pyTBcutter.gz |
Filesize: |
1.21 KB |
Downloaded: |
362 Time(s) |
|
|
Back to top |
|
 |
wzab
Joined: 17 Sep 2007 Posts: 5
|
Posted: Tue Sep 18, 2007 10:25 pm Post subject: Multiplatform (e.g. Linux) simple calibrator |
|
|
This is the calibrator mentioned in my previous post.
I've written it to recalibrate the OSM maps generated by the http://osm.bandnet.org/browse/ site (which currently generates incorrect calibration info).
My calibrator works only with the .gmi files.
After running the application, you should open the .gmi file located in the directory with the untared map.
The map should be displayed. You can drag the map with the 3rd (usually the right one) button of the mouse.
To add a calibration point, you should click it with the 1st (usually the left) button. A dialog box for entering of the coordinates should appear.
In the left side of the dialog box you will see the neighbourhood of the calibration point, and the calibration point will be marked with a cross-hair.
The coordinates may be entered either in degrees as float numbers (eg. +21.0032), or in a format with separate degrees, minutes and seconds fields.
In the second format the degrees field should be followed by "d", the minutes field - by "m", and the seconds - by "s". The sample correct notation: "-21d34m42.1254s".
After defining of all needed calibration points, you should press the "End the calibration" button. You'll be asked if you want to write the new .gmi file (It will destroy the old file!!!).
The pyTBcalibr uses the map in the tiled form and does not build the whole bitmap, therefore it should handle even the big maps quite quickly.
The source code should be relatively easy to understand and to customize.
The application is published as public domain.
However there is no warranty, that it will work correctly.
Maybe in some specific conditions it can damage your system... :-/
--
Cheers , Wojtek
PS. I have corrected a bug in the pyTBcalibr, causing the button to hide, when the height of the window was decreased. I have also added the option to specify the .gmi file as the command line argument (I personally prefer CLI over GUI).
Description: |
Calibrator in the gzipped form. Set the "execute" attribute after ungzipping. In some systems you may need to add the ".py" extension. This is the corrected version: 1. Resizing of the window works correctly 2. You MAY specify the .gmi |
|
Download |
Filename: |
pyTBcalibr.gz |
Filesize: |
3.94 KB |
Downloaded: |
203 Time(s) |
|
|
Back to top |
|
 |
supik
Joined: 05 Nov 2006 Posts: 26
|
Posted: Wed Nov 07, 2007 7:19 pm Post subject: |
|
|
does it work on Vista?? it seems to be doing nothing when I hit START...
thanks
|
|
Back to top |
|
 |
supik
Joined: 05 Nov 2006 Posts: 26
|
Posted: Fri Nov 09, 2007 3:13 pm Post subject: |
|
|
what am I doing wrong? I tried even on XP and when I hit start, nothing happens.. Please help
|
|
Back to top |
|
 |
luki
Joined: 01 Feb 2007 Posts: 142 Location: Milan, Italy
|
Posted: Sun Nov 11, 2007 10:48 pm Post subject: |
|
|
That program is written in python i supposed (and mainly for Linux system), you need this to execute it!
|
|
Back to top |
|
 |
wzab
Joined: 17 Sep 2007 Posts: 5
|
Posted: Mon Nov 12, 2007 8:16 pm Post subject: Running Python program on Windows |
|
|
As far as I know (I very rarely use Windows), you have to install the Python on your machine.
http://www.python.org/download/
I have tried (under Wine)
http://www.python.org/ftp/python/2.5.1/python-2.5.1.msi
and it has installed the python succesfully.
Additionally this program makes use of some libraries, namely PIL:
http://www.pythonware.com/products/pil/
Again, I have downloaded http://effbot.org/downloads/PIL-1.1.6.win32-py2.5.exe and installed it under Wine.
Only then I was able to run the pyTBcalibr (in Wine with:
Code: |
$ wine python.exe pyTBcalibr |
and it runs perfectly in the emulated Windows.
When I run
I'm able to run the pyTBcalibr just by clicking its icon in the browser, so I hope that after installation of Python and PIL
it should run also on the real Windows machine.
Well, I don't know how exactly Windows do recognize the Python programs.
Maybe you'll need to change the name to pyTBcalibr.py
(as it was mentioned in the first post).
PS. Could someone with the access to the real Windows machine verify
the above?
|
|
Back to top |
|
 |
supik
Joined: 05 Nov 2006 Posts: 26
|
Posted: Tue Nov 13, 2007 11:11 am Post subject: |
|
|
may be I miss something, I downloaded the windows exe version which was posted in the very first post of this topic. and this one doesn t work.. does this version require the procedure written above?? even though it s seems to be done for windows.. please correct me if I am wrong. thanks
|
|
Back to top |
|
 |
wzab
Joined: 17 Sep 2007 Posts: 5
|
Posted: Tue Nov 13, 2007 9:20 pm Post subject: EXE version? |
|
|
May be I've missed something, but there was no exe version at all...
The original tb_cutter was published as a link to the ZIP archive.
My pyTBcuter was published as an message attachment which was the
gzipped Python source (which itself is a pure text file).
So maybe your problem is that you need a program to decompress the ZIP or gz file?
I think, that if you look for "windows zip gzip decompressor" in google
or other search engine, you'll find something.
|
|
Back to top |
|
 |
supik
Joined: 05 Nov 2006 Posts: 26
|
Posted: Wed Nov 21, 2007 11:55 am Post subject: Re: EXE version? |
|
|
wzab wrote: |
May be I've missed something, but there was no exe version at all...
The original tb_cutter was published as a link to the ZIP archive.
My pyTBcuter was published as an message attachment which was the
gzipped Python source (which itself is a pure text file).
So maybe your problem is that you need a program to decompress the ZIP or gz file?
I think, that if you look for "windows zip gzip decompressor" in google
or other search engine, you'll find something. |
no no, I am dealing with the zipped exe file, I don t have problems to unzipp but to run the program later on..
|
|
Back to top |
|
 |
nadlabak
Joined: 22 Jan 2008 Posts: 4
|
|
Back to top |
|
 |
Momme
Joined: 24 Jul 2007 Posts: 17 Location: nowhere
|
Posted: Fri Feb 01, 2008 11:14 pm Post subject: |
|
|
deleted
Last edited by Momme on Tue Jul 12, 2011 3:30 pm; edited 1 time in total |
|
Back to top |
|
 |
|