Sha256: 6f0ac399855d5c0eaf4a37246a11be6e5eebcc6b570c9e022f47dccef42f0b8c

Contents?: true

Size: 653 Bytes

Versions: 3

Compression:

Stored size: 653 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "length"
require_relative "measure"

module Ogc
  module Gml
    class SecondDefiningParameter2 < Lutaml::Model::Serializable
      attribute :inverse_flattening, Measure
      attribute :semi_minor_axis, Length
      attribute :is_sphere, :boolean, default: -> { true }

      xml do
        root "SecondDefiningParameter"
        namespace "http://www.opengis.net/gml/3.2", "gml"

        map_element "inverseFlattening", to: :inverse_flattening
        map_element "semiMinorAxis", to: :semi_minor_axis
        map_element "isSphere", to: :is_sphere
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ogc-gml-1.0.3 lib/ogc/gml/second_defining_parameter2.rb
ogc-gml-1.0.2 lib/ogc/gml/second_defining_parameter2.rb
ogc-gml-1.0.1 lib/ogc/gml/second_defining_parameter2.rb