spec/factory.rb in aixm-0.3.4 vs spec/factory.rb in aixm-0.3.5

- old
+ new

@@ -45,12 +45,12 @@ end def vertical_limits AIXM.vertical_limits( upper_z: AIXM.z(65, :qne), - lower_z: AIXM.z(45, :qne), max_z: AIXM.z(6000, :qnh), + lower_z: AIXM.z(45, :qne), min_z: AIXM.z(3000, :qfe) ) end def layer @@ -399,21 +399,22 @@ def unlinked_obstacle_group AIXM.obstacle_group( name: "Mirmande éoliennes" ).tap do |obstacle_group| + obstacle_group.xy_accuracy = AIXM.d(50, :m) + obstacle_group.z_accuracy = AIXM.d(10, :m) + obstacle_group.remarks = "Extension planned" obstacle_group.add_obstacle( AIXM.obstacle( name: "La Teissonière 1", type: :wind_turbine, xy: AIXM.xy(lat: %q(44°40'30.05"N), long: %q(004°52'21.24"E)), radius: AIXM.d(80, :m), z: AIXM.z(1764, :qnh) ).tap do |obstacle| obstacle.height = AIXM.d(80, :m) - obstacle.xy_accuracy = AIXM.d(50, :m) - obstacle.z_accuracy = AIXM.d(10, :m) obstacle.height_accurate = false end ) obstacle_group.add_obstacle( AIXM.obstacle( @@ -422,33 +423,32 @@ xy: AIXM.xy(lat: %q(44°40'46.08"N), long: %q(004°52'25.72"E)), radius: AIXM.d(80, :m), z: AIXM.z(1738 , :qnh) ).tap do |obstacle| obstacle.height = AIXM.d(80, :m) - obstacle.xy_accuracy = AIXM.d(50, :m) - obstacle.z_accuracy = AIXM.d(10, :m) obstacle.height_accurate = false end ) end end def linked_obstacle_group AIXM.obstacle_group( name: "Droitwich longwave antenna" ).tap do |obstacle_group| + obstacle_group.xy_accuracy = AIXM.d(0, :m) + obstacle_group.z_accuracy = AIXM.d(0, :ft) + obstacle_group.remarks = "Destruction planned" obstacle_group.add_obstacle( AIXM.obstacle( name: "Droitwich LW north", type: :mast, xy: AIXM.xy(lat: %q(52°17'47.03"N), long: %q(002°06'24.31"W)), radius: AIXM.d(200, :m), z: AIXM.z(848 , :qnh) ).tap do |obstacle| obstacle.height = AIXM.d(700, :ft) - obstacle.xy_accuracy = AIXM.d(0, :m) - obstacle.z_accuracy = AIXM.d(0, :ft) obstacle.height_accurate = true end ) obstacle_group.add_obstacle( AIXM.obstacle( @@ -457,11 +457,9 @@ xy: AIXM.xy(lat: %q(52°17'40.48"N), long: %q(002°06'20.47"W)), radius: AIXM.d(200, :m), z: AIXM.z(848 , :qnh) ).tap do |obstacle| obstacle.height = AIXM.d(700, :ft) - obstacle.xy_accuracy = AIXM.d(0, :m) - obstacle.z_accuracy = AIXM.d(0, :ft) obstacle.height_accurate = true end, linked_to: :previous, link_type: :cable )