Class: Placename_map_record

Inherits:
GEDCOMBase show all
Defined in:
lib/gedcom/placename_map_record.rb

Overview

=Placename_map_record GEDCOM 5.5.1 Draft adds as subordinate to PLAC

+1 MAP +2 LATI <PLACE_LATITUDE> +2 LONG <PLACE_LONGITUDE>

==PLACE_LATITUDE:= Size=5:8 The value specifying the latitudinal coordinate of the place name. The latitude coordinate is the direction North or South from the equator in degrees and fraction of degrees carried out to give the desired accuracy. For example: 18 degrees, 9 minutes, and 3.4 seconds North would be formatted as N18.150944. Minutes and seconds are converted by dividing the minutes value by 60 and the seconds value by 3600 and adding the results together. This sum becomes the fractional part of the degree's value.

==PLACE_LONGITUDE:= Size=5:8 The value specifying the longitudinal coordinate of the place name. The longitude coordinate is Degrees and fraction of degrees east or west of the zero or base meridian coordinate. For example: 168 degrees, 9 minutes, and 3.4 seconds East would be formatted as E168.150944.

I allow a NOTE record too, to cope with user defined tags

Instance Attribute Summary collapse

Attributes inherited from GEDCOMBase

#restriction

Instance Method Summary collapse

Methods inherited from GEDCOMBase

#changed, #changed?, #created?, #find, #locked?, no_tabs, #private?, #save, tabs, #to_db, #to_gedcom, #to_s, #to_s_ordered, #to_s_r, #token_to_s, #xref_check

Constructor Details

#initialize(*a) ⇒ Placename_map_record

Returns a new instance of Placename_map_record.



29
30
31
32
33
34
35
36
37
# File 'lib/gedcom/placename_map_record.rb', line 29

def initialize(*a)
  super(*a)
  @this_level = [ [:print, "MAP", nil] ]
   @sub_level = [
                     [:print, "LATI", :latitude],
                     [:print, "LONG", :longitude], #Not standard
                     [:walk, nil,    :note_citation_record],
                 ] 
end

Instance Attribute Details

#latitudeObject

Returns the value of attribute latitude.



25
26
27
# File 'lib/gedcom/placename_map_record.rb', line 25

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude.



25
26
27
# File 'lib/gedcom/placename_map_record.rb', line 25

def longitude
  @longitude
end

#note_citation_recordObject

Returns the value of attribute note_citation_record.



26
27
28
# File 'lib/gedcom/placename_map_record.rb', line 26

def note_citation_record
  @note_citation_record
end