Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-09-2011, 10: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, 11: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, 11:19   #153
Registered User
 
HappySeagull's Avatar

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

a Gremlin!
__________________
HappySeagull is offline   Reply With Quote
Old 09-09-2011, 01: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, 06:54   #155
Obsfucator, Second Class
 
dacust's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,743
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, 09:37   #156
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
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, 09:48   #157
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
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, 10: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, 14:42   #159
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
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, 15: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, 16:18   #161
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
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...map2kap - OziExplorer to OpenCPN
I haven't used map2kap in awhile!
__________________
HappySeagull is offline   Reply With Quote
Old 25-03-2012, 05:49   #162
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
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, 05:53   #163
Senior Cruiser
 
sinbad7's Avatar

Cruisers Forum Supporter

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,717
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, 08:56   #164
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
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
map2kap - OziExplorer to OpenCPN

or here per Vista problem...?
map2kap - OziExplorer to OpenCPN

I know you had this working before...
map2kap - OziExplorer to OpenCPN

...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, 14:15   #165
MdJ
Registered User

Join Date: Jul 2010
Location: France
Boat: Etap 22i
Posts: 61
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

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 577 11-11-2017 06:02
OpenCPN Beta Version 3.1.814 Released bdbcat OpenCPN 185 14-09-2012 08:43
Route File Transfer via SDcard to Garmin 441s four winds Navigation 11 25-02-2012 09:34
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 22:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 05:31



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 11:56.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.