Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rating: Thread Rating: 4 votes, 2.00 average. Display Modes
Old 12-10-2009, 08:53   #121
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
I've converted another NZ .tif map, and although the tif2bsb utility also included the header,there is something very strange about the map boundaries which is showing a red triangle,omitting the top right co-ordinates.

I have checked and re checked all the co-ordinates and the x,y values and can find nothing wrong. For both the REG as well as the PLY values,I started with the bottom left map corner and moved around in a clockwise direction. I have attached the header file if anyone can find the problem.

The map displays normally in OpenCPN but as soon as the diagonal map outline is passed,it jumps to the next chart,which means I can not access anything to the right of the diagonal line in zoomed-in modes.
Attached Thumbnails
Click image for larger version

Name:	MANUKAU.jpg
Views:	119
Size:	272.7 KB
ID:	10427   Click image for larger version

Name:	MANUKAU HEADER.jpg
Views:	110
Size:	64.9 KB
ID:	10428  

__________________

__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 13-10-2009, 16:13   #122
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 my #121

I have tried to enter the co-ordinates in different sequences and I have re-checked all the entered data but I am not able to get the red chart outline for nz4314 to show correctly and now I can no longer display the map itself. There seems to be so much hit and miss about this conversion method,you are never sure what you will end up with.

I tried a first to enter all the REF and PLY co-ordinates in a clockwise direction starting with the bottom left map corner but it still does not work.

Appreciate assistance from anyone with know-how and the time to study the case.
__________________

__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 14-10-2009, 00:46   #123
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Quote:
Originally Posted by sinbad7 View Post
re my #121

I have tried to enter the co-ordinates in different sequences and I have re-checked all the entered data but I am not able to get the red chart outline for nz4314 to show correctly and now I can no longer display the map itself. There seems to be so much hit and miss about this conversion method,you are never sure what you will end up with.

I tried a first to enter all the REF and PLY co-ordinates in a clockwise direction starting with the bottom left map corner but it still does not work.

Appreciate assistance from anyone with know-how and the time to study the case.
Ciao,

I can try to help you but I need to know were I can get the map file.

Ciao, Marco.
GPS-Marco is offline   Reply With Quote
Old 14-10-2009, 03:30   #124
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
Marco..

Thanks for offering to solve my problem.

You can download the nz4314.tif here:

I am back to where I started with the map displaying but showing a red triangle as the map outline. If I pass the diagonal line,the new map disappears.
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 14-10-2009, 05:12   #125
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
Dave.. ref. my #121

The seamless transition between maps are I suppose governed by the setup of the chart outlines. This functions normally with all NOAA BSB type charts etc.
Could there be some extra information required in bsb/kap files which is not present
in the tif2bsb conversions? Seems the converted charts work sometimes, sometimes not?
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 14-10-2009, 05:48   #126
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Quote:
Originally Posted by sinbad7 View Post
Marco..

Thanks for offering to solve my problem.

You can download the nz4314.tif here:

I am back to where I started with the map displaying but showing a red triangle as the map outline. If I pass the diagonal line,the new map disappears.
Hi, I started with NZ53.

1) downloaded NZ53.tif
2) saved NZ53.tif as NZ53.png (use GIMP, XnVIew, ...)
3) opened NZ53.png in MapCal and saved calibration & borders
4) manually translated CHARTCAL.DIR in NZ53template.kap
5) RUN: tif2bsb NZ53template.kap NZ53.tif NZ53.kap
6) put NZ53.kap in OCPN chart dir and deleted/reloaded chart dir in OCPN.

It worked at the first time without any problem

I attach the NZ53template.kap (I added a .doc to the name just for upload, remove the .doc after download) so you can just repeat step 1, 5, 6.

Enjoy, Marco.
Attached Files
File Type: doc nz53template.kap.doc (1.3 KB, 77 views)
GPS-Marco is offline   Reply With Quote
Old 14-10-2009, 07:20   #127
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Quote:
Originally Posted by GPS-Marco View Post
Hi, I started with NZ53.

1) downloaded NZ53.tif
2) saved NZ53.tif as NZ53.png (use GIMP, XnVIew, ...)
3) opened NZ53.png in MapCal and saved calibration & borders
4) manually translated CHARTCAL.DIR in NZ53template.kap
5) RUN: tif2bsb NZ53template.kap NZ53.tif NZ53.kap
6) put NZ53.kap in OCPN chart dir and deleted/reloaded chart dir in OCPN.

It worked at the first time without any problem

I attach the NZ53template.kap (I added a .doc to the name just for upload, remove the .doc after download) so you can just repeat step 1, 5, 6.

Enjoy, Marco.
Well, no problem also with NZ4314: same process, same success ;-)

I did a little more: I cut the small map on the lower right corner (LPG Terminal) and I process also that small map.

I attach the Final .KAP map (NZ4314_1.kap) of the LPG Terminal (I just ranamed it with a .doc for upload: download the file and remove the .doc)

I also attach the template (NZ4314template.kap) of the whole NZ3414 so you can create the NZ3414.kap by youself (from above process, just step 1, 5, 6 with NZ4314 instead of NZ53). Again: download the template and remove the .doc

Let me know.

Ciao, Marco.
Attached Files
File Type: doc nz4314template.kap.doc (1.4 KB, 74 views)
File Type: doc nz4314_1.kap.doc (107.1 KB, 79 views)
GPS-Marco is offline   Reply With Quote
Old 14-10-2009, 08:10   #128
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
Thanks Marco...

I am familiar with all the procedures and have converted several of these NZ charts successfully. When I run the CMD line,I often get error messages and sometimes I had to manually enter the header file,other times not.

I need to analyze my header file attached earlier to see where I'm going wrong.
I entered the geo loc and x,y parameters of the map corners starting at bottom left corner and ending bottom right,and the same for the PLY locations (without the x,y)

Are you using Vista or XP?? Perhaps there is a path problem with Vita?
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 14-10-2009, 10:42   #129
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Hi, did you check what I wrote in answer #108?

Charts

Ciao, Marco.
GPS-Marco is offline   Reply With Quote
Old 14-10-2009, 12:13   #130
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
Marco..

Yes of course I read your #108. But as I said it does not work reliably for me on Vista
and I would like to find out why. The template you show is in Word, which is not a good idea because unwanted control characters may be added. I prefer using a hex editor.

I also do not understand why in one of your samples you are using all of 19 REF points and 9 PLY points??

I wish there was a user manual for the tif2bsb utility to show the correct entry sequence of the REF and PLY points etc. etc.

Thanks for your trying to help...
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 14-10-2009, 12:26   #131
Obsfucator, Second Class
 
dacust's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
Quote:
Originally Posted by sinbad7 View Post
The template you show is in Word, which is not a good idea because unwanted control characters may be added. I prefer using a hex editor.
Quote:
Originally Posted by GPS-Marco View Post
I attach the Final .KAP map (NZ4314_1.kap) of the LPG Terminal (I just ranamed it with a .doc for upload: download the file and remove the .doc)
Just rename the file Marco posted like they said...
dacust is offline   Reply With Quote
Old 14-10-2009, 12:50   #132
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Quote:
Originally Posted by sinbad7 View Post
...
The template you show is in Word...
...
I also do not understand why in one of your samples you are using all of 19 REF points and 9 PLY points??
...
Hi,

1) as already said by dacust, I just add a .doc to the file name since I cannot upload .kap files. Remove the .doc from the file name and you have what you need.

2)
The REF points can be as many as you like (at least 3, I guess). More REF points you put, better will be the precision (expecially for non MERCATOR projections...). The REF points can be everywere in the map (in the center, on the border, werever)

The PLY points represent the border of the map. The are used to communicate were the map is usable and were it is not usable (the white border surrounding the map, the part of the map with the instruction, etc.) They must be 3 or more. If the usable map is a rectangle, put 4 PLY. If the shape of the usable part is more complex than a rectangle, put more PLYs.

This is an example of how to place REF and PLY

Click image for larger version

Name:	Example.jpg
Views:	101
Size:	57.2 KB
ID:	10470

Ciao, Marco.
GPS-Marco is offline   Reply With Quote
Old 14-10-2009, 13:11   #133
Obsfucator, Second Class
 
dacust's Avatar

Cruisers Forum Supporter

Join Date: Feb 2008
Location: Southeast USA.
Boat: 1982 Sea Ray SRV360
Posts: 1,745
PLY and REF

To elaborate on the PLY and REF usage, PLYs have to be in the exact order they appear on the line you are drawing. I haven't tried it, but I would figure the REF points do not need to be in any particular order.

-dan
dacust is offline   Reply With Quote
Old 14-10-2009, 17:52   #134
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
Marco..

Thanks for your very explicit information.. I am familiar with creating calibration files for other nav progs where I normally use 3 points in a roughly equal triangle trying to avoid similar named lat or long. I mistakenly understood that tif2bsb required only geo locs from the map corners.

I also seem to have problems converting normal scanned maps and would appreciate your trying to create a sample map from the shown map details.

The nz test map.tif is in my dropbox as advised earlier.

Tore
Attached Thumbnails
Click image for larger version

Name:	MANUKAU TEST.jpg
Views:	106
Size:	24.9 KB
ID:	10477  
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 15-10-2009, 02:39   #135
Registered User

Join Date: Sep 2009
Location: Rome
Posts: 320
Quote:
Originally Posted by sinbad7 View Post
Marco..

Thanks for your very explicit information.. I am familiar with creating calibration files for other nav progs where I normally use 3 points in a roughly equal triangle trying to avoid similar named lat or long. I mistakenly understood that tif2bsb required only geo locs from the map corners.

I also seem to have problems converting normal scanned maps and would appreciate your trying to create a sample map from the shown map details.

The nz test map.tif is in my dropbox as advised earlier.

Tore

Tore,

The tif test image you are working on has 256 colours palette. This in NOT supported. Maximum number of colours is 127. You must convert the tif to 127 colours.

I use GIMP Portable, that run very well on windows:

GIMP Portable | PortableApps.com - Portable software for USB drives

To convert the file, load the image in GIMP, then you need to convert the image in 2 steps: to RGB and then to 127 colours. The commands in GIMP Italian menu is

1) Immagine->modalità->RGB
2) Immagine->modalità->Indicizzata->127 colori

After the image is convertet to (max) 127 colours, you can use the standard tif2bsb.exe with the attached template (download the file and delete the .doc from the file name)

Moreover, to handle text files I use Notepad++ that works on windows and handles both Windows text files and Unix text files.

http://notepad-plus.sourceforge.net

Ciao, Marco.
Attached Files
File Type: doc NZTestTemplate.kap.doc (504 Bytes, 44 views)
__________________

GPS-Marco is offline   Reply With Quote
Reply

Tags
charts, kml, raster2bsb, tiff2bsb, bsb

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
Charts on CD stxboy Navigation 43 28-01-2014 10:40
Charts for BC Charlie Navigation 11 19-04-2007 03:39
Used Charts daven Navigation 2 28-11-2006 16:47
Looking at charts - where to go to next Rippy Other 19 10-03-2006 04:27



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

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


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.