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 14-02-2012, 04:54   #31
Registered User

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

Pavel,

Thanks for the build.

This is a very early version. Objects are rendered even if they're out of the viewport. There's no optimization currently. Some point are computed to the left outside of the display while others are on the right, hat's why there's a straight line in between. I'll have to figure the geometric algorithm to find if the object crosses the display or not to figure if I render it or not. There are probably objects that crosses the -180/+180 line that are rendered incorrectly.

There's still a lot of work. I'll probably start with styles, to handle color and transparency. Then GroundOverlay. I'm still thinking about the possible need of expanded selection of objects inside kml (for now each kml file is either visible or not, you can't toggle objects one by one. but I already handle visibility parameter so if an object is described as hidden, it's not drawn)

Comments/suggestions/patches welcome ;-)
SethDart is offline   Reply With Quote
Old 14-02-2012, 05:26   #32
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
Fingers faster than brain - of course I've just changed the version

Edit: New build at http://opencpn.xtr.cz/kmloverlay_v15_vs2008_pi.dll - working well for me with 2.5.0 on Win7

Pavel
still no luck on XP

Code:
08:17:41: PlugInManager: Loading PlugIn: C:\Program Files\OpenCPN\plugins/kmloverlay_v15_vs2008_pi.dll
08:17:41: Error: Failed to load shared library 'C:\Program Files\OpenCPN\plugins/kmloverlay_v15_vs2008_pi.dll' (error 14001: this application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.)
08:17:41:    PlugInManager: Cannot load library: C:\Program Files\OpenCPN\plugins/kmloverlay_v15_vs2008_pi.dll
LeaseOnLife is offline   Reply With Quote
Old 14-02-2012, 05:37   #33
Registered User

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

LeaseOnLife,

Do you use straight 2.5.0 release from opencpn.org or did you compile it yourself?
SethDart is offline   Reply With Quote
Old 14-02-2012, 05:39   #34
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 SethDart View Post
LeaseOnLife,

Do you use straight 2.5.0 release from opencpn.org or did you compile it yourself?
2.5.0 from opencpn.org
LeaseOnLife is offline   Reply With Quote
Old 14-02-2012, 08:17   #35
Registered User

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

LeaseOnLife...
Weird, very weird. I've just tried it on my little Atom XP machine and it runs OK. Didn't you forget to copy libexpat.dll to the OpenCPN program directory? That way I was able to make the loading fail but with a different error (126: module not found)

Out of ideas

Pavel
nohal is offline   Reply With Quote
Old 14-02-2012, 08:26   #36
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
LeaseOnLife...
Didn't you forget to copy libexpat.dll to the OpenCPN program directory?
libexpat is where it should be....

If nobody else has this problem, then don't focus on it... Waiting for a 2.6.x version with ChuckSK patch for rendering CM93 on the ICW without crashing...
Attached Thumbnails
Click image for larger version

Name:	libexpat-where-it-should-be.jpg
Views:	185
Size:	78.8 KB
ID:	37378  
LeaseOnLife is offline   Reply With Quote
Old 14-02-2012, 08:45   #37
Registered User

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

Do you know who built official OpenCPN windows package? Is it you Pavel?

We'll have to figure exactly which options were enabled to reproduce exactly the same for our build environments.

When I faced these errors, replacing C:\Program Files\OpenCPN\*.dll by those I built with wxWidgets made the crash disapear. To me it's a wxWidgets compatibility problem. OpenCPN ran fine with both... - scratching head -
SethDart is offline   Reply With Quote
Old 14-02-2012, 08:51   #38
Registered User

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

Nope, I suppose Dave built the package - I'm building just the 2.6 betas.
Very nice specimen of a DLL hell

Pavel
nohal is offline   Reply With Quote
Old 15-02-2012, 04:21   #39
Registered User
 
Playtime's Avatar

Join Date: Jan 2012
Location: Portsmouth
Boat: Bavaria 38 Ocean
Posts: 12
Re: KML Overlay Plugin

Quote:
Originally Posted by LeaseOnLife View Post
libexpat is where it should be....

If nobody else has this problem, then don't focus on it.
I've got exactly the same problem with XP - see my post #24.

I wonder if it is anything to do with trying 2.6.1310 and then removing it before reloading 2.5.0?

It works fine on W7 on my desktop machine.
Playtime is offline   Reply With Quote
Old 15-02-2012, 07:17   #40
Registered User

Join Date: Nov 2011
Location: Istanbul
Boat: Steel, Regina, Holland, 8.70
Posts: 95
Re: KML Overlay Plugin

I put "kmloverlay_pi.dll" in plugin folder and "libexpat" in root folder (proramfiles/opencpn2.50/Win7). But when I open the toolbox I see nothing changed in my plugin list, no KMLOverlay plugin seen between the other plugins.
boraxtr is offline   Reply With Quote
Old 16-02-2012, 06:14   #41
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: KML Overlay Plugin

Quote:
Originally Posted by SethDart View Post
Hi all,

I just uploaded it right here:
https://github.com/OpenCPN/OpenCPN/tree/KMLOverlay

<sniip>

GNU/Linux users. Just download the source to your codebase. Install libkml-devel from your distro. Run make and it should just work.

Regards.
Jean-Eudes
Ok...just build it. Nothing to be found in the plugin tab.....sorry. Perhaps some further instructions?

/ch
sailias is offline   Reply With Quote
Old 16-02-2012, 10:17   #42
Registered User

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

Quote:
Originally Posted by sailias View Post
Ok...just build it. Nothing to be found in the plugin tab.....sorry. Perhaps some further instructions?

/ch
Can you check the logs to find any relevant info?

Are you building stable (2.5.0) or latest beta (2.6.*) ? Platform (windows, linux -which?-, mac)?

If you build for stable, you must revert one commit from the plugin source (the one that make necessary changes for the plugin to work with beta)

$ git revert fbfe7093e574111aebecf218820d229412b17749
SethDart is offline   Reply With Quote
Old 16-02-2012, 11:28   #43
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: KML Overlay Plugin

Used the referenced source from here: https://github.com/OpenCPN/OpenCPN/tree/KMLOverlay and build on Ubuntu 11.10 turns out this source produces a beta 2.6.* build. The package (zip file) is identified as OpenCPN-OpenCPN-0c3a96a but there is noting in the logs. My thinking here is that this is the wrong source, yet the update entry for kml overlay is present. strange. Nothing in the logs.

/ch
sailias is offline   Reply With Quote
Old 16-02-2012, 11:47   #44
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: KML Overlay Plugin

OK checked the source and its the wrong one. Nothing there. My error but used the link provided. Can you point me to the correct source base pls so I can run it again.

/ch
sailias is offline   Reply With Quote
Old 16-02-2012, 11:56   #45
Registered User
 
sailias's Avatar

Join Date: Mar 2010
Location: Canada
Boat: On the Hard
Posts: 336
Re: KML Overlay Plugin

Ok...sorry to pester. I should add I downloaded the zip file from the referenced page which I guess links to the latest beta and the kml branch. If someone would be so kind and send me the git syntax to grab the appropriate source I would be happy to test it. So far my attempts with git to grab it have not been successful...lack of experience with git...

Best regards and thanks

/ch
sailias 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 16:28.


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.