lib/aixm/feature/navigational_aid/vor.rb in aixm-0.2.2 vs lib/aixm/feature/navigational_aid/vor.rb in aixm-0.2.3
- old
+ new
@@ -5,11 +5,11 @@
##
# VOR (VHF omnidirectional range) operate in the frequency band between
# 108.00 Mhz to 117.95 MHz. Two type of VORs exist:
#
# Types:
- # * +:vor+ (+:VOR+) - standard VOR
+ # * +:vor+ (+:VOR+) - conventional VOR (also known as CVOR)
# * +:doppler_vor+ (+:DVOR+) - Doppler VOR
#
# North types:
# * +:geographic+ (+:TRUE+) - VOR aligned towards geographic north
# * +:grid+ (+:GRID+) - VOR aligned along north-south lines of the
@@ -20,12 +20,12 @@
# https://en.wikipedia.org/wiki/VHF_omnidirectional_range
class VOR < Base
using AIXM::Refinements
TYPES = {
- VOR: :vor,
- DVOR: :doppler_vor
+ VOR: :conventional,
+ DVOR: :doppler
}.freeze
NORTHS = {
TRUE: :geographic,
GRID: :grid,
@@ -88,10 +88,10 @@
##
# Render UID markup
def to_uid(*extensions)
builder = Builder::XmlMarkup.new(indent: 2)
- builder.VorUid({ newEntity: (true if extensions >> :ofm) }.compact) do |voruid|
+ builder.VorUid({ mid: to_digest, newEntity: (true if extensions >> :ofm) }.compact) do |voruid|
voruid.codeId(id)
voruid.geoLat(xy.lat(format_for(*extensions)))
voruid.geoLong(xy.long(format_for(*extensions)))
end
end