manimaul / njord

Open Source Electronic Navigation Chart Server
https://openenc.com
Apache License 2.0
23 stars 5 forks source link

Layer Symbol Configuration Rules | Question #46

Closed echohye closed 10 months ago

echohye commented 10 months ago

Hello, I would like to ask how do you know the layer configuration rules, such as how to determine what properties and symbols to configure for this light. https://github.com/manimaul/njord/blob/05712dc9442d6bf54d166a8f44ffaa92203680a3/chart_server/src/main/kotlin/io/madrona/njord/layers/Lights.kt#L20

manimaul commented 10 months ago

@echohye - The light color is encoded in S57 Object "LIGHTS" (layer). Njord has this endpoint: https://openenc.com/control/symbols/LIGHTS/COLOUR which represents the information in a human readable format.