S-58 Check Extension

Feature Description

After extending features or feature attributes, it is usually necessary to extend the data inspection rules as well. The SuperMap iDesktopX product package organizes files controlling chart data inspection in the bin/Resource/Chart/S58 directory. Modify files in this directory to extend S-58 data inspection rules.

Steps

Taking the addition of inspection rules for navigation mark buoys on riverbanks as an example, this section explains how to implement S-58 inspection rule extensions in SuperMap iDesktopX.

  1. To inspect display colors for navigation mark buoys on both left and right banks, open the S58Document.xml config file and add new inspection elements:

    <Test id="17760" level="Error">
    <Description>When the navigation mark buoy is on the left bank, the light color should be green or white</Description>
    <Reference>CJ-57 Navigation Mark Data Rules</Reference>
    </Test>    
    <Test id="17761" level="Error">
    <Description>When the navigation mark buoy is on the right bank, the light color should be red</Description>
    <Reference>CJ-57 Navigation Mark Data Rules</Reference>
    </Test>  

  2. Open the S58Attributes.fl config file and add specific inspection rules for left and right bank buoys respectively:

    Left bank:

    ID 17760
    BEGIN
        SOURCEFEATURE FEATURE BOYNVG
        AND0
            OR1
            ATTRIBUTECONTAINS [CATNGM,1]
            ATTRIBUTECONTAINS [CATNGM,3]
            ATTRIBUTECONTAINS [CATNGM,5]
            ATTRIBUTECONTAINS [CATNGM,7]
            ATTRIBUTECONTAINS [CATNGM,9]
            OR1
            AND1
            ATTRIBUTECONTAINSNOT [COLOUR,1]
            ATTRIBUTECONTAINSNOT [COLOUR,4]
            AND1
        AND0
    END

    Right bank:

    ID 17761
    BEGIN
        SOURCEFEATURE FEATURE BOYNVG
        AND0
            OR1
            ATTRIBUTECONTAINS [CATNGM,2]
            ATTRIBUTECONTAINS [CATNGM,4]
            ATTRIBUTECONTAINS [CATNGM,6]
            ATTRIBUTECONTAINS [CATNGM,8]
            ATTRIBUTECONTAINS [CATNGM,10]
            OR1
            ATTRIBUTECONTAINSNOT [COLOUR,3]
        AND0
    END
  3. After completing rule extensions, open a chart containing navigation mark buoys and perform Data Inspection. If buoy colors are incorrect, errors will be detected. Modify according to the rules and re-inspect to pass verification.

Related Topics

Extend Feature

Extend Attribute

S-52 Display Extension