Sha256: 8c72126c2fa4be1d102e632fa12b8637576ee38e981b75b23ec9536babe175d4

Contents?: true

Size: 1.22 KB

Versions: 3

Compression:

Stored size: 1.22 KB

Contents

# frozen_string_literal: true

require "lutaml/model"
# require_relative "time_edge_property"
require_relative "time_instant_property"
require_relative "abstract_time_topology_primitive"

module Ogc
  module Gml
    class TimeEdgeProperty < Lutaml::Model::Serializable
    end

    class TimeNode < AbstractTimeTopologyPrimitive
      attribute :previous_edge, TimeEdgeProperty, collection: true
      attribute :next_edge, TimeEdgeProperty, collection: true
      attribute :position, TimeInstantProperty

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

        map_attribute "id", to: :id, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "metaDataProperty", to: :meta_data_property
        map_element "description", to: :description
        map_element "descriptionReference", to: :description_reference
        map_element "identifier", to: :identifier
        map_element "name", to: :name
        map_element "relatedTime", to: :related_time
        map_element "complex", to: :complex
        map_element "previousEdge", to: :previous_edge
        map_element "nextEdge", to: :next_edge
        map_element "position", to: :position
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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