Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rating: Thread Rating: 5 votes, 5.00 average. Display Modes
Old 09-04-2012, 07:54   #91
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
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, 09:32   #92
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
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:	132
Size:	173.0 KB
ID:	39712  
Attached Files
File Type: kml test4.kml (487 Bytes, 57 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, 09:54   #93
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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, 81 views)
__________________
nohal is offline   Reply With Quote
Old 09-04-2012, 09:58   #94
Registered User
 
LeaseOnLife's Avatar

Join Date: Apr 2008
Location: out cruising again
Boat: Sailboat
Posts: 1,046
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, 10:48   #95
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
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, 02:58   #96
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 335
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, 03:34   #97
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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, 05:07   #98
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
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, 05:17   #99
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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, 11:23   #100
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
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:	122
Size:	262.3 KB
ID:	40569  
Attached Files
File Type: kmz test14.kmz (385 Bytes, 39 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, 11:36   #101
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
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, 12:44   #102
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
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, 12:54   #103
Registered User

Join Date: Dec 2005
Location: WNA
Boat: Dufour 35
Posts: 3,247
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, 13:42   #104
Registered User
 
phiggins's Avatar

Join Date: Nov 2004
Location: Toronto, Canada
Posts: 1,288
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, 85 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, 14:16   #105
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: 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
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
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 72 27-02-2016 12:42
Google Earth Plugin r.fairman OpenCPN 417 15-02-2015 12:15
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 16:48.


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.