Cruisers Forum
 


 
  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
Prev Previous Post   Next Post Next
Old 31-03-2011, 09:05   #1
Registered User

Join Date: Feb 2010
Posts: 619
Implementing Layers in 0324 Beta

Attached is a patch (based at 0324, following the 0001-Automatic-Daily-Track) implementing handling layers in Route Manager as signalled initially in Forums - Post 622989">-IRJDSUNE9932123321222xxeww-the-IRJDSUNE9932123321222xxeww-original-IRJDSUNE9932123321222xxeww-thread-IRJDSUNE9932123321222xxeww-.

Routes, tracks and waypoints can be aggregated into layers.
A layer is imported interactively via Import new Layer button or automatically on start of OpenCPN.
Automatic import occurs from /layers subdirectory under /data in the OCPN installation structure.
Any .gpx file in /layers becomes a separate layer.
Any subdirectory under /layers (e.g. /layers/windfarms) results in all of its .gpx contents (all the way down) to form a separate layer.

Objects in layers cannot be modified. They can be deleted only as the whole layer.
Objects in layers are not saved to navobj.xml and cannot be exported.

On the layers tab here are buttons for

- showing or hiding a layer on chart (initially: shown)
- showing or hiding the layer contents in other RM tabs (initially: hidden)
- showing or hiding on chart the layer's (incl. routes and tracks) waypoints names (initially: as specified in .gpx file)

For beginner's usage, it is recommended to use manual Load/Delete of layers sparingly. These are primarily layer development tools, and once you are happy with the GPX files, put them into /layers and just leave there.

During layer import the GUIDs (if present) in the GPX files are ignored. The rationale for this is that layers data is treated as _templates_ of Nav Objects, so they are never identified with any other _concrete_ object. This means that you can import the same layer many times over itself, and still have all these copies present. This has both upsides and downsides. I feel the GUID handling policy in OCPN should be reviewed, but for now you get reasonable behaviour and lots of possibilities.

Attached is a series of screenshots with preloaded layers sequentially hidden by single clicks on the visibility icon.

Enjoy,

Piotr
Attached Thumbnails
Click image for larger version

Name:	1all_layers_S.jpg
Views:	196
Size:	76.7 KB
ID:	25698   Click image for larger version

Name:	2minus_paper_folios_S.jpg
Views:	212
Size:	65.9 KB
ID:	25699  

Click image for larger version

Name:	3minus_TSS_zones_S.jpg
Views:	186
Size:	64.8 KB
ID:	25700   Click image for larger version

Name:	4minus_lighthouses_S.jpg
Views:	168
Size:	51.9 KB
ID:	25701  

Click image for larger version

Name:	5minus_ODAS_S.jpg
Views:	199
Size:	51.0 KB
ID:	25702   Click image for larger version

Name:	6minus_routes_S.jpg
Views:	164
Size:	44.8 KB
ID:	25703  

Click image for larger version

Name:	7minus_platforms_windfarms_S.jpg
Views:	441
Size:	41.8 KB
ID:	25704  
Attached Files
File Type: doc 0002-Implement-layers-in-0324.patch.doc (79.4 KB, 73 views)
PjotrC is offline   Reply With Quote
 


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 Nav Objects into Layers PjotrC OpenCPN 70 27-06-2022 18:18
Westerbeke or Beta Marine S&S Engines and Propulsion Systems 25 01-05-2013 03:52
Yanmar or Beta barboak Construction, Maintenance & Refit 26 09-11-2010 15:01
Beta or Yanmar ? Aldgate Engines and Propulsion Systems 9 12-08-2010 18:37
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 01:16.


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.