Sha256: 02255811c453e630974a73c588259ff72162c4f7e4a0e619c5ac988968658240

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "bounding_shape"
require_relative "code"
require_relative "code_with_authority"
require_relative "dynamic_feature_member"
require_relative "history_property"
require_relative "location_property"
require_relative "meta_data_property"
require_relative "reference"
require_relative "string_or_ref"
require_relative "time_primitive_property"
require_relative "abstract_topology"

module Ogc
  module Gml
    class DynamicFeatureCollection < AbstractTopology
      attribute :bounded_by, BoundingShape
      attribute :location, LocationProperty
      attribute :valid_time, TimePrimitiveProperty
      attribute :history, HistoryProperty
      attribute :data_source, StringOrRef
      attribute :data_source_reference, Reference
      attribute :dynamic_members, DynamicFeatureMember

      xml do
        root "DynamicFeatureCollection"
        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 "boundedBy", to: :bounded_by
        map_element "location", to: :location
        map_element "validTime", to: :valid_time
        map_element "history", to: :history
        map_element "dataSource", to: :data_source
        map_element "dataSourceReference", to: :data_source_reference
        map_element "dynamicMembers", to: :dynamic_members
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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