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 27-02-2010, 07:53   #31
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,208
RLE modifications

Hi guys,
I've started to implement the rules to improve displaying of the IENC standard charts used by Inland ECDIS for waterways in Europe in OpenCPN and as part of my effort I came up with a tool to generate rules from the way more readable and maintainable format of lookup tables which are used by both ENC and IENC standards.
Maybe you could find the LT2RLE tool useful to help you keep track of your changes.
It could also be helpful to clean up the mess in which the whole rules and rendering are now in the longer term as the whole S52RAZDS.RLE could be generated from some documented components and would make it easier for others to customize it.
You can find the tool as well as the rest of info at OpenCPN - InlandECDIS Support - Redmine

Cheers

Pavel
nohal is offline   Reply With Quote
Old 27-02-2010, 10:33   #32
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Here is a successfull POC test. Now let's play "Spot the difference" :-)

JesperWe is offline   Reply With Quote
Old 27-02-2010, 11:42   #33
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Quote:
Originally Posted by PeteCross View Post
Well, lets see what others think about this. Mark(Psyches) is following things during Dave's vacation, maybe he could make an informed comment?

I know Dave previously said that he is interested to see customisations of the vector presentation. I for one, am very interested in your work.

/Pete
I can comment, but perhaps not all that informed. I'm all for performance improvements and code cleanup, and I think Dave is too. But I don't see a history of large code submission successes. It's quite possible that Dave has changed a lot of this code in his absence - he's reported to be working on quilting support. If he has changed a lot there may be trouble in integrating with his work, and that could spell problems, frustration, and wasted time for both the contributors and for Dave.

So my best advice is to make small localized improvements. If they're fairly small and clearly improvements, there's no reason they shouldn't be integrated quickly into the code base. I say this knowing that large improvements could be made, but not without the potential for problems, frustration, and wasted time mentioned above. Maybe Dave is watching and can offer suggestions - if not now, then hopefully soon.

Hope this helps...

Mark
Psyches is offline   Reply With Quote
Old 27-02-2010, 22:30   #34
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Quote:
Originally Posted by Psyches View Post
It's quite possible that Dave has changed a lot of this code in his absence - he's reported to be working on quilting support. If he has changed a lot there may be trouble in integrating with his work, and that could spell problems, frustration, and wasted time for both the contributors and for Dave.

So my best advice is to make small localized improvements. If they're fairly small and clearly improvements, there's no reason they shouldn't be integrated quickly into the code base.
OK, thanks. All I did so far is a POC as seen above, to make sure that I can get wxWidgets to render antialiased bitmaps. (The red and green flares on the "lit boy" symbols are the only ones changed in the shot above, in case you didn't notice). So nothing to integrate. But I know how it should be done now.

To do real work, yes it will be a very big mod, probably replacing most of s25plib and s52cnsy in the code, replacing almost all of S52RAZDS.RLE with a SVG file, and adding new dependencies. I would not even start to work on this without a blessing.
JesperWe is offline   Reply With Quote
Old 28-02-2010, 04:47   #35
Registered User

Join Date: Oct 2009
Posts: 50
Here is a successfull POC test. Now let's play "Spot the difference" :-)

Jesper,

Is there anything you can share, at this stage, to get this cleaner text and smaller soundings?
I am interested in getting my charts looking more like this...

/Pete
PeteCross is offline   Reply With Quote
Old 28-02-2010, 04:57   #36
Registered User

Join Date: Dec 2008
Boat: Journeyman
Posts: 705
Quote:
Originally Posted by PeteCross View Post
Is there anything you can share, at this stage, to get this cleaner text and smaller soundings?
I don't think so. The cleaner text is a code patch, you have to recompile. The nicer boy flares are also a code patch, and not a production worthy one at all.

The soundings and rock symbols are .RLE edits, but I did them all by hand and the format is awful, so there are mistakes. In the beginning I made the number 7 look like a 2 by mistake, for example . Also some syntax error I made cause exceptions in the code, so I don't want to post this file. (And I don't have the energy to fix the problems since there is zero error handling to tell you where the problem is).

This is one of the reasons why I think a customizable chart rendering needs a new way of doing it...
JesperWe is offline   Reply With Quote
Reply


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
Depth Soundings by Color Code for the World ? H Romberg General Sailing Forum 9 31-12-2011 17:37
DNC Vector compared to ENC vector chart? adjuvantjfoster Marine Electronics 8 17-09-2006 17:19

Advertise Here


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


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.