Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 13-12-2017, 06:57   #1
Registered User

Join Date: May 2012
Posts: 605
PhotoLayer plugin - Satellite GeoTiffs with transparency

Working with VentureFarther (Jon Turgeon) and MAP2CMAPCNET (John Thorn), also Bill Stockton (Chartaid) this new plugin overlays GeoTiff satellite photos on top of the navigation chart. The transparency can be adjusted, allowing easy comparison of features from the chart with the photo.

v0.1 release is here:

https://github.com/Rasbats/photolayer_pi/releases

Windows installer with the release.

Transparency works fully with OpenGL.

GeoTiffs can be downloaded from the VentureFarther website (www.venturefarther.com). Set the 'KAP/GeO' switch to 'GEO'. They can also be made from satellite kaps using MAP2CMAPCNET (convert to GeoTiff (mercator lat/lon)). There are probably other sources. Please let us know of those that work.

Massive help to develop this plugin came from WeatherFax_pi (Sean D'Epagnier) and Bill Stockton (Chartaid).

Comments and bug reports always appreciated.

Mike

p.s. New thread due to typo in the old one. Apologies.

Old thread posts can be found here:
PhotoPlayer plugin - Satellite GeoTiffs with transparency
__________________

Rasbats is offline   Reply With Quote
Old 13-12-2017, 09:02   #2
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,642
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

I loaded the beach image gif. Got an unknown field error, hit OK and it shows.
Transparancy and contrast work well.
Nice beach on England south coast shores.
Attached Thumbnails
Click image for larger version

Name:	Screenshot (56).jpg
Views:	64
Size:	267.4 KB
ID:	160486   Click image for larger version

Name:	Screenshot (55).jpg
Views:	73
Size:	394.4 KB
ID:	160487  

__________________

rgleason is offline   Reply With Quote
Old 13-12-2017, 09:17   #3
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 12,642
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

From the Venture Farther website, I selected a Geotif of Boston and hit Generate.
Then downloaded to my new Geotif directory.
In OpenCPN with Photolayer I loaded the file and it overlayed.,
Attached Thumbnails
Click image for larger version

Name:	Screenshot (58).jpg
Views:	116
Size:	425.7 KB
ID:	160488   Click image for larger version

Name:	Screenshot (57).jpg
Views:	64
Size:	427.1 KB
ID:	160489  

rgleason is offline   Reply With Quote
Old 13-12-2017, 09:18   #4
Registered User

Join Date: May 2012
Posts: 605
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

<Quote>

The warning is due to an unidentifed geotag. It does not affect the working of the plugin. Jon Turgeon will be looking at this. The warning will not appear if you convert a satellite kap to GeoTiff (mercator lat/lon) using MAP2C.

</Quote>

Very interesting using the GeoTiffs from SASPlanet. OpenTopoMaps give you the road maps that other users have requested. I am working on a HOWTO for the wiki at the moment.

Mike
Rasbats is offline   Reply With Quote
Old 14-12-2017, 08:42   #5
Registered User

Join Date: May 2012
Posts: 605
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

A comprehensive guide to using the PhotoLayer plugin has now been published on the wiki:

https://opencpn.org/wiki/dokuwiki/do...ins:photolayer

Mike
Rasbats is offline   Reply With Quote
Old 18-01-2018, 02:07   #6
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,648
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Hello Mike,

Here, VNF - Voies navigables de France - Cartes Ecdis , VNF - Waterways of France - Ecdis Maps, one can download the ECDIS maps of the "Moselle canalized". This card pack comes with "Tif" format photos.
I tried to use the first of these photo "4V059B296701" but without success.
Photolayer is unable to display it.

See the screenshot attached, the error indicated by the plugin.
Attached Thumbnails
Click image for larger version

Name:	2018-01-18-OpenCPN4.8.10109_PhotoLayer_2.jpg
Views:	35
Size:	140.0 KB
ID:	162454   Click image for larger version

Name:	2018-01-18-OpenCPN4.8.10109_PhotoLayer_3.jpg
Views:	35
Size:	272.3 KB
ID:	162455  

Click image for larger version

Name:	2018-01-18-OpenCPN4.8.10109_PhotoLayer_4.jpg
Views:	39
Size:	234.3 KB
ID:	162456  
Gilletarom is offline   Reply With Quote
Old 18-01-2018, 02:56   #7
Registered User

Join Date: May 2012
Posts: 605
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

The files from VNF - Voies navigables de France - Cartes Ecdis are pure ENC and TIF. The ENC work fine with an ECDIS viewer and also OpenCPN.

Fantastic resource.

The TIF files are just images of the locks etc.

PhotoLayer works with GeoTiff files such as those made from SASPlanet, VentureFarther etc.

Mike
Attached Thumbnails
Click image for larger version

Name:	opencpn.enc.png
Views:	33
Size:	194.6 KB
ID:	162458   Click image for larger version

Name:	ecdis.tif.jpg
Views:	32
Size:	204.4 KB
ID:	162459  

Rasbats is offline   Reply With Quote
Old 18-01-2018, 03:07   #8
Registered User

Join Date: May 2012
Posts: 605
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Linux developers ...

I have been fighting libgeotiff for a number of days. Compiled my own version with support for XTIFF but I get the message "Undefined symbol 'XTIFFOpen'" in the OpenCPN log when trying to load the PhotoLayer plugin. The plugin is looking for an EXTERN function from 'XTIFF.c". XTIFF does not compile as a separate library.

Not sure if I have made any sense (= Linux novice) but if someone knows how to link to an external function in a '.c' file could they post some ideas.

Mike
Rasbats is offline   Reply With Quote
Old 18-01-2018, 06:36   #9
Registered User
 
Capt.Don's Avatar

Join Date: Aug 2010
Location: Altadena, CA
Boat: Tartan 3500
Posts: 744
Images: 1
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Very nice-thank you!!! Now to convert all my KAP satellite images to GeoTif.
Capt.Don is offline   Reply With Quote
Old 18-01-2018, 07:52   #10
Registered User

Join Date: Jun 2015
Posts: 341
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Quote:
Originally Posted by Rasbats View Post
Linux developers ...

I have been fighting libgeotiff for a number of days. Compiled my own version with support for XTIFF but I get the message "Undefined symbol 'XTIFFOpen'" in the OpenCPN log when trying to load the PhotoLayer plugin. The plugin is looking for an EXTERN function from 'XTIFF.c". XTIFF does not compile as a separate library.

Not sure if I have made any sense (= Linux novice) but if someone knows how to link to an external function in a '.c' file could they post some ideas.

Mike
Missing a library? Or your using visibility hidden, could you push your changes? , I'll have a look.
did-g is offline   Reply With Quote
Old 18-01-2018, 08:24   #11
Registered User

Join Date: May 2012
Posts: 605
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Thanks Didier.

Nothing has been changed in the code since v0.1. "xtiffio.h" has the EXTERN declaration of XTIFFOpen.

For Windows "xtiffio.h" is in "libgeotiff/libxtiff" made when I setup the pre-requisites, using the instructions here:

dominoc925: How to build 64-bit versions of libgeotiff for Windows

For Linux I compiled proj4/libtiff/libgeotiff using the instructions here:

SciGeo.org: HOW TO: Install latest geospatial & scientific software on Linux

And tried to link to the libraries made. The plugin compiles with several warnings but does not start.

Mike
Rasbats is offline   Reply With Quote
Old 18-01-2018, 08:26   #12
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 5,180
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Mike...
By XTIFF you mean https://github.com/ufz/geotiff/tree/master/libxtiff?

Can you push the code you have to github?

Pavel
nohal is offline   Reply With Quote
Old 18-01-2018, 08:41   #13
Registered User

Join Date: May 2012
Posts: 605
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Pavel ...

Not exactly. I got a tar.gz file in order to follow the SciGeo.org guide.
http://download.osgeo.org/geotiff/li...f-1.4.0.tar.gz

The source code for photolayer_pi is here:

https://github.com/Rasbats/photolayer_pi

Mike
Rasbats is offline   Reply With Quote
Old 18-01-2018, 08:51   #14
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 5,180
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Mike...
Like this it can't work as you are not actually linking against libgeotiff at all. I will send you a pull request in a while.

Pavel
nohal is offline   Reply With Quote
Old 18-01-2018, 09:08   #15
Registered User

Join Date: Jun 2015
Posts: 341
Re: PhotoLayer plugin - Satellite GeoTiffs with transparency

Quote:
Originally Posted by Rasbats View Post
Thanks Didier.

Nothing has been changed in the code since v0.1. "xtiffio.h" has the EXTERN declaration of XTIFFOpen.

For Windows "xtiffio.h" is in "libgeotiff/libxtiff" made when I setup the pre-requisites, using the instructions here:

dominoc925: How to build 64-bit versions of libgeotiff for Windows

For Linux I compiled proj4/libtiff/libgeotiff using the instructions here:

SciGeo.org: HOW TO: Install latest geospatial & scientific software on Linux

And tried to link to the libraries made. The plugin compiles with several warnings but does not start.

Mike
Ok what's missing is the library

first let try with whatever is in debian
sudo apt-get install libgeotiff-dev

Should install libgeotiff

then apply patch, it's a text file(copy an paste from portaudio).

it adds -lgeotiff to the makefile


If system geotiff isn't good enough you have to compile it in your plugin... best could be static.

Here it compiles and run but no tiff for testing (very poor connectivity)
Attached Files
File Type: doc patch.doc (3.1 KB, 15 views)
__________________

did-g is offline   Reply With Quote
Reply

Tags
enc, photo, plug, satellite

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
VentureFarther Satellite Charts - vfkaps plugin Rasbats OpenCPN 146 08-04-2019 03:24
PhotoPlayer plugin - Satellite GeoTiffs with transparency Rasbats OpenCPN 8 06-03-2019 04:53
Plugin development... How to receive chart objects in my plugin? dmartinez OpenCPN 6 04-08-2017 00:56
Feature Request: Set KAP file transparency rgleason OpenCPN 6 31-07-2017 17:14
Satellite phone rental sneuman Marine Electronics 5 03-10-2005 16:11



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 20:35.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.