Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 16-09-2014, 12:54   #31
Registered User

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

Gilletarom...
Not sure I understand. Locally what?
Just use the charts and the database will get populated in your obvious area of interest.

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 24-09-2014, 20:21   #32
Registered User

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

Hi all...
I have prepared a new testing version for Windows, which should fix the occasional crashes of OpenCPN on exit. Please, especially if you were affected by this problem, get it from Download opencpnplugins from SourceForge.net and let me know if the problem is solved.
(New "full" release for all the platforms due in a couple of days.)

Thanks

Pavel
__________________

__________________
nohal is offline   Reply With Quote
Old 01-10-2014, 05:20   #33
Registered User
 
rooiedirk's Avatar

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

Pavel,
Worked like a charm until the last git update this morning. Now a crash on "show on chart"
Code:
*** opencpn (wxWidgets 2.8.12) crashed ***, see backtrace!
0x833c721 in wxCrashPrint::Report() at crashprint.cpp:83
0x8146e20 in MyApp::OnFatalException() at chart1.cpp:2458
0xb7656984 in wxFatalSignalHandler at ??:0
0xb76ed400 in __kernel_sigreturn at ??:0
0xb6c924d4 in  at ??:0
0xb6c3a19f in vfwprintf at ??:0
0xb6ceb1fc in __vswprintf_chk at ??:0
0xb7632ecf in wxVsnprintf(wchar_t*, unsigned int, wchar_t const*, char*) at ??:0
0xb761b2fb in wxString::PrintfV(wchar_t const*, char*) at ??:0
0xb761b471 in wxString::Format(wchar_t const*, ...) at ??:0
0xb31ae448 in objsearch_pi::FindObjects(wxString const&, wxString const&, double, double, double) at ??:0
0xb31ae81e in ObjSearchDialogImpl::OnSearch(wxCommandEvent&) at ??:0
0xb75c39a7 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const at ??:0
0xb765325b in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) at ??:0
0xb7653671 in wxEvtHandler::SearchDynamicEventTable(wxEvent&) at ??:0
0xb765374b in wxEvtHandler::ProcessEvent(wxEvent&) at ??:0
0xb73ee76f in wxTextCtrl::OnChar(wxKeyEvent&) at ??:0
0xb75c39a7 in wxAppConsole::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) const at ??:0
0xb765325b in wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) at ??:0
0xb76533e5 in wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) at ??:0
0xb7653770 in wxEvtHandler::ProcessEvent(wxEvent&) at ??:0
0xb738e17b in  at ??:0
0xb689888a in  at ??:0
0xb65f08e7 in g_closure_invoke at ??:0
0xb6603777 in  at ??:0
0xb660b5e9 in g_signal_emit_valist at ??:0
0xb660bb44 in g_signal_emit at ??:0
0xb69d2523 in  at ??:0
0xb69e9b00 in gtk_window_propagate_key_event at ??:0
0xb69ec8a4 in  at ??:0
0xb689888a in  at ??:0
0xb65ef71e in  at ??:0
0xb65f08e7 in g_closure_invoke at ??:0
0xb66033ce in  at ??:0
0xb660b5e9 in g_signal_emit_valist at ??:0
0xb660bb44 in g_signal_emit at ??:0
0xb69d2523 in  at ??:0
0xb68969fc in gtk_propagate_event at ??:0
0xb6896cd0 in gtk_main_do_event at ??:0
0xb6702159 in  at ??:0
0xb64f0193 in g_main_context_dispatch at ??:0
0xb64f0420 in  at ??:0
0xb64f07b3 in g_main_loop_run at ??:0
0xb6895a20 in gtk_main at ??:0
0xb737a86b in wxEventLoop::Run() at ??:0
0xb73f55a0 in wxAppBase::MainLoop() at ??:0
0xb73f5050 in wxAppBase::OnRun() at ??:0
0xb75f96d2 in wxEntry(int&, wchar_t**) at ??:0
0xb75f9777 in wxEntry(int&, char**) at ??:0
0x8141c59 in main at chart1.cpp:789
*** Crashed with return code: 0 ***
Nothing in the logfile.

There used to be a seperated thread for chart channing, wich is not there anymore.
Working under Gentoo linux
O is also the latest git.
Dirk
__________________
rooiedirk is offline   Reply With Quote
Old 01-10-2014, 06:25   #34
Registered User

Join Date: Jul 2010
Location: Monastir, Tunisia
Boat: Amel Sharki
Posts: 1,774
Re: Chart Object Search plug-in

Reason is: wxString::Format() has wrong datatypes in function FindObjects() since last github changes.
This is very often observed when using wxWidgets by programmers.

Gerhard
__________________
CarCode is offline   Reply With Quote
Old 01-10-2014, 06:45   #35
Registered User

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

Dirk...
Wrong order of the parameters. Don't code at 3 AM

Pavel
__________________
nohal is offline   Reply With Quote
Old 01-10-2014, 08:45   #36
Registered User
 
rooiedirk's Avatar

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

Works again. Thanks.
__________________
rooiedirk is offline   Reply With Quote
Old 16-10-2014, 10:34   #37
Registered User

Join Date: Feb 2010
Posts: 619
Re: Chart Object Search plug-in

Pavel,

A very useful tool, that I am sure will grow...

I am wondering, if there is a way to search for objects, that have no known name attribute, just based on object type (some distance limit would then become very much needed)?

An example would be searching for marked anchorage areas, or for caution areas nearby...

I tried some regular expressions, too...

Thanks for the nice plugin!

Piotr
Attached Thumbnails
Click image for larger version

Name:	anchorage_search.jpg
Views:	92
Size:	87.6 KB
ID:	89826  
__________________
PjotrC is offline   Reply With Quote
Old 16-10-2014, 10:57   #38
Registered User

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

Pjotr...
Distance limit is already implemented. The whole implementation is limited to named objects (and _texto for CM93) and I currently don't plan to extend it, although it is technically trivial to implement.
Regex won't work, what will is SQL LIKE syntax.
BTW, in the latest code I implemented import of CSV data, so you can populate the database with pretty much anything you like. And the DB under it is SQLite, so you can play with the data using any tool that supports it...

Pavel
__________________
nohal is offline   Reply With Quote
Old 18-10-2014, 16:37   #39
Registered User

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

Hi all...
Objsearch_pi version 0.5 has just been released. Adds ability to limit the search range, import of CSV data and a scan function which automatically flies over a selected area at different scales to populate the object database.

TIA for your testing feedback.

Pavel
__________________
nohal is offline   Reply With Quote
Old 20-10-2014, 02:08   #40
Registered User

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

Quote:
Originally Posted by nohal View Post
Hi all...
Objsearch_pi version 0.5 has just been released. Adds ability to limit the search range, import of CSV data and a scan function which automatically flies over a selected area at different scales to populate the object database.

TIA for your testing feedback.

Pavel
It's awesome!

A minor feature would be that you could double click an item in the search result to show it on the chart.

Tested on Mac: The dialog in plugin settings won't close.
__________________
stensmo is offline   Reply With Quote
Old 09-11-2014, 13:20   #41
Registered User

Join Date: Oct 2014
Posts: 26
Re: Chart Object Search plug-in

I just installed the Chart Object Search plugin. Great feature--I've been wanting this for a long time!

One small usability feature you may want to add: when I hit the "Show on chart" button, it always changes the scale to 135600. It would be nice if it could keep the same scale as was being displayed before you hit the "Show on chart" button.

Also, is there any way to activate the plugin with a ctrl-F keyboard shortcut?

Thanks!

Jim
__________________
jim326 is offline   Reply With Quote
Old 10-11-2014, 03:50   #42
Registered User

Join Date: Sep 2012
Location: Baikal
Posts: 270
Re: Chart Object Search plug-in

nohal, when there is support for finding names in the national language?
__________________

__________________
Baikal 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 20:10.


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.