Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-11-2015, 03:46   #211
Registered User

Join Date: May 2012
Posts: 405
Re: Imgkap - kap File Converter Tool

Attempting to make a KAP to overlay soundings from survey_pi onto other raster charts.

PNG and TIF images with a transparent background can be made but the KAP chart produced by IMGKAP and also MAPC2MAPC renders these images with a white background, obscuring the background chart.

The only way found to display the soundings as an overlay so far is to make a KMZ which includes the transparent image file and then open this file with Google Earth. Using GE2KAP I can make a KAP which shows the soundings superimposed on an OpenCPN chart (Make land transparent).

Does the KAP standard allow a transparent background?

Mike
__________________

__________________
Rasbats is offline   Reply With Quote
Old 12-11-2015, 08:20   #212
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: Imgkap - kap File Converter Tool

kap doesn't support transparency, but we could make an extension for opencpn to do it.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 12-11-2015, 08:48   #213
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: Imgkap - kap File Converter Tool

Also,

We should invent a new format for imagery charts. This format should probably use jpeg or possibly jpeg2000 compression. This will reduce the file size to 15% of a kap file without any loss in quality. We would then implement an extension to support transparency. I don't think we care about partial transparency, so a bitmap or possibly specifying a transparent color would do.

opencpn should treat this type of chart differently using a different color in the chart bar than typical raster charts, and be able to overlay it on top of raster charts as well as allowing blending to turn on and off the transparent area.

Finally, this chart format should support multiple images of the same area at different dates to reveal the area at different times to show different tide states as well as different sea states. These times should be referenced to what the tide was at that time and what the swell conditions were at that time.
__________________
boat_alexandra is offline   Reply With Quote
Old 12-11-2015, 09:38   #214
Registered User

Join Date: May 2012
Posts: 405
Re: Imgkap - kap File Converter Tool

One of my options is to use the OpenCPN plugin GE2KAP, which can make a chart from a section of OpenCPN. With the survey_pi plugin enabled the soundings are displayed. We get a screen shot with the soundings rendered. Example attached.

The first item on the wish list is for an OpenCPN overlay format with a transparent background.

The images for display on OpenCPN need to be very portable. I have not been able to make a JPG from QGis with a transparent background. GeoTiffs are large but do retain the transparent background. Could these be accommodated?

A lot of soundings have gone into OpenSeaMap and they are also looking at means of display. The TeamSurv raw/processed data seems closed to contributors once it has been uploaded.

Mike




Attached Thumbnails
Click image for larger version

Name:	myChart.jpeg
Views:	60
Size:	62.2 KB
ID:	112871  
__________________
Rasbats is offline   Reply With Quote
Old 12-11-2015, 09:52   #215
Registered User
 
autumnbreeze27's Avatar

Join Date: Apr 2012
Location: Cruising Mexico
Boat: 50' Herreshoff Ketch
Posts: 967
Re: Imgkap - kap File Converter Tool

Quote:
Originally Posted by boat_alexandra View Post
Also,

We should invent a new format for imagery charts. This format should probably use jpeg or possibly jpeg2000 compression. This will reduce the file size to 15% of a kap file without any loss in quality. We would then implement an extension to support transparency. I don't think we care about partial transparency, so a bitmap or possibly specifying a transparent color would do.
Jpeg doesn't support transparency, PNG might be a better choice.
__________________
autumnbreeze27 is offline   Reply With Quote
Old 12-11-2015, 10:19   #216
Registered User

Join Date: May 2012
Posts: 405
Re: Imgkap - kap File Converter Tool

Thanks. A georeferenced PNG with a transparent background made from QGis is about the same size as the JPG from the same source.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 12-11-2015, 11:04   #217
Registered User
 
HappySeagull's Avatar

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

Here's an idea from another developer..."OSMAND"
Click image for larger version

Name:	Screenshot_2015-11-12-09-44-32.png
Views:	41
Size:	293.6 KB
ID:	112877Click image for larger version

Name:	Screenshot_2015-11-12-09-45-13.png
Views:	40
Size:	148.6 KB
ID:	112878Click image for larger version

Name:	Screenshot_2015-11-12-09-45-48.png
Views:	47
Size:	304.9 KB
ID:	112879

here, it is applying "GeorgiaStraits-North.sqlitedb" as an overlay on an OpenStreetMap. note the little blue slider that controls transparency.
Making these "sqlitedbs" is a bit of work !
opining,
.... I find transparent map overlays are not really useful - neither is plain, combined they are a blur. But in this road-driver application, it is a way to see and switch-to charts- not as good imo, as Opencpn for the purpose.
__________________
HappySeagull is offline   Reply With Quote
Old 12-11-2015, 11:14   #218
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,758
Re: Imgkap - kap File Converter Tool

Questions and issues coming to my mind:

A chartlet with some transparent areas will show what "below"?

Do we need chart layers?

Or is this chartlet something like an user created object? --> Draw-plugin...
What do we see then on the canvas? Thinking about an underlying Vector chart.

How does this work with quilting? Raster and Vector mixed...
Do the chartlet(s) quilt?

Hubert

Btw.: creating a chartlet with imgkap starting from a png with alpha channel gave us Black for the transparent areas
__________________
bcn is offline   Reply With Quote
Old 12-11-2015, 12:16   #219
Registered User
 
HappySeagull's Avatar

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

for me, it'd seem the simplest way to do what rasbats has shown is to use icons ala the opencpn/s57 data folder and "call them up" with a gpx/xml...? something that might be included in the draw plugin....?
__________________
HappySeagull is offline   Reply With Quote
Old 12-11-2015, 12:26   #220
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 2,758
Re: Imgkap - kap File Converter Tool

Happy...

a soundings/sounding path or depth line object (nested). Yes.

And think about exporting this. Or people who want a chartlet for a second, different system.

Boat_alexandra/Sean is proposing a more challenging scenario though.

But I'm with you that the draw-PI can be the home for the first solution.

Hubert
__________________
bcn is offline   Reply With Quote
Old 12-11-2015, 14:12   #221
Registered User

Join Date: May 2012
Posts: 405
Re: Imgkap - kap File Converter Tool

Happy .....

My screenshot was the product of my fork of survey_pi, generated from an sqlite database.

GitHub not yet updated.

I will take a closer look at O-Draw.

Mike
__________________
Rasbats is offline   Reply With Quote
Old 12-11-2015, 14:21   #222
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,351
Re: Imgkap - kap File Converter Tool

There is a lot going on here, so bear with my 2 cents, keeping in mind I have not used imgkap much if at all. I think the idea Sean threw out is trying to provide a tool for many uses, one of them being a good way for OpenCPN to provide "layers" of various types of "user" information in an comprehensible and easily managed way.

Types of Information (not comprehensive)
-Google satellite pics (GeoKap)
-Weather overlays (weatherfax_pi)
-Satellite weather photos
-Navtex
-Draw_pi objects
- Survey data - (sorry Mike, almost forgot that)
-Climatology data
-Grib? (maybe not)etc.

with the possibly of having capabilities such as these
* location (coordinates) included in the file format
* transparency & controls (maybe on off, maybe an adustment bar)
* saved views - remember which layers were on in a given view.
* order of rendering of layers, select which one last, remembering that.
what else?

Can a Georeferenced PNG be considered a layer? Can it be the tool needed?

Maybe baby steps are needed, but BCN has asked this question in a different way earlier, thinking about all the different types of data and uses and how it impacts O. It certainly does not hurt to think/discuss this carefully, so there is a reasonable plan for development with less backing up and undoing things. Perhaps even with some shared tools that can be used by several plugins, which will leverage capabilities (think of watchdog and ocpn_draw_pi developments using guid)
__________________
rgleason is online now   Reply With Quote
Old 12-11-2015, 17:15   #223
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,351
Re: Imgkap - kap File Converter Tool

It is very likely I don't understand all the issues, but

Tide data is another type, that is really vectors over time, just like grib.

Also another capability is play controls over time, like the grib_pi
__________________

__________________
rgleason is online now   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 17:45.


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.