Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 06-09-2011, 09:10   #151
Registered User

Join Date: May 2011
Posts: 10
Re: imgkap - kap File Converter Tool

Indeed strange the files size of the newest file (v1.11) is 709.108 whereas the older versions are 3.643.904 and 3.621.888.
Is this correct?
aart is offline   Reply With Quote
Old 06-09-2011, 10:14   #152
Registered User

Join Date: May 2011
Posts: 10
Re: imgkap - kap File Converter Tool

Quote:
Originally Posted by aart View Post
Indeed strange the files size of the newest file (v1.11) is 709.108 whereas the older versions are 3.643.904 and 3.621.888.
Is this correct?
I downloaded for the third time and now the v 1.11 = 3.643.392 and this file works also great. Thanks again!
Aart
aart is offline   Reply With Quote
Old 06-09-2011, 10:19   #153
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: imgkap - kap File Converter Tool

a Gremlin!
HappySeagull is offline   Reply With Quote
Old 09-09-2011, 00:10   #154
Registered User

Join Date: Aug 2009
Posts: 39
Re: imgkap - kap File Converter Tool

Quote:
Originally Posted by HappySeagull View Post
Code:
@echo  @echo a batch script to make kaps with MdJ's imgkap 1.11  FOR %%I IN ("*.tif") DO (imgkap -n "%%~nI.tif" "%%~nI.txt")  @pause
there,that works better...oh,and can replace tif with png or bmp just fine.
Whilst being 'none to good' (an understatement) with the ol' batch files, I'm trying to do the opposite: extract the graphics from .KAPs
Code:
for %%I in (*.kap) do imgkap %%I %%I.png
will produce .PNGs, but in the form "XYZ.kap.png"

I can then remove the '.kap' from the filename by ren *.* *. (twice), then ren *.* *.png - but what a kludge !

Can anyone assist with a batch file which produces files in the form "XYZ.png", rather than "XYZ.kap.png" - thanks.
sae140 is offline   Reply With Quote
Old 09-09-2011, 05:54   #155
Obsfucator, Second Class
 
dacust's Avatar

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Re: imgkap - kap File Converter Tool

Quote:
Originally Posted by sae140 View Post
...
Code:
for %%I in (*.kap) do imgkap %%I %%I.png
will produce .PNGs, but in the form "XYZ.kap.png"
...
Can anyone assist with a batch file which produces files in the form "XYZ.png", rather than "XYZ.kap.png" - thanks.
WARNING: Coded here in the post. NOT tested.

Try adding ~n in your variable name to get just he name without extension:
Code:
for %%I in (*.kap) do imgkap %%~nI %%~nI.png
Or a little fancier (copied this from a script on the mc2bsbh page)
Code:
@echo off
for %%I IN (*.kap) DO (
    echo converting %%~nI.kap
    imgkap %%~nI.kap %%~nI.png
)
echo.
echo conversion complete
echo.
pause
dacust is offline   Reply With Quote
Old 09-09-2011, 08:37   #156
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: imgkap - kap File Converter Tool

I'm using this these days to extract the header and the tif(or bmp or png )it's easy enough for me to not include the ".kap"

Code:
@echo off
set /p input=Type or paste the name of the source kap but WITHOUT ".kap"...

imgkap "%input%".kap "%input%"EX.txt "%input%"EX.tif
the EX is for when I auto rebuild it with another script and also tells me it's an edit,so you can dump that,if you like,but it's good for testing so I'll include it...

Code:
@echo on
@echo This is a batch written for M'dJ's IMGKAP
@echo.
@echo READ ME!
@echo It's ONLY for REBUILDING a kap chart that you previously 
@echo split with "imgkap_Extract2Edit.bat" and it uses the "~EX.tif"
@echo and "~EX.txt" as the input to do it....There can only be one in the folder.
@echo.
@echo off
pause
FOR %%I IN ("*EX.tif","*EX.txt") DO (imgkap -n "%%~nI.tif" "%%~nI.txt"
HappySeagull is offline   Reply With Quote
Old 09-09-2011, 08:48   #157
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: imgkap - kap File Converter Tool

the -n switch ? I have it in here.Seems better to have it in than not per several posts up...This is something to do with editing the image...different prgrms do different things to 'em on "saving" and the rebuild colours can go badly.argh.so the -n switch seems to help a lot.
HappySeagull is offline   Reply With Quote
Old 09-09-2011, 09:06   #158
Registered User

Join Date: Aug 2009
Posts: 39
Re: imgkap - kap File Converter Tool

Ah - sourced the problem. I'm working on a Win98 machine, where ~n isn't being recognised. Will need to do conversions on an XP machine - thanks.
sae140 is offline   Reply With Quote
Old 24-03-2012, 13:42   #159
Registered User
 
sinbad7's Avatar

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,731
Images: 57
Send a message via Skype™ to sinbad7
Re: imgkap - kap File Converter Tool

Happy..

I've used this command line before with success but I must have forgotten something.
ruby map2kap_0.1.10.rb Kemah-TX.jpg 1000000 METERS MSL

I want to convert an OziExplorer .map file to .kap

What is the easiest way please..

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 24-03-2012, 14:02   #160
Registered User

Join Date: Jul 2009
Location: The Netherlands
Boat: Koopmans, 33 ft cutter
Posts: 170
Re: imgkap - kap File Converter Tool

The easiest way is to use Global Mapper.
Zoef is offline   Reply With Quote
Old 24-03-2012, 15:18   #161
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: imgkap - kap File Converter Tool

Quote:
Originally Posted by sinbad7 View Post
Happy..

I've used this command line before with success but I must have forgotten something.
ruby map2kap_0.1.10.rb Kemah-TX.jpg 1000000 METERS MSL

I want to convert an OziExplorer .map file to .kap

What is the easiest way please..

Tore
That looks like it should work... as long as the jpg is in the same folder as map2kap..and
I checked my notes per map2kap.... only diff I see per yours is the ".rb" whether a a jpeg or not shouldn't matter (but I never used em).

the command after the prompt is
map2kap_0.1.11[space]"your chartimage.tif" [space]10000[space] meters[space]LLW <enter>
note the quotes for "names with spaces".
10000 would be the chart scale as in 1:10000 and meters can be fathoms,feet,even leagues but "leagues"doesn't show up in OpenCPN...

Map2kap will tell you if there's a problem



also about here...http://www.cruisersforum.com/forums/...tml#post636819
I haven't used map2kap in awhile!
HappySeagull is offline   Reply With Quote
Old 25-03-2012, 04:49   #162
Registered User
 
sinbad7's Avatar

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,731
Images: 57
Send a message via Skype™ to sinbad7
Re: imgkap - kap File Converter Tool

Zoef...

At a price of US Dlrs 400.- NO thank you!!

Thanks for the tip anyway..

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 25-03-2012, 04:53   #163
Registered User
 
sinbad7's Avatar

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,731
Images: 57
Send a message via Skype™ to sinbad7
Re: imgkap - kap File Converter Tool

Happy..

I think the command line does not find Ruby from the MAP2KAP directory.
There is a way to link Ruby to specific directories/progs but I don't remember how.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 25-03-2012, 07:56   #164
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,423
Re: imgkap - kap File Converter Tool

Tore,
something indicative of the problem should appear when you do the command used.... a message from ruby or a message from map2kap

edit :I cruised the ol map2kap thread and not necessarily in this order-maybe the Vista problem link is the one to help?

this might be it...Ruby provides a "Start Command Prompt With Ruby" in the start menu of XP
http://www.cruisersforum.com/forums/...tml#post590097

or here per Vista problem...?
http://www.cruisersforum.com/forums/...tml#post591722

I know you had this working before...
http://www.cruisersforum.com/forums/...tml#post594951

...If you don't have a ton of these Ozi maps, the simplest way might be to open the ". map" in a text editor and copy the calibration positions out into a header file to use with imgkap, helpcal or your own favourite.
HappySeagull is offline   Reply With Quote
Old 13-04-2012, 13:15   #165
MdJ
Registered User

Join Date: Jul 2010
Location: France
Boat: Etap 22i
Posts: 65
Re: imgkap - kap File Converter Tool

Hi all, Happy, Tore, ...

If you have any questions or requests to imgkap, please, it is my pleasure to answer.

M'dJ
MdJ is offline   Reply With Quote
Reply

Tags
imgkap


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Development Debugging Environment - Setup Help rgleason OpenCPN 654 04-10-2020 05:37
OpenCPN Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 07:43
Route File Transfer via SDcard to Garmin 441s four winds Navigation 11 25-02-2012 08:34
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 16:09.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.