Cruisers & Sailing Forums (https://www.cruisersforum.com/forums/)
-   OpenCPN (https://www.cruisersforum.com/forums/f134/)
-   -   Sounding size adjustment on Vector Charts (https://www.cruisersforum.com/forums/f134/sounding-size-adjustment-on-vector-charts-138786.html)

rgleason 30-12-2014 21:15

Sounding size adjustment on Vector Charts
 
Would like to be adjust Sounding size on vector charts.
From Options > UI > Font > can select "Chart Text"
need comparable to that for "Chart Soundings"

Pavel advises it is an S-57 Symbol

IHO S-57 (ENC)
Quote:

Soundings
Depth soundings are handled somewhat specially in S-57 format, in order to efficiently represent the many available data points. In S-57 one sounding feature can have many sounding points. The S-57 reader splits each of these out into it's own feature type `SOUNDG' feature with an s57_type of `s57_point3d'. All the soundings from a single feature record will have the same AGEN, FIDN, FIDS and LNAM value.


rgleason 30-12-2014 21:45

Re: Sounding size adjustment on Vector Charts
 
chart.cpp
line 1918
optionsColumn->Add( new wxStaticText(ps57Ctl, wxID_ANY, _("Chart Texts")), groupLabelFlags );
line 4014
S52_setMarinerParam( S52_MAR_SAFETY_DEPTH, dval * conv );
// controls sounding display

s57chart.cpp
line 4861 found Sounding a number of times
m_SoundingsDatum = _T("MEAN LOWER LOW WATER");
m_ID = SENCFileName.GetName();
line 6060
// This is where Multipoint soundings are captured individually
line 6089
// Now decomposed soundings, one by one
line 6910
// Soundings have no information, so don't show them

s57utils.cpp
all about parameters for soundings etc.

s52plib.cpp
Line 3993
// We may be rendering the soundings symbols scaled up, so
// adjust the inclusion test bounding box
double scale_factor = vp->ref_scale/vp->chart_scale;
double box_mult = wxMax((scale_factor - g_overzoom_emphasis_base), 1);
int box_dim = 32 * box_mult;

Line 7199
// Soundings override
if( !strncmp( rzRules->LUP->OBCL, "SOUNDG", 6 ) )
b_catfilter = m_bShowSoundg;

s57.h
Line 160
int nSOMF; /* Vertical (sounding) multiplier */


chartsymbols.cpp
has something to do with widgets writing s57 symbols.

Have to look some more later.

rgleason 30-12-2014 22:01

Re: Sounding size adjustment on Vector Charts
 
Found chartsymbols.xml
and several params SNDG1 SNDG2 DEPCN DEPSC etc
did search on google found

FS#1291 : Chart S-57 : preslib DEPCN label
add S-57 attribute display depth values ​​in VALSOU isobath object DEPCN
bdcat post about depths.

Found Mariner Objects post about s-52 daylight dusk dark
https://www.iho.int/mtg_docs/com_wg/D...er_objects.pdf

rgleason 31-12-2014 10:07

Re: Sounding size adjustment on Vector Charts
 
See: https://www.cruisersforum.com/forums/...ml#post1711584

For Vector Charts:

Zooming from the scale when a given chart is displayed to "Overzoom" the size of all depth soundings stays exactly the same.

It would be helpful if when one zooms in on a chart, if the "soundings symbols" were to proportionally increase in size by a factor of 1.50 to be more legible as the area becomes available zooming in.

I do not know if this will affect opengl textures or other operations, however the "soundings symbols" appear to be a separate and distinct layer on top.

------------
Another less satisfactory alternative would be to add a command to Statusbar plugin which would show the "Sounding Symbol" at the cursor.

nohal 31-12-2014 10:24

Re: Sounding size adjustment on Vector Charts
 
1 Attachment(s)
Rick...
Just wondering, you don't see this when you overzoom?
https://www.cruisersforum.com/forums/...1&d=1420046623

Pavel

CarCode 31-12-2014 10:35

Re: Sounding size adjustment on Vector Charts
 
Formerly I always thought vector graphic has no pixels.
So always learning...
Gerhard

nohal 31-12-2014 10:42

Re: Sounding size adjustment on Vector Charts
 
Gerhard...
As you sure know, not all the S52 symbols are vectors. https://github.com/OpenCPN/OpenCPN/b...ymbols-day.png

Pavel

rgleason 31-12-2014 13:59

Re: Sounding size adjustment on Vector Charts
 
5 Attachment(s)
Scale Comments
39400 (0.5x) Max scale
19600 (1.0x) Native scale
10200 (2.0x) <--Proposed begin increase "Sounding" size
49500 (4.0x) Overzoom starts <--Prop.end "Sounding" size
10200 (2.0x)
5700 (3.5x)
1300 (15x) Sounding symbol starts growing here
790 (25x) Sounding symbol continues to grow.
600 (33x) Max Zoom, Sounding symbol stops growing

Why shouldn't "Sounding Symbols" grow in size from scale 19600 to 49500 (overzoom starts)?

Then when someone zooms in again, the "Sounding Symbols" go back to their smaller size!!!! <--------- Bdcat -THAT would be a very good signal for Overzoomers.

The attached snapshots are all at the same pixel density, just clipped, so the relative "Sounding sizes" are correct.


nohal 31-12-2014 14:09

Re: Sounding size adjustment on Vector Charts
 
Rick...
Nice try, but try somewhere else, where the chart cells composing your view are different...
Do you think that bigger soundings make sense? File a feature request for it.

Pavel

rgleason 31-12-2014 15:05

Re: Sounding size adjustment on Vector Charts
 
See Scaled Vector Charts (default)
Setting Options | Official OpenCPN Homepage

I think it would be a more effective warning to have

Quote:

First Appearance of Overzoom Warning =
Soundings have grown to the larger "32"
Quote:

Next zoom down =
Soundings reduce down to smallest "32"
--That would be an abrupt visual alarm.

rgleason 31-12-2014 15:10

Re: Sounding size adjustment on Vector Charts
 
Quote:

Nice try, but try somewhere else, where the chart cells composing your view are different...
Do you think that bigger soundings make sense? File a feature request for it.
Pavel, when you say "try somewhere else, where the chart cells are composing your view are different" are you saying that different charts handle this differently?



I guess that's not surprising really. I hope it does not mean trouble if we move the size changes up to end at the Overzoom warning.

I have checked in several places and I believe that working with NOAA charts this would work.

Yes, I will file a feature request for this, directly.

Thank you Pavel! and Bdcat!

rgleason 31-12-2014 15:27

Re: Sounding size adjustment on Vector Charts
 
FS#1649 : Chart S-57 ENC CM93 Sounding Symbol set to stop growing at "Overzoom" warning

This might also allow me to be in cockpit without glasses.

P_Dub 31-12-2014 15:33

Re: Sounding size adjustment on Vector Charts
 
Also, one thing that could be change while you are at it, is to make the soundings normally darker and independent of the setting of Deep depth or Shallow depth adjustment.
Best Regards and Happy New Year to everyone.
P_Dub

HappySeagull 31-12-2014 16:55

Re: Sounding size adjustment on Vector Charts
 
1 Attachment(s)
Attachment 94637
admitting this is 4x scale and untweaked by me
but

good ideas,pdub and rgleason!

RhythmDoctor 31-12-2014 18:41

Re: Sounding size adjustment on Vector Charts
 
Quote:

Originally Posted by rgleason (Post 1711917)
Scale Comments
39400 (0.5x) Max scale
19600 (1.0x) Native scale
10200 (2.0x) <--Proposed begin increase "Sounding" size
49500 (4.0x) Overzoom starts <--Prop.end "Sounding" size
10200 (2.0x)
5700 (3.5x)
1300 (15x) Sounding symbol starts growing here
790 (25x) Sounding symbol continues to grow.
600 (33x) Max Zoom, Sounding symbol stops growing

Why shouldn't "Sounding Symbols" grow in size from scale 19600 to 49500 (overzoom starts)?

Then when someone zooms in again, the "Sounding Symbols" go back to their smaller size!!!! <--------- Bdcat -THAT would be a very good signal for Overzoomers.

The attached snapshots are all at the same pixel density, just clipped, so the relative "Sounding sizes" are correct.


Rick, IMO the numbers that you mention (39400, 19600, etc) really aren't relevant to your concerns over sounding sizes. The values where you see these resizing effects may vary with different charts, because different charts are published at different scales (1:15000, 1:20000, 1:40000, 1:1200000, etc). I suggest that you delete these numbers from the wiki, because they will create confusion for people using different charts from you.

Theoretically, the magnification numbers (0.5x, 1.0x, 2.0x, etc.) should be more universal with different charts, and thus more meaningful, but I'd suggest that you test them with a variety of different charts (and/or look into the source code) to verify this.


All times are GMT -7. The time now is 20:57.

Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2020, vBulletin Solutions, Inc.


ShowCase vBulletin Plugins by Drive Thru Online, Inc.