Redmine Rasterization Rules Editor - nohal/OpenCPN GitHub Wiki

Rasterization Rules Editor

  • Current version: 0.2.2

General Information

Use at your own risk, bear on mind that this is a first release and for sure has bugs.
Keep backups
Save often
This version supports mostly just the "You Should Know What Are You Doing" and "Use Your Brain" type use cases and it's for sure pretty easy to break it and make it crash.
Tested to work on Windows XP & 2008 Server with .NET Framework 3.5 and seen run on Linux/Mono 2.6.3

Installation

Download RleEditor-0.2.2.zip
Unpack
Run RleEditor.exe (on Linux you may have to run mono RleEditor.exe)

Features

Color palette management

Palette editing
Palette export (single palette or all)

Bitmap symbol management

Symbol merging
Symbol editing
Symbol deleting
Symbol cloning
Symbol export (single symbol or all)

Vector symbol management

Symbol merging
Symbol deleting
Symbol cloning
Symbol export (single symbol or all)

Rasterization rule lookup table management

Rule editing
Rule merging
Rule replacing
Rule cloning
Rule deleting
Rule sorting
Export to lookup tables

Other features

Entity definition CSV file merging
Renumbering of lookups to reflect the alphabetical order

How to Use

Open an existing RLE file
Make your changes
Save it (preferably under a different name)
Try it in OpenCPN

Docs & Tutorials

Implementing a missing symbol

Known Bugs & To Do

Currently all the comments from the RLE file are discarded

Source Code

  • Is ugly and needs a lot of cleanup and documentation. But if you are curious, it's at git://github.com/nohal/RleEditor.git
  • No tarballs, sorry.
  • To compile you need the CSV library - use the DLL from binary distribution, or have a look at http://www.codeproject.com/KB/database/CsvReader.aspx

S52 Documentation

  • Doesn't exist, you should really know what's all this about...

  • S52Display Priority

    0 - no data fill area pattern 1 - S57 group 1 filled areas 2 - superimposed areas 3 - superimposed areas also water features 4 - point symbol also land features 5 - line symbol also restricted areas 6 - area symbol also traffic areas 7 - routeing lines 8 - hazards 9 - VRM & EBL, own ship

  • RADAR Priority

    O - presentation on top of RADAR S - presentation suppressed by RADAR

  • Symbolization instructions

    TX - SHOWTEXT (formated) Shows formatted text TE - SHOWTEXT Shows unformatted text SY - SHOWPOINT Shows point symbol LS - SHOWLINE Shows line symbol LC - SHOWLINE Line color AC - SHOWAREA` Area color AP - SHOWAREA Shows area pattern CS - CALLSYMPROC Calls a predefined symbolization procedure

Changelog

2010-06-05 - version 0.2.2

Export symbols as various bitmap formats

2010-05-10 - version 0.2.1

Fixed bugs...
Configurable file header

2010-04-26 - version 0.2

Formal object validation
Clones complain about duplicity in code before loosing the changes
Scrolling to newly created clones
Palette switching changes symbol rendering
Creating backups of RLE on save
LUPT doubleclick opens editor window
LUPT grid speedup and refocus on last used row
Color table merging and replacement
Color table deletion
Adding colors to palette in bitmap cloning form
Got rid of the two save file prompts at exit
Introduced logging (configurable in app.config)
Fixed bugs... and introduced new ;)

2010-04-13 - version 0.1

Initial release

Attachments (See https://github.com/nohal/ocpn-redmine-archive):

RleEditor-0.1.zip - Release 0.1 (82.7 KB) Pavel Kalian, 04/13/2010 11:59 am

palette400.png (41.1 KB) Pavel Kalian, 04/13/2010 12:09 pm

bitmap400.png (34.1 KB) Pavel Kalian, 04/13/2010 12:09 pm

vector400.png (34.6 KB) Pavel Kalian, 04/13/2010 12:09 pm

lupt400.png (77.1 KB) Pavel Kalian, 04/13/2010 12:09 pm

RleEditor-0.2.zip - Release 0.2 (86.7 KB) Pavel Kalian, 04/26/2010 06:30 pm

RleEditor-0.2.1.zip - Release 0.2.1 (88 KB) Pavel Kalian, 05/10/2010 06:12 pm

RleEditor-0.2.2.zip - Release 0.2.2 (88.1 KB) Pavel Kalian, 06/05/2010 10:20 am