Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 Rate Thread Display Modes
Old 21-02-2011, 11:32   #16
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: Organizing Nav Objects into Layers

Nohal..

Quote:
Regarding the transparent markers - what's the problem with making a transparent XPM and placing it in the UserIcons subfolder as shown on the attached screenshot? Or did I understand wrong what you mean?
And where do I find this UserIcons subfolder?

Your #9... I downloaded and installed your version of opencpn.exe but I can see no extra items? No layers,, no extra icons...

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 21-02-2011, 11:37   #17
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Organizing Nav Objects into Layers

Pjotr,
thanks for the compliments
More files in a layer seems like a good idea and a viable use case to me, which is not hard to do. Furthermore I would keep it as simple as possible - as far as we will be limited with the navobject/gpx stuff the solution will not be perfect anyway...
In the longer term KML | OGC(R) looks like a beast we should look at for this stuff. It could kill quite a few flies with a single stroke...

Pavel
nohal is offline   Reply With Quote
Old 21-02-2011, 11:51   #18
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Organizing Nav Objects into Layers

Tore,
Quote:
Originally Posted by sinbad7 View Post
And where do I find this UserIcons subfolder?
You have to create it and place your icons there. Follow the instructions at the beginning of Routes and Marks | Official OpenCPN Homepage
Your icons will appear at the end of the list. One attached for testing, just remove the .doc and place it to the folder you create according to the manual.
Quote:
Your #9... I downloaded and installed your version of opencpn.exe but I can see no extra items? No layers,, no extra icons...
There are no extra icons, just a new tab in route manager. Are you sure you are running the right exe?
Just to make sure - it is not an installation package, just a replacement application executable. And it does not contain the import fix.

HTH

Pavel
Attached Files
File Type: doc fl.xpm.doc (2.1 KB, 65 views)
nohal is offline   Reply With Quote
Old 21-02-2011, 11:55   #19
Registered User

Join Date: Jan 2011
Location: GREECE
Boat: 7,5m ARIEL VI
Posts: 3
Re: Organizing Nav Objects into Layers

Pjotr,
i have already replace the file at works fine bei dell laptop, windows vista. when it is complette ready, please for the english.pot to translate it in greek language too.
anyway i will test it deeper at the next days.
thanks for the great work
yannis
ARIEL143 is offline   Reply With Quote
Old 21-02-2011, 16:31   #20
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: Organizing Nav Objects into Layers

nohal..

I've set up the UserIcons folder and downloaded a few markers in .xpm format
and all is selectable from the Mark properties box.

However. when I made up a new icon as a transparent .gif in GIMP2 and saved it as a .xpm file it did not show up in my properties box? Not familar with the .xpm format but the new icon works as a transparent .gif and it is duly saved as a .xpm ??

Appreciate your advice.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 21-02-2011, 20:32   #21
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Organizing Nav Objects into Layers

Tore,
could you post one of the problematic XPM files for examination? Don't have Gimp on my netbook to try to reproduce your workflow, but will have time to do some not physically intensive stuff as the afternoons are bit too warm for me here in Iguazu

Pavel
nohal is offline   Reply With Quote
Old 22-02-2011, 13:14   #22
Registered User

Join Date: Feb 2010
Posts: 619
Re: Organizing Nav Objects into Layers

Quote:
Originally Posted by rooiedirk View Post
/home/dirk/opencpn/GitOpenCPN/opencpn/src/routeprop.cpp: In member function 'bool RouteProp::UpdateProperties()':
/home/dirk/opencpn/GitOpenCPN/opencpn/src/routeprop.cpp:847: error: invalid conversion from 'const char*' to 'wxChar'
/home/dirk/opencpn/GitOpenCPN/opencpn/src/routeprop.cpp:847: error: initializing argument 1 of 'int wxString::Find(wxChar, bool) const'

I'm working with Gentoo and a 2.6.37 kernel
Thanks for trying!
I understand your compiler has a problem with the lines
Code:
                        int i = c.Find(',');
                        if (i != wxNOT_FOUND) c.Remove(i);
Visual Studio accepts this, and the wxWidgets docs I have do not specify any constructors for wxChar constants, so I was just guessing...

I think you have 2 options:

1. try c.Find(wxT(','));
2. comment out both lines, then you will get e.g. "Dover, England" instead of "Dover" as column heading. Not a big issue.

Good luck and thanks again.

@Pavel...
Thanks for helping with layers teething patches...

I think the Import/Export buttons can indeed be disabled for Layers tab, to avoid possible confusion. Otherwise, I still believe a layer should be statically defined as a single file or directory. It should be completely defined outside of OpenCPN, rather than built interactively.


Piotr
PjotrC is offline   Reply With Quote
Old 22-02-2011, 13:47   #23
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Organizing Nav Objects into Layers

Quote:
Originally Posted by PjotrC View Post
I think the Import/Export buttons can indeed be disabled for Layers tab, to avoid possible confusion. Otherwise, I still believe a layer should be statically defined as a single file or directory. It should be completely defined outside of OpenCPN, rather than built interactively.
At this stage the easiest solution, otherwise the GUI will end up full of buttons nobody understands. I would probably go with a folder for each layer. A little bit more to implement but quite understandable and transparent for the user IMHO.

Pavel
nohal is offline   Reply With Quote
Old 23-02-2011, 02:26   #24
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: Organizing Nav Objects into Layers

nohal...

Just re-booting OpenCPN displayed all my new nav. marks in the Mark properties box.
I can see no extra tag/label in the route manager?

When I've completed all the transparent nav. marks I'll upload them here.

Is there any way to lock the nav marks so they are not accidentally removed?
Presently they are too easy to move.

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 23-02-2011, 03:19   #25
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: Organizing Nav Objects into Layers

nohal/PjotrC..

Here is a list of 25 navigation objects to be added to your Mark properties box under the sub-directory of 'UserIcons'.

Tore
Attached Thumbnails
Click image for larger version

Name:	IALA markers.png
Views:	167
Size:	48.7 KB
ID:	24105  
Attached Files
File Type: doc UserIcons.zip.doc (35.7 KB, 74 views)
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 23-02-2011, 05:13   #26
Registered User

Join Date: Feb 2010
Posts: 619
Re: Organizing Nav Objects into Layers

Quote:
Originally Posted by sinbad7 View Post
nohal...

Is there any way to lock the nav marks so they are not accidentally removed?
Presently they are too easy to move.

Tore
Sinbad7...

Thanks for the icons, they look great... but... perhaps it would be possible to center the images on the right spot in the icon? This problem affects also the icons built into the release OpenCPN. Unfortunately, this is not always in the middle of the picture

Layers is the way to protect permanent marks on charts. The executable nohal posted from my patch does work for me... thanks again, Pavel.

Piotr
PjotrC is offline   Reply With Quote
Old 23-02-2011, 05:53   #27
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: Organizing Nav Objects into Layers

PjotrC..

Yes I noticed the same,particularly with icon # 3-9 and 10
The centre is of course the centre of the 'invisible' frame.
Not sure how to change this.
The small white dot at the bottom should indicate the icon's geo loc.

I am using the patch you mention (Vista) but there is no indication of any
extra label in the Route manager?

Tore
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 24-02-2011, 09:04   #28
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: Organizing Nav Objects into Layers

XPM format supports including the hotspot coordinates in the image, so it should be pretty painless to include such a functionality... If it's not already there - haven't looked at the code yet.

Pavel
nohal is offline   Reply With Quote
Old 24-02-2011, 11:57   #29
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: Organizing Nav Objects into Layers

Here are the updated IALA sea markers for OpenCpn as per my #25.
Place them in a sub-directory of OpenCPN called 'UserIcons'.

The icons are normally move by the white dot at the bottom but some of the larger icons are moved by their imaginary centres of their background tiles.Perhaps nohal can fix this for us?

Tore
Attached Files
File Type: doc UserIcons.rar.doc (27.4 KB, 61 views)
__________________
"And all I ask is a tall ship and a star to steer her by."
sinbad7 is offline   Reply With Quote
Old 25-02-2011, 02:49   #30
Registered User

Join Date: Feb 2010
Posts: 619
Fixes for properly importing layers

Attached is a patch supplementary to the original release candidate + 2 teething patches from nohal.

It includes the following changes:

- import/export buttons are disabled on the RM layers tab
- manual Load layer builds a single layer from all files selected in the dialog
- the name of the layer is assumed from the filename for single files, from directory name - for multiple file import
- initial loading occurs from /layers directory as follows:
- individual .gpx files create a separate layer per file
- any subdirectory present will create a layer from all of its .gpx contents

A small modofication is also included for drawing waypoints - still does not solve RM toggling visibility for tracks, but works well in layers.

I am still hunting a crash occuring sometimes on the very first call to RM, which never occurs on a fresh opencpn.ini :-(
Attached Files
File Type: doc layers_loading.patch.doc (8.3 KB, 59 views)
PjotrC is offline   Reply With Quote
Reply


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
Organizing the Cats by Performance Sand crab Multihull Sailboats 68 28-02-2011 13:51
Organizing 12vdc Distribution Panel SV Demeter Electrical: Batteries, Generators & Solar 45 12-12-2010 09:20
What Are the Objects that Display . . . Gilletarom OpenCPN 47 08-09-2010 15:01
Are Ten Layers of Fiberglass Strong? goldbeard Construction, Maintenance & Refit 18 14-04-2010 08:05

Advertise Here


All times are GMT -7. The time now is 15:44.


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.