Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 14-11-2015, 08:03   #76
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Beta test 4.1.1108 Release

Quote:
Originally Posted by juehoe View Post
Hi,
I downloaded the files recently and could compile without much problems on Debian 8.2. On first test it runs smoothly and is very responsive.

For a while I have been specially interested in chart projections and therefore wrote a little test progam for the projection routines in georef. The program reads a pair of (lat,lon) coordinates from standard input, converts to (easting,northing) and back to (lat,lon). I found that the results for polyconic projection are totally weird and some others also did't reverse well.
I already know the polyconic routines are incorrect. It would be great if you could fix them. Once fixed I can verify this by viewing polyconic charts in polyconic mode and they should appear square. polyconic projections can use various latitudes so it's not clear to me which one to use as standard.

Quote:
Looking at the code of georef (and studying the "Geological Survey Bulletin 1532" by J.P.Snyder, where most of the algorhythms seem to stem from) I noticed a couple of oddities and errors:

georef.h
--------
toTM: the data type of the arguments is float, while the other functions use double and all calculations are made in double
Maybe the calculations can be done with float with sufficient precision, if not, the arguments should be changed to double.
Quote:
georeff.cpp
-----------
toPOLY: formulas 15-2, 15-3 and 15-4 are not coded correctly (page 128).
The effect is, that in formula 15-4 factor 'E' is wrong (sin phi not applied).
fromPOLY: iteration (formula 15-21) is also not correctly implemented, termination criterion not correct
Please correct and submit a pull request.
Quote:
from SM_ECC: the series solution is not very precise, iteration is much better.
Maybe, but it's already too slow. Maybe you can get precision with some lookup tables?

Quote:
in the routines for SM, SM_ECC, POLY the radius is multiplied with a factor k0_mercator of value 0.9996. In TM, you use a factor of 1.0. This doesn't make much sense to me. It seems, that someone just copied the boilerplate line "radius * k0_mercator".
According to Snyder, a factor k0=0.9996 is only in the context of TM. This is because TM is not true scale on the equator and to minimise some distortions.
In all other cases, the projection of an angle of 1' (one minute) on the equator should give 2piR/360/60. From my opinion, this k0 factor therefore needs to be taken out and applied in TM (exactly opposite from what it is now).
I made all changes as above, ran the test again and the results are much better.
The file test.c also contains a version of POLY_ECC.

I hope this makes sense,
Juergen
I agree, this seemed wrong so it should be fixed.

Quote:
Originally Posted by .Paul. View Post
JM,

The western part of US5NY25M quilts with US4NY25M in OpenCPN 4.1.925 (beta).

The eastern part does not quilt.

Both western and eastern parts of US5NY25M quilt in 4.1.915 (my build)and 4.1.602 (beta).

Paul
This is clearly a fallout of 026f7d371e249833af873960bb4b215c6caffba8 switching from rectangle regions in screen coordinates to polygon regions.

There are also plenty of cases which worked wrong before but work correctly now, especially with skewed ENC charts. Also we can quilt charts with different projections... but it appears you found a regression.

Is this a cm93 chart or? Which lat/lon? If I can reproduce it I can probably fix it.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 14-11-2015, 08:44   #77
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Re: OpenCPN Beta test 4.1.1108 Release

Hakan...

re:
"There's, again, a miss in details using cm93."

Sorry, I cannot reproduce with the posted VDR playback. It all looks fine on linux and Win7, for me.

More info, please:

1. Which cm93 set?
2. Vector chart settings, especially cm93 detail level.
3. Screen scale factor when the effect appears.

Anyone else have a chance to try this VDR yet?

Thanks
Dave
__________________

__________________
bdbcat is offline   Reply With Quote
Old 14-11-2015, 08:54   #78
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: On the Boat
Boat: Finnsailer 38
Posts: 1,142
Re: OpenCPN Beta test 4.1.1108 Release

Quote:
Originally Posted by boat_alexandra View Post
...
This is clearly a fallout of 026f7d371e249833af873960bb4b215c6caffba8 switching from rectangle regions in screen coordinates to polygon regions.

There are also plenty of cases which worked wrong before but work correctly now, especially with skewed ENC charts. Also we can quilt charts with different projections... but it appears you found a regression.

Is this a cm93 chart or? Which lat/lon? If I can reproduce it I can probably fix it.
This is with US ENCs from NOAA. I am using the state of NY.

One of the charts is at: 43 17.9764N 078 48.6493W

Cheers,
JM.
__________________
NahanniV is offline   Reply With Quote
Old 14-11-2015, 09:01   #79
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Re: OpenCPN Beta test 4.1.1108 Release

Sean...

Re: New York ENCs.

I'm on it now...

Dave
__________________
bdbcat is offline   Reply With Quote
Old 14-11-2015, 10:27   #80
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OpenCPN Beta test 4.1.1108 Release

Thanks Gerhard:
Quote:
It is called GLview and is available for free also for Windows 32bit + 64bit: OpenGL Extensions Viewer
I added OpenGL testing and this software to the bottom of the OpenGL page
http://opencpn.org/ocpn/opengl
__________________
rgleason is offline   Reply With Quote
Old 14-11-2015, 11:50   #81
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Re: OpenCPN Beta test 4.1.1108 Release

Folks...

Re: New York ENCs. (US5NY25M) failure to quilt eastern region.

Corrected in github now.

Good luck
Dave
__________________
bdbcat is offline   Reply With Quote
Old 14-11-2015, 13:04   #82
Registered User

Join Date: Oct 2014
Posts: 177
Re: OpenCPN Beta test 4.1.1108 Release

Dave,

I just built OpenCPN for Windows with the latest source. That fixed the quilted display of the two cells, US5NY25M.000 and US5NY23M.000, that JM (NahanniV) identified.

Thanks,
Paul
__________________
.Paul. is offline   Reply With Quote
Old 14-11-2015, 14:04   #83
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OpenCPN Beta test 4.1.1108 Release

V4.1.1108 recent, Windows, I don't seem to be able to export a route, it hangs. Anyone else?

To test Ocpn_Draw Inclusion Boundary I would like to create a Route, convert it to a Nmea VDR file, so that I can Play the file in VDR and have the boat wander out of the Inclusive Boundary that I set up. I tried setting a route active thme activating successvie waypoints while Tracking was on, but of course that did not work.

So I am thinking there must be a way to easily record a set of waypoints as if it were nmea boat position and then play that back using VDR. ...Perhaps not. Maybe I just have to do it with a text editor. --Are there any better ideas out there?

At first I thought VDR record would do what I wanted by simply "move the boat here" but the recorder is just listening to the Nmea stream.
__________________
rgleason is offline   Reply With Quote
Old 14-11-2015, 14:05   #84
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Beta test 4.1.1108 Release

Dave,
re: More info, please:

1. Which cm93 set?
>> _2012. Is there any ID I can read somewhere ?? (But still: 4.0 is fine using the same set)
2. Vector chart settings, especially cm93 detail level.
>> All - Level 4.(Text-on, Soundings-on, Lights-on)
3. Screen scale factor when the effect appears.
>> Scale around 28000 (0.7x)

Only when OpenGl is on.
Quilt is on. When off there's another but connected behavior.
It's most obvious after passing 57.90 N
VDR replay speed ~20%

OpenGl log report:
Code:
9:30:23 PM: OpenGL-> Renderer String: Intel(R) HD Graphics 3000
9:30:23 PM: OpenGL-> Version reported:  3.1.0 - Build 9.17.10.4229
9:30:23 PM: OpenGL-> Detected Intel renderer, disabling stencil buffer
9:30:23 PM: OpenGL-> Texture rectangle format: de1
9:30:23 PM: OpenGL-> glGenerateMipmap unavailable
9:30:23 PM: OpenGL-> Detected Windows Intel renderer, disabling Vertexbuffer Objects
9:30:23 PM: OpenGL-> Vertexbuffer Objects unavailable
9:30:23 PM: OpenGL-> Using Framebuffer Objects
9:30:23 PM: OpenGL-> Using FBO Stencil buffer
9:30:23 PM: OpenGL-> Using Depth buffer clipping
9:30:23 PM: OpenGL-> Using s3tc dxt1 compression
9:30:23 PM: OpenGL-> Compressed tile size: 128kb (6:1)
9:30:23 PM: OpenGL-> Minimum cartographic line width:  1.0
9:30:23 PM: OpenGL-> Minimum symbol line width:  1.0
Håkan
__________________
Hakan is offline   Reply With Quote
Old 14-11-2015, 14:49   #85
Registered User

Join Date: Oct 2014
Posts: 177
Re: OpenCPN Beta test 4.1.1108 Release

Quote:
Originally Posted by rgleason View Post
V4.1.1108 recent, Windows, I don't seem to be able to export a route, it hangs. Anyone else?.
Rick,

As a test, I just used Route Manager on the task bar to export a four waypoint route. It worked okay in 4.1.1108 in Windows 10. I ran today's build (Windows) and it also exported the route.

Paul
__________________
.Paul. is offline   Reply With Quote
Old 14-11-2015, 19:14   #86
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 9,320
Re: OpenCPN Beta test 4.1.1108 Release

Thanks Paul,
Just git and compiled. Then deleted navobj.change, still a problem. Deleted all waypoints, tracks and routes. Close and restart O, stilll a problem with export routes, O hangs.
Then because the OpenGL seems choppy, I deleted the cache (because I got errors that had to be skipped when I tried to rebuild it from the Opengl Advanced tab), so deleting was best.

Then I tried export a route again. No dice, hang.
I can import and right click on a route and save to clipboard as Kml.

Tomorrow I will try deleting the navobj.xmls and if that does not work I will move my opencpn.ini to another directory and start over. I don't really want to do that.

Maybe I will remove or unenable all unused plugins first.

Any ideas for what is causing this?

Tried unenabling all plugins (ocpn_draw, weather, VDR, watchdog) other than the standards. No dice routes don't export. It hangs.

Using O Latest commit f7ad89b 8 hours ago
__________________
rgleason is offline   Reply With Quote
Old 14-11-2015, 19:47   #87
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,877
Re: OpenCPN Beta test 4.1.1108 Release

Rick...

Have you tried without OpenGL?

Also, if you are running in VS2013 debugger environment, and it seems to hang, try toolbar Debug->Break All and see where it is stuck.


Dave
__________________
bdbcat is offline   Reply With Quote
Old 15-11-2015, 02:27   #88
Registered User

Join Date: Jun 2015
Posts: 198
Re: OpenCPN Beta test 4.1.1108 Release

Quote:
Originally Posted by bdbcat View Post
Hakan...

re:
"There's, again, a miss in details using cm93."

Sorry, I cannot reproduce with the posted VDR playback. It all looks fine on linux and Win7, for me.

More info, please:

1. Which cm93 set?
2. Vector chart settings, especially cm93 detail level.
3. Screen scale factor when the effect appears.

Anyone else have a chance to try this VDR yet?

Thanks
Dave
Dave...

Yes I have.
It could be 4a15c8f268082fea4de820505e2a5e0f6fca406d
'changes to make cm93 charts use -180 to 180 longitude to simplify logic and fix bugs'

Hakan...
for double checking can you recompile after changing in
Code:
src/cm93.cpp
bool cm93chart::IsPointInLoadedM_COVR ( double xc, double yc )
{
#if 1
    return m_region.Contains(yc, xc);
#else


#if 1
with 
#if 0
?

Sometimes LLRegion.Contains returns the wrong result and the display switches quickly between cm93 scales.

Not a proper fix as:
- viewport > 180 aren't fully drawn.
- In cm93 There's loops for which LLRegion::PointsCCW is true but which don't cross 180 and LLRegion::AdjustLongitude returns an empty region.
- some NODTA regions aren't rendered (not introduced by this patch, but related with the new region code).
__________________
did-g is offline   Reply With Quote
Old 15-11-2015, 05:24   #89
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 1,967
Re: OpenCPN Beta test 4.1.1108 Release

did-g, Dave
No, didn't helped, still the same.

And to complete my list from above when this happens:
- the occasionally missing details issue is only valid when "auto follow - F2" is active.

Thanks
Håkan
__________________
Hakan is offline   Reply With Quote
Old 15-11-2015, 06:40   #90
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Re: OpenCPN Beta test 4.1.1108 Release

Quote:
Sometimes LLRegion.Contains returns the wrong result and the display switches quickly between cm93 scales.
Is this for degenerate cases? The point lies on the border or?
Quote:
Not a proper fix as:
- viewport > 180 aren't fully drawn.
It must be missing some longitude resolves
Quote:
- In cm93 There's loops for which LLRegion::PointsCCW is true but which don't cross 180 and LLRegion::AdjustLongitude returns an empty region.
Is this also a degenerate case? There is a border in the loop which lies exactly along the 180 meridian?
Quote:
- some NODTA regions aren't rendered (not introduced by this patch, but related with the new region code).
Which ones? Do you have a specific example with lat and lon on a particular chart? Before the new region logic, there were nodta regions which weren't rendered but now they are...
__________________

__________________
boat_alexandra is offline   Reply With Quote
Reply

Tags
enc, lease, opencpn

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
OpenCPN Beta test 4.1.1022 Release bdbcat OpenCPN 122 07-11-2015 02:12
OpenCPN Beta test 4.1.925 Release bdbcat OpenCPN 177 04-11-2015 09:16
OpenCPN Beta test 4.1.602 Release bdbcat OpenCPN 193 13-10-2015 09:19
OpenCPN Version 2.2 Beta Test bdbcat OpenCPN 437 15-12-2010 20:17
OpenCPN Version 2.2 Beta Test Bugs / Discussion bdbcat OpenCPN 120 26-09-2010 03:53



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 18:13.


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.