Sha256: c9f32c6f57ad15a4cbd20da0a1850af5968f386a268f8b8ea2bd3ecae0b8a2da

Contents?: true

Size: 1.91 KB

Versions: 3

Compression:

Stored size: 1.91 KB

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "code"
require_relative "code_with_authority"
require_relative "grid_limits"
require_relative "meta_data_property"
require_relative "point_property"
require_relative "reference"
require_relative "vector"

module Ogc
  module Gml
    class RectifiedGrid < Lutaml::Model::Serializable
      attribute :id, :string
      attribute :srs_name, :string
      attribute :srs_dimension, :integer
      attribute :axis_labels, :string
      attribute :uom_labels, :string
      attribute :dimension, :integer
      attribute :meta_data_property, MetaDataProperty, collection: true
      attribute :description, :string
      attribute :description_reference, Reference
      attribute :identifier, CodeWithAuthority
      attribute :name, Code, collection: true
      attribute :limits, GridLimits
      attribute :axis_name, :string, collection: true
      attribute :origin, PointProperty
      attribute :offset_vector, Vector, collection: true

      xml do
        root "RectifiedGrid"
        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_attribute "srsName", to: :srs_name
        map_attribute "srsDimension", to: :srs_dimension
        map_attribute "axisLabels", to: :axis_labels
        map_attribute "uomLabels", to: :uom_labels
        map_attribute "dimension", to: :dimension
        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 "limits", to: :limits
        map_element "axisName", to: :axis_name
        map_element "origin", to: :origin
        map_element "offsetVector", to: :offset_vector
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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