Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 21-02-2011, 12:32   #16
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: 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, 12:37   #17
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
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, 12:51   #18
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
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, 27 views)
__________________
nohal is offline   Reply With Quote
Old 21-02-2011, 12: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, 17:31   #20
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: 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, 21:32   #21
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
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, 14: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, 14:47   #23
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
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, 03:26   #24
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: 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, 04:19   #25
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: 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:	76
Size:	48.7 KB
ID:	24105  
Attached Files
File Type: doc UserIcons.zip.doc (35.7 KB, 41 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, 06: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, 06:53   #27
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: 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, 10:04   #28
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,018
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, 12:57   #29
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: 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, 35 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, 03: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, 30 views)
__________________

__________________
PjotrC is offline   Reply With Quote
Reply

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



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 09:55.


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.