Cruisers Forum
 


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 07-06-2019, 23:57   #16
Registered User

Join Date: Jun 2015
Boat: Chantier duu Port Rézé les Nantes, Mopélia 2000
Posts: 90
Re: Unwanted marks circles

Quote:
Originally Posted by did-g View Post
Easiest is to replace every number with a value not 0
like
<opencpn:waypoint_range_rings visible="false" number="3"

in navobj.xml
and navobj.xml.changes


with
<opencpn:waypoint_range_rings visible="false" number="0"

And ask Jon Gough what he intended.

Currently if the number attribute is not 0 rings are always displayed after editing a waypoint.

Done,

found over 100 occurences in navobj.xml
and ove r20 in navobj.xml.changes


tanks !
Didier B is offline   Reply With Quote
Old 30-06-2019, 08:05   #17
Registered User

Join Date: Apr 2015
Location: PA, sail Chesapeake
Boat: Lots of boats.
Posts: 390
Re: Unwanted marks circles

I just installed V5.0 and a few of the new plugins (Squiddio, etc). Range rings appeared around all the Squiddio waypoints. With the instructions I was able to turn them off. I did not touch any options at all. This started as a result of the new install. Just a FYI.
hsi88 is offline   Reply With Quote
Old 30-06-2019, 22:48   #18
Registered User

Join Date: Mar 2009
Location: Currently in Malaysia
Boat: Valiant Esprit 37
Posts: 237
Re: Unwanted marks circles

This is definitely a bug. After installing the 5.0 in parallel I had the same thing happen with my existing waypoints. Mine were 1 ring with 1 mile range. After some research, I discovered that the default was set in the new feature in the settings file. This default appeared to be applied to all existing waypoints. But the change did not immediately take effect. Only after calling up a a waypoint and updating it(simply clicking ok rather than cancel) the range ring appeared.

These waypoints were imported from a file that was previously exported by 4.8.6. Checking that file confirmed that they were set to zero, zero at time of importing. Exporting the 5.0 file confirmed that all waypoints were changed to 1,1 after the update.

I am certain that I did not change the default settings for waypoints. I know others who have experienced the same thing. This is a bug.
reflectionsv37 is offline   Reply With Quote
Old 01-07-2019, 00:53   #19
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
Re: Unwanted marks circles

There must be something more to this problem than just importing 4.8.x objects into 5.0.0. I tested with exported gpx files of tracks, routes and POI:s created about a year and half ago and found not a single circle when imported. I never used circles around marks at all. Perhaps it shows up only if you already have circles on some imported marks?

Thomas
cagney is offline   Reply With Quote
Old 01-07-2019, 02:25   #20
Registered User

Join Date: Mar 2009
Location: Currently in Malaysia
Boat: Valiant Esprit 37
Posts: 237
Re: Unwanted marks circles

I may not have been clear. The waypoints had already been imported into 4.8. They were present when I upgraded to 5.0. When I initially started 5.0 there were no rings showing showing on any waypoints with the exception of some anchor marks I had dropped and intentionally placed around. Those were 3-4 rings spaced at .01nm.

Terry on Valhalla had told me that there was an issue with 5.0 where range rings showed up on some of his waypoints. I checked a couple of my waypoints, and sure enough, the range rings were set to 1 ring with a spacing of 1 mile. I clicked cancel and the ring still didn't appear. I thought that was unusual and called the waypoint back up and clicked OK. After I clicked OK the range ring appeared. I check a few more waypoints and the behavior was the same. This matches up with what others are saying above about the rings appearing once a waypoint is updated. I think a key point here is that the waypoint had the range rings specified in the waypoint properties but they were not showing until the waypoint was updated.

In my situation, I discovered the default for waypoints was set to 1 range ring, at 1 mile, colored red. All of my waypoints were set to the default. I assumed that the default was probably incorrectly set to 1 ring, 1 mile and red during the installation and during the installation, that default was applied to all waypoints in the file that did not have range rings set. Were talking about 450 waypoints.

To correct this I exported the waypoints and used a text editor to first count the number of waypoints affected, every waypoint had the rings set, and then performed a find and replace to change them to zero. At the same time, I also added the necessary text to limit the scale on the chart for the waypoint to show. I deleted the existing waypoints and then imported the updated file and everything was correct.

Whoa! Wait a minute. I just went back into 5.0 and the range ring code is back in the waypoint properties again. I deleted all the waypoints. Shut down 5.0. Open 5.0 again and imported the file again. Even though all waypoint properties in the imported file are set to false, they import with the coding set to true, but don't display until updated. I have no idea what is going on.

I'll export a sample of these waypoints for testing. Stand by.
reflectionsv37 is offline   Reply With Quote
Old 01-07-2019, 02:32   #21
Registered User

Join Date: Jun 2015
Posts: 379
Re: Unwanted marks circles

Hi,
It's now a known bug, with setting rings number to zero the only workaround.


For the next O version either the visible parameter will be back in the dialog box or the functionnality will be removed, ie on load if visible false set rings number to zero and don't save visible attribute.
did-g is offline   Reply With Quote
Old 01-07-2019, 02:50   #22
Registered User

Join Date: Mar 2009
Location: Currently in Malaysia
Boat: Valiant Esprit 37
Posts: 237
Re: Unwanted marks circles

Okay! I think I have an idea on what is going on. Looking at my waypoint files from a prior versions, the waypoint rings are all coded as

<opencpn:waypoint_range_rings visible="false" number="1" step="1" units="0" colour="#FF0000" />

All of these were created in prior versions of OCPN. It appears that they don't show after the update to 5.0 because "visible" is set to false even though "number" is set to 1. After an update "Visible" gets set to true and the range ring shows up.

I have no idea how "number" was set to 1 in my waypoints. I certainly didn't set so it must have defaulted to that from somewhere. Perhaps the .ini file?

In any event, that appears to be what is happening, but I'm not sure how you fix it for everyone. It doesn't appear that the visible flag is controllable so I guess you could make a pass through waypoints and set "number" to 0 for any waypoint that has "visible" set to false.
reflectionsv37 is offline   Reply With Quote
Old 01-07-2019, 06:07   #23
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,733
Images: 2
Re: Unwanted marks circles

Quote:
though all waypoint properties in the imported file are set to false, they import with the coding set to true, but don't display until updated.
Quote:
with
<opencpn:waypoint_range_rings visible="false" number="0"
And ask Jon Gough what he intended.
Currently if the number attribute is not 0 rings are always displayed after editing a waypoint.
Quote:
All of these were created in prior versions of OCPN. It appears that they don't show after the update to 5.0 because "visible" is set to false even though "number" is set to 1. After an update "Visible" gets set to true and the range ring shows up.
Note:

Ocpn_waypoint properties are different than O waypoints and Ocpn_waypoints are stored in a completely different ODnavobj.xml file located here C:\ProgramData\opencpn\plugins\ocpn_draw_pi\data
Ocpn_Draw has its own import export functions for OD waypoints, so lets try to be careful clear about what is happening here. Does this effect occur with both O waypoints and Ocpn_Draw waypoints?


I believe it involves just opencpn waypoints and navobj.xml and involves the default settings in the new waypoint extensions. Why can't the imported file's properties for each waypoint be used such that there is no change in visible appearance? I would think that would be the original intent.
rgleason is offline   Reply With Quote
Old 01-07-2019, 06:28   #24
Registered User

Join Date: Jun 2015
Posts: 379
Re: Unwanted marks circles

Quote:
Originally Posted by rgleason View Post
Note:
Ocpn_Draw has its own import export functions for OD waypoints, so lets try to be careful clear about what is happening here. Does this effect occur with both O waypoints and Ocpn_Draw waypoints?

I believe it involves just opencpn waypoints and navobj.xml and involves the default settings in the new waypoint extensions. Why can't the imported file's properties for each waypoint be used such that there is no change in visible appearancne? I would think that would be the original intent.
Hi,

AFAIK it's only O waypoints but it was written by Jon. I asked him and something was lost in latest O WP dialog box re design.


So do we want the ability to keep around number of rings with an option for displaying/hiding them, or setting the number to 0 is enough?
did-g is offline   Reply With Quote
Old 01-07-2019, 06:30   #25
Registered User

Join Date: Mar 2009
Location: Currently in Malaysia
Boat: Valiant Esprit 37
Posts: 237
Re: Unwanted marks circles

The first quote you listed of mine was incorrect. My fault. There is no way to know the status of the visible flag in 5.0 as it is not an option for the range rings that you can set. I am assuming that, internally, this flag is being checked to determine if a range ring is should be displayed since it doesn't show when the waypoint is first imported. If you export one of those waypoints after an update, the visible flag is set to true.

I am not talking about O_Draw waypoints. These are the normal opencpn waypoints. The problem is that sometime in the past waypoints were created with a default of range rings = 1 and visible set to false. This has changed in 5.0 If you look at properties in a 4.x version there is a check box for "Show Range Rings" in 5.0 it is gone and is now being set automatically based on the setting of number of range rings.

I have checked the import and an export of the same waypoint before and after an update. If range rings is greater than zero than an update sets the visible flag to true. Try it yourself!

Somewhere in the past, the default when creating a waypoint was to set the range ring visible flag to true and the number of rings to 1. This is creating a problem in 5.0 due to the visible flag being internally manipulated based on the value of range rings.
reflectionsv37 is offline   Reply With Quote
Old 01-07-2019, 06:43   #26
Registered User

Join Date: Mar 2009
Location: Currently in Malaysia
Boat: Valiant Esprit 37
Posts: 237
Re: Unwanted marks circles

I can all but guarantee you somewhere in the update code of the waypoint properties exists the code...

If Number of range rings > zero
Set Range Rings Visible to True.
reflectionsv37 is offline   Reply With Quote
Old 01-07-2019, 06:57   #27
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,473
Re: Unwanted marks circles

reflections37...


Pretty close, functionally the same...


Code:
    m_bShowWaypointRangeRings = (bool)g_iWaypointRangeRingsNumber;

Lets be sure this gets into Flyspray, so not forgotten.


Thanks for the persistence

Dave
bdbcat is offline   Reply With Quote
Old 01-07-2019, 07:01   #28
Registered User

Join Date: Mar 2009
Location: Currently in Malaysia
Boat: Valiant Esprit 37
Posts: 237
Re: Unwanted marks circles

My pleasure Dave!

I'll write it up and add it to flyspray tomorrow. It's getting late here in Malaysia.

If it wasn't obvious, I'm an old COBOL programmer!
reflectionsv37 is offline   Reply With Quote
Old 01-07-2019, 09:49   #29
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,733
Images: 2
Re: Unwanted marks circles

I always wondered...

Quote:
AFAIK is a slang abbreviation ...It means "As far as I know" and is used to convey a lack of complete knowledge.
Quote:
...range rings were set to 1 ring with a spacing of 1 mile. I clicked cancel and the ring still didn't appear. I thought that was unusual and called the waypoint back up and clicked OK. After I clicked OK the range ring appeared. ...the rings appearing once a waypoint is updated. I think a key point here is that the waypoint had the range rings specified in the waypoint properties but they were not showing until the waypoint was updated. ...default 1mile. 1ring, red ...default was applied to all waypoints in the file that did not have range rings set.
--So when importing navobjects don't apply the default! Accept what is in the file! ???
rgleason is offline   Reply With Quote
Old 01-07-2019, 20:34   #30
Registered User

Join Date: Mar 2009
Location: Currently in Malaysia
Boat: Valiant Esprit 37
Posts: 237
Re: Unwanted marks circles

Rick, we seem to have some problem communicating. What is the point of most recent comment? I certainly have no idea, but it appears you still do not understand what is happening here.

Quote:
--So when importing navobjects don't apply the default! Accept what is in the file! ???
reflectionsv37 is offline   Reply With Quote
Reply

Tags
wanted


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
Strange behaviour, going in circles rsn48 Powered Boats 12 20-11-2018 11:24
Round and Round in Circles Heath68 Multihull Sailboats 66 06-11-2018 07:12
Goiung round in circles with batteries choices! northcave Electrical: Batteries, Generators & Solar 5 12-02-2018 21:07
ST4000 - circles to starboard dmksails Marine Electronics 8 27-12-2016 10:21
Rookie questions - boundary circles; exporting options; GPX files fredgmeyer OpenCPN 5 23-05-2014 22:22

Advertise Here


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


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.