Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 08-07-2010, 05:07   #1
MdJ
Registered User

Join Date: Jul 2010
Location: France
Boat: Etap 22i
Posts: 61
Convert TIFF Image into Map KAP

I wrote a little program to directly convert a TIFF image with coordinates in degrees into a KAP map.

See C source and Windows exe in French forum Articles

The source is free and if OpenCPN wants, it can be proposed in a toolbox integrated or not in OpenCPN.

The program is a beta version, bugs as possible.

M'dJ
__________________

__________________
MdJ is offline   Reply With Quote
Old 12-07-2010, 04:05   #2
MdJ
Registered User

Join Date: Jul 2010
Location: France
Boat: Etap 22i
Posts: 61
With files

With files
Attached Files
File Type: doc tiff2kap.c.doc (11.8 KB, 485 views)
File Type: doc tiff2kap.zip.doc (237.1 KB, 409 views)
__________________

__________________
MdJ is offline   Reply With Quote
Old 11-10-2010, 01:48   #3
MdJ
Registered User

Join Date: Jul 2010
Location: France
Boat: Etap 22i
Posts: 61
tiff2kap

Apparently, nobody is interested by this program, however it is easier to use than tiff2bsb and fixes bugs on color (128 colors accepted as well as 2, 4 and 8 bit) and compression format kap 2 to 7 bits.




MdJ
__________________
MdJ is offline   Reply With Quote
Old 11-10-2010, 02:00   #4
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Hello MdJ,

I think the problem that limits the possible usage of your tool is that it is rare the case you have the lat/lon of the exact corners. Normally you have lat/lon of pixels that are inside the picture, far from the corners. Anyway if you have solved some bugs, it would be useful to have a tool that, like tif2bsb, takes as input a tif file and a kap header (built by a different tool) and just builds the kap file.

Just my opinion.

Ciao, Marco.
__________________
GPS-Marco is offline   Reply With Quote
Old 03-01-2011, 04:41   #5
Registered User

Join Date: Dec 2008
Posts: 16
I hope someone would make an OziExplorer (MAP + TIF) into KAP converter. Many of us have immense amounts of specialized detailed maps made and calibrated like that for Oziexplorer and hope to get that converted into OpenCPN
__________________
MagnusS is offline   Reply With Quote
Old 03-01-2011, 08:06   #6
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,692
Images: 57
Send a message via Skype™ to sinbad7
MagnusS..
Your OziExplorer maps are easily converted to .kap format readable by OpenCPN using MapCal and Chartconvert. You already have the bitmap as well as the map coordinates in the .map file.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 03-01-2011, 08:55   #7
Registered User
 
cagney's Avatar

Join Date: Dec 2005
Posts: 2,784
Quote:
Originally Posted by MagnusS View Post
I hope someone would make an OziExplorer (MAP + TIF) into KAP converter. Many of us have immense amounts of specialized detailed maps made and calibrated like that for Oziexplorer and hope to get that converted into OpenCPN
It's been done. Script here http://opencpn.org/sites/default/fil...2kap_0.1.6.zip.
More in a separate thread on this forum.
Thomas
__________________
cagney is offline   Reply With Quote
Old 03-01-2011, 10:03   #8
Registered User

Join Date: Dec 2008
Posts: 16
Thanks for your kind advice. However, I am not a SW knowledgeable person, so getting source code does not help me.

/Magnus
__________________
MagnusS is offline   Reply With Quote
Old 03-01-2011, 10:05   #9
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,692
Images: 57
Send a message via Skype™ to sinbad7
Thomas..

The download file 'map2kap-0.1.6' is not an .exe file. How do you use it?
Could you show a command line example?

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 03-01-2011, 10:33   #10
Registered User

Join Date: Dec 2008
Posts: 16
Quote:
Originally Posted by sinbad7 View Post
MagnusS..
Your OziExplorer maps are easily converted to .kap format readable by OpenCPN using MapCal and Chartconvert. You already have the bitmap as well as the map coordinates in the .map file.

Tore
I will try to look into that. If it is the method I read about somwhere including manual actions, it is less usable. The number of OziExplorer calibrated special charts (harbours and special passages in shallow waters) I have is over 1300....
__________________
MagnusS is offline   Reply With Quote
Old 03-01-2011, 11:20   #11
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,692
Images: 57
Send a message via Skype™ to sinbad7
MagnusS..

I am waiting for an answer from Thomas to see how easy (or not) it is to use 'map2kap-0.1.6'. Otherwise,yes,the method I normally use takes a few minutes manual work.

In any case,I am sure you do not cruise in all those 1300 areas at once,so converting only the charts you expect to use for each cruise should not take too long.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 03-01-2011, 11:33   #12
Registered User

Join Date: Dec 2008
Posts: 16
Quote:
Originally Posted by sinbad7 View Post
MagnusS..

I am waiting for an answer from Thomas to see how easy (or not) it is to use 'map2kap-0.1.6'. Otherwise,yes,the method I normally use takes a few minutes manual work.

In any case,I am sure you do not cruise in all those 1300 areas at once,so converting only the charts you expect to use for each cruise should not take too long.

Tore
I have invested VERY much time with Oziexplorer calibrated chart specials. Seaclear can import them, but the Oziexplorer calibration utilities are by far superior. Finalizing a calibration procedure using Ozieplorer includes the GPS simulation run, to check that the actual positions does not differ between the new special chart and the overall chart. I find it hard to motivate myself to change into some new plotter SW where my investments have to be remade manually again.
I am probably not alone, thats why asking...
__________________
MagnusS is offline   Reply With Quote
Old 03-01-2011, 12:05   #13
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,692
Images: 57
Send a message via Skype™ to sinbad7
MagusS..

OziExplorer was one of the first nav. progs. I used years ago in Norway,great program I still have on my laptop today. Then I purchased Fugawi ENC which I still have and use from time to time. SeaClear I have also used but mostly use MapCal II these days.

I have been following and in a small way contributed to the development of OpenCPN from it's conception. What I like is it's simplicity and the fact that it has been developed by experienced sailors FOR sailors,drawing also on great technical programing experience from our developers. It is a 'living' software which is always improving.

Many addittional conversion utilities has been developed and contributed by our users,making the conversion less of a pain in the neck for the lesser gifted of us.

As I mentioned,I am waiting for a further orientation from Thomas who created MAP2KAP.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 03-01-2011, 12:56   #14
Obsfucator, Second Class
 
dacust's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,711
Quote:
Originally Posted by sinbad7 View Post
Thomas..

The download file 'map2kap-0.1.6' is not an .exe file. How do you use it?
Could you show a command line example?

Tore
That is a Ruby script. You have to install Ruby on your machine to run it. I think there are versions of Ruby for all the popular platforms.

-->Ruby Programming Language

For Windows, click on "Download" and scroll down to:
  • Ruby 1.9.2-p136 RubyInstaller

-dan
dacust is online now   Reply With Quote
Old 03-01-2011, 13:20   #15
oem
Registered User

Join Date: Nov 2009
Location: Vejle, Denmark
Boat: Vindø 995 ds
Posts: 127
Quote:
Originally Posted by GPS-Marco View Post
Hello MdJ,

I think the problem that limits the possible usage of your tool is that it is rare the case you have the lat/lon of the exact corners. Normally you have lat/lon of pixels that are inside the picture, far from the corners. Anyway if you have solved some bugs, it would be useful to have a tool that, like tif2bsb, takes as input a tif file and a kap header (built by a different tool) and just builds the kap file.

Just my opinion.

Ciao, Marco.
I'm sorry I haven't seen this utility before now. I'll continue when I get some spare time again :-)

But I wonder if gdal_translate would be able to do the same, that is transform from Gtiff/tiff to KAP with some GCP's as parameters.

See GDAL: gdal_translate and the -gcp option.

I have not yet tested the -gcp option of gdal_translate.

When I get some spare time again :-)
__________________

__________________
oem is offline   Reply With Quote
Reply

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
Image Stabilization Binoculars Teej Product or Service Reviews & Evaluations 8 24-06-2009 10:14
Image stabilized binoculars bottleinamessage Monohull Sailboats 21 14-12-2007 15:31
No edit, no image Vasco Forum Tech Support & Site Help 3 12-10-2006 02:06
Am I retarded or?? how to put up an image? Bob Norson Forum Tech Support & Site Help 21 25-04-2006 16:55


Our Communities

Our communities encompass many different hobbies and interests, but each one is built on friendly, intelligent membership.

» More about our Communities

Automotive Communities

Our Automotive communities encompass many different makes and models. From U.S. domestics to European Saloons.

» More about our Automotive Communities

RV & Travel Trailer Communities

Our RV & Travel Trailer sites encompasses virtually all types of Recreational Vehicles, from brand-specific to general RV communities.

» More about our RV Communities

Marine Communities

Our Marine websites focus on Cruising and Sailing Vessels, including forums and the largest cruising Wiki project on the web today.

» More about our Marine Communities


Copyright 2002-2012 Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 21:22.


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

Sailing News Delivered to your Email!

Stay up-to-date with the latest cruising news.

unsusbcribe at anytime with one click

Close [X]


ShowCase vBulletin Plugins by Drive Thru Online, Inc.