Sha256: b7ebf6e318aa354b5d339e513ab8769e5940f95820deda41ec0aa51e4b7a407e

Contents?: true

Size: 814 Bytes

Versions: 3

Compression:

Stored size: 814 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "abstract_surface_patch"
require_relative "triangle"

module Ogc
  module Gml
    class SurfacePatchArrayProperty < Lutaml::Model::Serializable
      attribute :abstract_surface_patch, AbstractSurfacePatch, collection: true
      attribute :polygon_patch, PolygonPatch, collection: true
      attribute :rectangle, Rectangle, collection: true
      attribute :triangle, Triangle, collection: true

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

        map_element "AbstractSurfacePatch", to: :abstract_surface_patch
        map_element "PolygonPatch", to: :polygon_patch
        map_element "Rectangle", to: :rectangle
        map_element "Triangle", to: :triangle
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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