NtM Chart-correction XML
XML chart correction examples for comparison
Description by TRAFICOM: NtM chart corrections in XML are produced since 2016. A custom XSD-schema is used. XML for booklets is imported into Indesign- software and made into PDF- booklets using a "semi automatic" workflow. XML-schema is defining a "list of notices", and the same XML- format is used also for the T&P- list. Separate XSL- translations are used to produce different products. Example includes Native XML-format, common XML-format and common XML translated into HTML.
- Examples: File:FI ntm issue 2019 30.zip
Description by Shom: NtM chart corrections in XML are produced since the beginning of 2018, with CARIS “Publication module” customized for Shom. They are used by our internal process for the production of our weekly NtM booklet (pdf) and NtM website. The XML also contains some internal data. The XML doesn’t contain the chart correction number. It is added later in the process as well as the link with the tracing and with the possible NtM block (graphical chart-updating). One NtM may concern several charts to be updated. The XML refers to a font (TrueTypeFont) for the graphical feature which is subject of the instruction. The chart corrections are in French and a glossary French-English is available in our weekly NtM booklet and NtM website [(http://gan.shom.fr/ganl/htdocs/FR_home.htm)]. We also convert the XML in GML for internal checking purposes using the geometry of NtM (graphical display). In the examples below, one file containts the chart corrections for one weekly NtM booklet.
Examples: File:Xml fr.zip
Contacts: firstname.lastname@example.org, email@example.com
Description by BSH
Examples File:DE xml.zip
Dwscription by Italian HO
Examples File:Italian NtM.zip
- 1 Conventions
- 1.1 Multiple use of XML, Notice(s) applicable for one chart, notice applicable for several charts
- 1.2 Data model
- 1.3 Data model files
- 1.4 Images and Symbols
- 1.5 Status of correction
- 1.6 Chart corrections and General notifications
- 1.7 Language
- 1.8 Block correction
- 1.9 Images providing correction advice
- 2 XML Examples after the XML workshop
Multiple use of XML, Notice(s) applicable for one chart, notice applicable for several charts
The data model to be developed should be able to handle both versions. If the setup is such, that every chart-correction can have a reference to one or several charts [1..*], it is up to the producer to decide whether corrections are repeated chart-by-chart or each correction has a reference to all affected charts. The German XML version shows that it should be possible to create a data structure that supports both versions.
Data model files
- Data model package including *.eap is transferred to GitHub. https://github.com/fihofi/ntm_common_xml
- To download the latest release package as zip: https://github.com/FihoFi/ntm_common_xml/releases/
Each NoticeToMariner represents one single Notice.
Each notice can contain any number of NoticeContent. NoticeContent is an abstract object, which can represent any of three types of content.
- TextContent is a simple text-field, that can store simple (unformatted) text.
- ImageContent is any image added to the notice. Usually these are images of the chart to be corrected.
- ChartCorrectionContent is a complex structure that includes a combination of an S-4 standard action (ADD, DELETE etc.), INT- symbols, standard phrases /commands and additional textual explanations.
Each NoticeContent has a reference to a ChartImage, which in turn has a reference to the ChartProduct it belongs to. A chart product is here assumed to be a given edition of a chart.
The ChartCorrectionContent is the structure holding the actual chart-correction. The table below shows the tabular display translation of one ChartCorrectionContent, with 3 ChartCorrectionTextrows and 5 ChartCorrectionPositions
- The first row could contain INT- symbols and a textual note, which are attributes of ChartCorrectionContent
- The following rows could contain data stored in ChartCorrectionTextrows
Images and Symbols
Symbols will be described by textual description and graphical symbols. Textual description will be mandatory. The graphical symbols can be provided by a) vector (svg), b) Raster (TIFF), c) Font (True Type Font).
<CATCAM>north cardinal mark</CATCAM>
<Content>Fl.Y.3s</Content> [currently, single attributes in LIGHTS]
<!-- <Style>bold, italic, 6pt</Style> -->
The associated xsd in that case would be:
<?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="symbolLeft">
<xs:element name="symbolVector" minOccurs="0"/> <xs:element name="symbolRaster" minOccurs="0"/> <xs:element name="symbolFont" minOccurs="0"/> <xs:element name="symbolTxt" minOccurs="1"/>
Symbols can be stored by each HO individually.
Should we try to convince the IHO Secretariat to host a repository (database) of symbols (similar to INT1) in a discrete format (to be defined) and a textual description associated to each symbol?
HOs can then download the data sets and use them in their production systems. It should be discussed how the generation/drawing of symbols can be managed. Is an appropriate online tool available on the market? Should we approach the Secretariat to contract the developement of such an online tool? Can HO(s) volunteer to contract the development?
use of predefined set(s)
customise as appropriate, e.g. depth with depth contour
Status of correction
Following status versions are appliable:
Published PUBLISHED notices are those, which are in force.
CANCELLED notices are those, which are cancelled by a new notice.
CANCELLED notices are those, which are not showing up on the "T&P in force" list.
DEACTIVATED notices are those, which are not active anymore due to any several (internal or external) reasons, e.g. a new edition of a chart makes it superfluous
DEACTIVATED notices are those, which are not showing up on the "T&P in force" list
Chart corrections and General notifications
Instruction where to place a block, e.g ADD block in position xxx.xxx, yyy.yyy
Instructions according to IHO Standard S-4
Use of GML coordinate encoding at the backend but at the front end the coordinates should be presented as 00°00,000'N 000°00,000'E, less decimals are possible if source or chart scale make it necessary
Do we need to provide information on corrections of corrections (Pierre-Yves raises this question)? Or can we say that all corrections are independant corrections and if one needs to correct erratums, a new correction should be generated without mentioneing that it corrects erratums?
Stefan: In the FI system is a function for a notice to cancel another previously published notice. We are using this functionality for corrections to previous notices.
Also re-issuing or cancelling T&P notices is made using this same functionality
Ludovico: In the case we made an error on a notice, we produce another notice to correct the chart and not the notice: this because from our experience, the mariners do not track and collect the number of notices and their history, but they reported manually the corrections on the affected charts when they receive the notices (except for T&P notices that should be charted in pencil and being tracked for cancellation purpose). Just for internal use and for letting the mariners know that in the real word there is no change to the previous situation but only a difference of that is represented on the chart, we use the letter “(R)” beside the notice number.
Positions in the common XML have to be provided in decimal degree. The format for editors input and publications output is in HOs decision.
SOURCE_HO_NTM.XML (decimal degree/ degree, decimal minutes) => SOURCE_TO_COMMON.XSL => COMMON_NTM.XML (decimal degree) => COMMON_TO_RCVR.XSL => RCVR_HO_NTM.XML (decimal degree/ degree, decimal minutes)
Additional verbal description of a position should be provided. (no lat/long available, corrections affecting symbols on the chart edge).
It should be no difference between T&P and regular notices. All notices are similar in structure, and only an attribute flag is indicating a notice as T or P.
P&T notices can have following status:
PUBLISHED - in force
CANCELLED - no longer in force due to cancellation by another P&T notice, or by a full notice (appropriate information must be provided)
DEACTIVATED- no longer in force due to HO internal processes (appropriate information must not be provided)
New Chart/New Edition can be provided as general notification messages.
HOs have to decide in which section of the Bulletin this information will be provided. (chart correction section, catalogue correction, miscellaneous).
The corrections should be provided in multiple languages.
In the UML there is a separate class MultilangString to indicate which attributes currently need to be provided in several languages. For example chart-texts are not translated.
Block corrections are to be created as separate geo-referenced PDF-documents / files.
A link to the block is added to the Notice. The provision of the block centre geo-reference is optional.
The separate geo-referenced PDF-documents / files should also be made available for download.
Images providing correction advice
Larger images assisting the chart-correction can be added as ImageContent.
XML Examples after the XML workshop
- Examples: File:FI ntm issue 2019 30.zip
File:FR NTM XML.zip containg two files, the XML and the xsl
File:NO NTM XML.zip XML- file as presented on NIPWG 7