Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 12-09-2014, 03:29   #16
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 300
Re: Chart Object Search plug-in

That is fast

Yes a GPS is connected and working.
Attached a screenshot with the cursor above Liverpool. According the statusbar the distance is 298 nm. According PI 11000
Attached Thumbnails
Click image for larger version

Name:	ObjSearch1.jpg
Views:	78
Size:	346.0 KB
ID:	88079  
__________________

__________________
rooiedirk is offline   Reply With Quote
Old 12-09-2014, 14:59   #17
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 300
Re: Chart Object Search plug-in

Quote:
Originally Posted by rgleason View Post
Here is the view when selecting "Show on Chart" (enc and cm93).
It may work in Linux, but I think there is something amiss for the Windows version.
I'm having the same problem under Linux.
Zooming in and out again does help as a workaround.
I already tried to add a RequestRefresh after the JumpToPosition call, but that didn't help.
More likekly to be a bug in the implementation of JumpToPosition in O I guess.
Dirk
__________________

__________________
rooiedirk is offline   Reply With Quote
Old 12-09-2014, 15:15   #18
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Chart Object Search plug-in

Dirk...
Yes, the problem is in the core, most likely related to the brutal change of position and scale that happens during this operation vs. OpenCPN trying not to do unneeded work, which works fine during normal panning/zooming. I will have a look into it.

Pavel
__________________
nohal is offline   Reply With Quote
Old 13-09-2014, 15:30   #19
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Chart Object Search plug-in

Hi all...
The second testing release of the plug-in is now available for download from PlugIns | Official OpenCPN Homepage

The changes included:
- Update the bundled sqlite to 3.8.6 and wxsqlite to 3.1.1
- Hopefully work around the OpenCPN crash on exit on Windows
- Implement human readable and localizable texts for chart feature names
- Implement select/unselect all in the features dropdown
- Implement Lat/Lon formatting according to OpenCPN core settings
- Prevent zooming to scale 0
- Fix the distance calculation
- Improve the performance of database operations

So far this should be all the stuff I'm able to address in the plug-in itself without touching the core program, let me know if it works as expected.

Pavel
__________________
nohal is offline   Reply With Quote
Old 13-09-2014, 20:53   #20
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,802
Re: Chart Object Search plug-in

Also, it appears to only search area near the boat location as well as wherever the viewport and sometimes outside the viewport. I would prefer an option for a distance from ownship, or viewport. I am getting results from locations far from the viewport and ownboat.

The longitude shown is 0-360 instead of 180 E and W, and latitude doesn't show N/S.

More later.
__________________
boat_alexandra is offline   Reply With Quote
Old 14-09-2014, 01:35   #21
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 300
Re: Chart Object Search plug-in

Pavel,

As Sean already noted the longitude has a problem. I think this causes also other problems.
Distance across the greenwich meridian are wrong. (or right if you would travel around the globe)
The "Show on chart" also seems to work fine aslong I stay on the eastern hemisphere, but goes (almost) blank with a jump over the zero line.
Lat long much better readable now.
Object names
Dirk
Edit
I added a
Code:
if (lon > 180.0)
        lon = lon - 360;
at line 712 and this does the trick for show on chart
__________________
rooiedirk is offline   Reply With Quote
Old 14-09-2014, 09:33   #22
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Chart Object Search plug-in

Dirk...
Solves just the symptoms, not the cause, which is the chart data. We better fix it while saving the objects in the database - coming in the next version.

Pavel
__________________
nohal is offline   Reply With Quote
Old 14-09-2014, 23:27   #23
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 300
Re: Chart Object Search plug-in

Pavel
Underway so only a quick check.
Seems OK now in git.
At installing I get an error
Code:
-- Installing: /usr/local/lib/opencpn/libobjsearch_pi.so
CMake Error at plugins/objsearch_pi/cmake_install.cmake:52 (FILE):
  file INSTALL cannot find
  "/home/dirk/Development/OpenCPN_master/OpenCPN/plugins/objsearch_pi/data".
Call Stack (most recent call first):
  plugins/cmake_install.cmake:40 (INCLUDE)
  cmake_install.cmake:192 (INCLUDE)
But everything seems to work fine.

sugestion:
After a show on chart, the chart jumps to the position. but this position is hidden behind the obj_search window. Is it an idea to close the window after "Show on chart"?
Dirk
__________________
rooiedirk is offline   Reply With Quote
Old 15-09-2014, 15:58   #24
Registered User

Join Date: Jul 2010
Posts: 51
Re: Chart Object Search plug-in

Nohal, great job. After some polishing, this will become an awesome tool.

Is it possible to make a function which iterates through every installed chart, so the database will be populated? Maybe you could put it under plugin settings, and write a small notice it might take a very long time.
__________________
stensmo is offline   Reply With Quote
Old 15-09-2014, 16:08   #25
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Chart Object Search plug-in

stensmo...
Buy a zillion coffees and run OpenCPN with -unit_test_1 command line parameter...
I'm still not convinced the database with all objects from my worldwide chart portfolio is a good idea (I did it during testing, of course)

Pavel
__________________
nohal is offline   Reply With Quote
Old 15-09-2014, 16:37   #26
Registered User

Join Date: Jul 2010
Posts: 51
Re: Chart Object Search plug-in

Quote:
Originally Posted by nohal View Post
stensmo...
Buy a zillion coffees and run OpenCPN with -unit_test_1 command line parameter...
I'm still not convinced the database with all objects from my worldwide chart portfolio is a good idea (I did it during testing, of course)

Pavel
Thanks, unfortunately /unit_test_1 seem broken on Windows. And I am currently out of coffee and Linux.
__________________
stensmo is offline   Reply With Quote
Old 15-09-2014, 16:42   #27
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Chart Object Search plug-in

stensmo...
What seems broken on it? Works just fine for me. If you expect it to scan the whole world of CM93 charts, then no, it will not do it.

Pavel
__________________
nohal is offline   Reply With Quote
Old 16-09-2014, 01:41   #28
Registered User

Join Date: Jul 2010
Posts: 51
Re: Chart Object Search plug-in

Quote:
Originally Posted by nohal View Post
stensmo...
What seems broken on it? Works just fine for me. If you expect it to scan the whole world of CM93 charts, then no, it will not do it.

Pavel
Is there a simple way to scan the whole world for CM93? For S57?
__________________
stensmo is offline   Reply With Quote
Old 16-09-2014, 08:12   #29
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
Re: Chart Object Search plug-in

S57 - unit_test_1
CM93 - no


Sent from
__________________
nohal is offline   Reply With Quote
Old 16-09-2014, 12:35   #30
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,291
Re: Chart Object Search plug-in

Hello Pavel,

Quote:
Originally Posted by nohal View Post
S57 - unit_test_1
CM93 - no


Sent from
cm93 no .... also locally ?
__________________

__________________
Gilletarom is offline   Reply With Quote
Reply

Tags
arc, plug

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
Hitting an Object While Motoring sonnysoh Monohull Sailboats 38 02-03-2016 20:12
Changes on the Plug-in Download page & new plug-in packages nohal OpenCPN 8 04-07-2014 08:15
Object Query on Mac Is Empty George64 OpenCPN 7 15-03-2011 15:15
If money was no object... Llamster Construction, Maintenance & Refit 14 25-03-2009 13:30
cost no object... neither to buy or maintain - what mono would you have any why? Sterling Monohull Sailboats 36 25-10-2008 08:19



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 23:02.


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.