Sha256: b5dfe94b814524a0b2fd8202505040b4f141da7c3e6b5880aad4afd7862dac0f

Contents?: true

Size: 1.26 KB

Versions: 3

Compression:

Stored size: 1.26 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "code"
require_relative "direction_description"
require_relative "direction_vector"
require_relative "string_or_ref"

module Ogc
  module Gml
    class DirectionProperty < Lutaml::Model::Serializable
      attribute :owns, :boolean, default: -> { false }
      attribute :nil_reason, :string
      attribute :remote_schema, :string
      attribute :direction_vector, DirectionVector
      attribute :direction_description, DirectionDescription
      attribute :compass_point, :string
      attribute :direction_keyword, Code
      attribute :direction_string, StringOrRef

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

        map_attribute "owns", to: :owns
        map_attribute "nilReason", to: :nil_reason
        map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "DirectionVector", to: :direction_vector
        map_element "DirectionDescription", to: :direction_description
        map_element "CompassPoint", to: :compass_point
        map_element "DirectionKeyword", to: :direction_keyword
        map_element "DirectionString", to: :direction_string
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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