Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 09-04-2012, 06:54   #91
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Davao, Philippines
Posts: 1,776
Send a message via Skype™ to phiggins
Re: KML Overlay Plugin

I created a placemark and stored as KML and it does work. But the images don't. I'm using Window 7. I'll try it on my XP system.

Don't forget to PM your email address.
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 09-04-2012, 08:32   #92
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Davao, Philippines
Posts: 1,776
Send a message via Skype™ to phiggins
Re: KML Overlay Plugin

I tried on XP with same results, displays a placemark but not the image.

Here is the KML and JPG, could someone who has the plugin working see if it display the image.
Attached Thumbnails
Click image for larger version

Name:	test4.jpg
Views:	217
Size:	173.0 KB
ID:	39712  
Attached Files
File Type: kml test4.kml (487 Bytes, 97 views)
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 09-04-2012, 08:54   #93
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: KML Overlay Plugin

Paul...
The plugin seems not to (yet) implement external image files linked from KML. Try the attached .kmz bundle of your data - works for me.
And welcome back - I've heard you've had a lot of "fun" on the way back north

Pavel
Attached Files
File Type: kmz test4.kmz (173.5 KB, 99 views)
nohal is offline   Reply With Quote
Old 09-04-2012, 08:58   #94
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again, currently in Fiji
Boat: Sailboat
Posts: 1,466
Re: KML Overlay Plugin

Quote:
Originally Posted by nohal View Post
And welcome back - I've heard you've had a lot of "fun" on the way back north
Pavel, don't get him started..... Don't wanna talk NorthAmerican animosities here...

Paul, what's your current location, I am in Miami? PM sent!

Dirk
LeaseOnLife is offline   Reply With Quote
Old 09-04-2012, 09:48   #95
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Davao, Philippines
Posts: 1,776
Send a message via Skype™ to phiggins
Re: KML Overlay Plugin

Thanks pavel, you're right the kmz files work. Also even when a KMZ file its doesn't seem to like a BMP image which is what GE2KAP creates.

SethDart, any chance you can add support for the above two things?

LeaseOnLife, I'm back in Toronto. Not sure they will let me across the border anymore. Anyone want to buy a sailboat in Florida?

Yeah lets not mention that C word country again.
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 12-04-2012, 01:58   #96
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: KML Overlay Plugin

Hi,

I'll implement external image for KML files ASAP. I choose KMZ because I thought it'd be better as it's self contained. I don't know if image path can be relative (to the path of the KML file) or absolute. If the latter, it'd be hard to share such KML+images because it'd require to have the same path to work.

A KMZ file is just a zip with one KML and one or more images. The transparency is defined in the KML file (in the color section) Nothing special with the image, the whole transparency is handled by the plugin as defined in the KML file.
You can open the Herm KMZ file from #55 the transparency is set in:
<color>b8ffffff</color>
It's coded as Alpha+RGB, RGB not being used for image overlay. So alpha is the first two chars in hex, 0-255

If you can create a KML file plus the appropriate image, it's very easy to create the same as KMZ. You can contact me privately if needed, my mail address is in the autors section of OpenCPN about dialog.

Regards,
Jean-Eudes
SethDart is offline   Reply With Quote
Old 12-04-2012, 02:34   #97
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: KML Overlay Plugin

Jean-Eudes...
https://developers.google.com/kml/do...#groundoverlay says "Any URI" when describing the href parameter, so pretty much anything can be there.

Pavel
nohal is offline   Reply With Quote
Old 12-04-2012, 04:07   #98
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Davao, Philippines
Posts: 1,776
Send a message via Skype™ to phiggins
Re: KML Overlay Plugin

Jean-Eudes,

I have been trying to change GE2KAP to create a JPG output and a KMZ. The JPG I can do but I am having difficulty creating a KMZ. If you or anyone else has some C++ code to do this, I'd appreciate a copy of it.
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 12-04-2012, 04:17   #99
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: KML Overlay Plugin

Paul,
haven't tried it myself, but have a look at Zip Utils - clean, elegant, simple, C++/Win32 - CodeProject®
The contents of the zip aka .kmz are:
doc.kml and a folder called files with the jpg file/s

Pavel
nohal is offline   Reply With Quote
Old 30-04-2012, 10:23   #100
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Davao, Philippines
Posts: 1,776
Send a message via Skype™ to phiggins
Re: KML Overlay Plugin

SethDart,

I have modified GE2KAP so that it creates a KMZ file but the plugin won't load it. The KMZ file can be opened OK on Google earth. I have attached the KMZ file and the JPEG file that GE2KAP produces. Why can't the plugin load it?
Attached Thumbnails
Click image for larger version

Name:	test14.JPG
Views:	220
Size:	262.3 KB
ID:	40569  
Attached Files
File Type: kmz test14.kmz (385 Bytes, 84 views)
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 30-04-2012, 10:36   #101
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: KML Overlay Plugin

Quote:
Originally Posted by phiggins View Post
SethDart,

I have modified GE2KAP so that it creates a KMZ file but the plugin won't load it. The KMZ file can be opened OK on Google earth. I have attached the KMZ file and the JPEG file that GE2KAP produces. Why can't the plugin load it?
Paul

The picture was not included in the kmz file I downloaded the picture from your post and added it to the kmz archive, and then it showed up OK.

Thomas
cagney is offline   Reply With Quote
Old 30-04-2012, 11:44   #102
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Davao, Philippines
Posts: 1,776
Send a message via Skype™ to phiggins
Re: KML Overlay Plugin

Thanks, Cagney,

But GE is able to display it when they are seperate files. Could you post the KMZ file with the .JPG as part of it.
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 30-04-2012, 11:54   #103
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: KML Overlay Plugin

Quote:
Originally Posted by phiggins View Post
Thanks, Cagney,

But GE is able to display it when they are seperate files. Could you post the KMZ file with the .JPG as part of it.
test14.kmz.doc
cagney is offline   Reply With Quote
Old 30-04-2012, 12:42   #104
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Davao, Philippines
Posts: 1,776
Send a message via Skype™ to phiggins
Re: KML Overlay Plugin

OK thanks,

I modified GE2KAP to create a KMZ with the JPG imbedded in it and now it works with the plugin. See attached KMZ.

If anyone would like to test the new version of GE2KAP, send me an email:

phiggins()gmn-usa.com change the () to you know what.
Attached Files
File Type: kmz test22.kmz (223.1 KB, 118 views)
__________________
Paul,
" One moment you are running along, the next you are no more." Dean Spanley
phiggins is offline   Reply With Quote
Old 30-04-2012, 13:16   #105
Registered User
 
sinbad7's Avatar

Join Date: Sep 2003
Location: Ubatuba,SP,Brazil (Ex Norway)
Boat: (Ex) Alu. 60' yacht-"Eight Bells"
Posts: 2,731
Images: 57
Send a message via Skype™ to sinbad7
Re: KML Overlay Plugin

Paul..

Hello again.. I knew you were up to more trouble.. he he
Just found this thread and have skimmed through it.
I tried displaying your test22.kmz but it just displays a transparent overlay with no features. Presume there is also the need of a .jpg file? Where can I download it?

Can I download this new GE2KAP from your site?

What exactly does the opencpn plugin do?

Regds

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Reply

Tags
kml

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
Google Earth Plugin r.fairman OpenCPN 445 29-04-2020 10:11
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 77 23-04-2019 05:40
GRIB Weather Mark Ward OpenCPN 26 12-02-2012 21:33
Route Properties, Missing Functions James Baines OpenCPN 13 13-07-2011 04:31

Advertise Here


All times are GMT -7. The time now is 01:33.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.