Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
Old 29-07-2011, 08:44   #346
Registered User
 
HappySeagull's Avatar

Join Date: Dec 2010
Location: B.C.,Canada
Boat: 29'
Posts: 2,395
Re: Charts II: NGA - 2700 Charts

yes,800 mb is a red herring ...but it's still going to be real work to apply them correctly,however it's done.
__________________

__________________
HappySeagull is offline   Reply With Quote
Old 29-07-2011, 10:31   #347
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,249
Re: Charts II: NGA - 2700 Charts

Quote:
Originally Posted by LeaseOnLife View Post
Could you describe how you do that? The ruby script just fails and does not create an image... Maybe use the wiki for now.

https://github.com/ngacharts/ngacharts/wiki
1 Download all available tiles. I use wget.
2 Run Allan Pedas perlscript. this will give you an idea about missing tiles. Replace all missing tiles with a copy of an all white tile, with correct names.
3 Run the perl script, and a chart pic will be produced.

I'm sure the ruby script can be changed to do the same thing, but why reinvent the wheel.....?
25525 had a lot missing, 61601 and 52047 just had one tile missing in less important areas.
I'm now working on 54334 and will then continue down the list, while checking for updates and uploads.

Thomas
__________________

__________________
cagney is offline   Reply With Quote
Old 29-07-2011, 10:43   #348
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Re: Charts II: NGA - 2700 Charts

Quote:
Originally Posted by cagney View Post
2 Run Allan Pedas perlscript. this will give you an idea about missing tiles. Replace all missing tiles with a copy of an all white tile, with correct names.
Replacing the missing tiles with white tiles isn't ideal to me as it makes hard to recognize that there are missing tiles. I left them black!
Quote:
3 Run the perl script, and a chart pic will be produced.

I'm sure the ruby script can be changed to do the same thing, but why reinvent the wheel.....?
I am using a quick'n dirty PHP script for this - no need to add the missing tiles.
So if anyone is interested in, drop me a note.

Gunther
__________________
Deutschsprachige Community- und Support-Website unter OpenCPN.de
Netsurfer is offline   Reply With Quote
Old 30-07-2011, 00:09   #349
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again
Boat: Sailboat
Posts: 1,047
Re: Charts II: NGA - 2700 Charts

Missing Tiles:

I am checking on 61601, thanks Thomas for adding the missing tile!

Black vs white: As soon as we miss some significant info in the tile, I am all for black. White is fine if there is no info missing, like in 61601.

But, when looking at 61601 using the NGA online chart viewer, the tile is not missing there!

http://www.charts.noaa.gov/NGAViewer/61601.shtml

Not sure about the other charts, but the zoomify seems to be able to gather all tiles. Weird, can anyone explain? Is this the same for all other charts with missing tiles?

Here is the portion of 61601 with the missing tile:
Attached Thumbnails
Click image for larger version

Name:	61601-missing-tile.png
Views:	77
Size:	60.9 KB
ID:	30049  
__________________
LeaseOnLife is offline   Reply With Quote
Old 30-07-2011, 00:24   #350
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Charts II: NGA - 2700 Charts

Dirk,
isn't zoomify leaving a blurred zoomed in version from the previous zoom level there? Looks a bit like it is.
It seems this could be a way to reconstruct the missing parts of the charts - the quality will be a bit worse in those areas, but still...

Pavel
__________________
nohal is online now   Reply With Quote
Old 30-07-2011, 02:45   #351
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again
Boat: Sailboat
Posts: 1,047
Re: Charts II: NGA - 2700 Charts

Quote:
Originally Posted by nohal View Post
Dirk,
isn't zoomify leaving a blurred zoomed in version from the previous zoom level there? Looks a bit like it is.
It seems this could be a way to reconstruct the missing parts of the charts - the quality will be a bit worse in those areas, but still...

Pavel
Don't think so:
First picture is a screenshot of zoomify, no missing tile, and crisp.
The second picture is from our download-and-stitch, the oval is hand-drawn to show the missing tile.

Yes we could reconstruct, but I am wondering how zoomify gets the tile and we don't!


Edit: Pavel, maybe I misunderstood. Are you saying, there is another set of jpg-tiles, with a different zoom-level?
Attached Thumbnails
Click image for larger version

Name:	61601-missing-tile-zoomify-ok.png
Views:	63
Size:	136.6 KB
ID:	30050   Click image for larger version

Name:	61601-missing-tile-2.png
Views:	63
Size:	5.0 KB
ID:	30051  

__________________
LeaseOnLife is offline   Reply With Quote
Old 30-07-2011, 03:20   #352
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Charts II: NGA - 2700 Charts

Dirk,
yep, there are different tilesets for the different zoom levels, we are stitching level 7 - the best quality and the tiles are really missing there.
On the attached screenshot from the NOAA website, it's visible, that the missing part is there, but the quality is different, from that my conclusion is that zoomify uses smaller scale tile and resizes it itself.
So if we download level 6, we can do the same. Will try.

Pavel
Attached Thumbnails
Click image for larger version

Name:	zoomify.png
Views:	71
Size:	22.4 KB
ID:	30052  
__________________
nohal is online now   Reply With Quote
Old 30-07-2011, 03:33   #353
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again
Boat: Sailboat
Posts: 1,047
Re: Charts II: NGA - 2700 Charts

Cool, your eyes are better than mine. To me it looked the same at first, but your screenshot shows the difference nicely! I guess we should then be able to create/stitch the last few charts after all... Who could modify one of the scripts to do so?

Dirk
__________________
LeaseOnLife is offline   Reply With Quote
Old 30-07-2011, 03:41   #354
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Charts II: NGA - 2700 Charts

The python script can do that for us already. Actually it gives a hint to do exactly that in the help
Code:
-z ZOOMLEVEL  zoomlevel to grab image at (can be useful if some of a higher
                zoomlevel is corrupted or missing)
There are really just a few charts, so I will manually do:
  • Download level 6 with the python script
  • Resize to the size of level 7
  • Open both in Gimp and put them in two layers (level 7 on top)
  • Make a hole for the missing tiles in the top layer.
  • Flatten image
  • Save as JPG
  • Replace the one we have now

Should work, already downloading 61601.

Pavel
__________________
nohal is online now   Reply With Quote
Old 30-07-2011, 11:49   #355
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Charts II: NGA - 2700 Charts

There are missing tiles for almost all of the problematic charts in ZL 6 and 5, so I'm finally going to learn a bit of ruby instead of wasting more time in front of stalled Gimp eating 2 gigs of memory

Pavel
__________________
nohal is online now   Reply With Quote
Old 31-07-2011, 01:40   #356
Marine Service Provider

Join Date: Feb 2010
Posts: 279
Re: Charts II: NGA - 2700 Charts

Notice to Mariners

I am automating the application of NTM's both as a gpx file and hopefully as a graphic overlay to a graphic for reconverting to kap. I need the actual stored names of the icons used by OpenCPN The displayed names of the icons in Route Manager does not match the stored names that is used for GPX import and export.

regards

Richard
__________________
r.fairman is offline   Reply With Quote
Old 31-07-2011, 01:53   #357
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,019
Re: Charts II: NGA - 2700 Charts

Richard...
Hope it's understandable:
https://github.com/nohal/OpenCPN/blo...eman.cpp#L1161
If you want to also use some new icons, the user icons are named according to the file name without .xpm extension

Pavel
__________________
nohal is online now   Reply With Quote
Old 31-07-2011, 09:09   #358
Registered User

Join Date: Jan 2007
Location: Minneapolis
Boat: Irwin 37 CC
Posts: 660
Re: Charts II: NGA - 2700 Charts

My graphics/picture editor (ACDSee) doesn't seem to be able to open large jpeg files. Can someone recommend a free program that can create a tinn and a lng file from jpeg?
__________________
David Kester
Pegasus IV
wdkester is offline   Reply With Quote
Old 31-07-2011, 09:26   #359
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again
Boat: Sailboat
Posts: 1,047
Re: Charts II: NGA - 2700 Charts

Quote:
Originally Posted by wdkester View Post
My graphics/picture editor (ACDSee) doesn't seem to be able to open large jpeg files. Can someone recommend a free program that can create a tinn and a lng file from jpeg?
I am guessing here, do you mean "create a tiff and a png file from jpeg"?

On XP, I use the command line tool "nconvert" to reduce size and convert to png:

nconvert -out png -resize 50% 50% filename.jpg

makes a quartersize png file, then I can view it in xnview, my favorite graphics viewer.

Dirk
__________________
LeaseOnLife is offline   Reply With Quote
Old 31-07-2011, 09:32   #360
Marine Service Provider

Join Date: Feb 2010
Posts: 279
Re: Charts II: NGA - 2700 Charts

Install ImageMagick and use the convert command at the command prompt

convert NAME.jpg NAME.png

regards

Richard
__________________

__________________
r.fairman is offline   Reply With Quote
Reply

Tags
charts

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




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 05:25.


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.