Sha256: 81b7f5dd19c956a99b54717ead0bdc0a4f933b033f95c8563a5a716f451eb9e3

Contents?: true

Size: 994 Bytes

Versions: 3

Compression:

Stored size: 994 Bytes

Contents

# frozen_string_literal: true

require "lutaml/model"

require_relative "abstract_geometry"
require_relative "code"
require_relative "string_or_ref"

module Ogc
  module Gml
    class LocationProperty < Lutaml::Model::Serializable
      attribute :nil_reason, :string
      attribute :remote_schema, :string
      attribute :abstract_geometry, AbstractGeometry
      attribute :location_key_word, Code
      attribute :location_string, StringOrRef
      attribute :null, :string

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

        map_attribute "nilReason", to: :nil_reason
        map_attribute "remoteSchema", to: :remote_schema, prefix: "gml", namespace: "http://www.opengis.net/gml/3.2"
        map_element "AbstractGeometry", to: :abstract_geometry
        map_element "LocationKeyWord", to: :location_key_word
        map_element "LocationString", to: :location_string
        map_element "Null", to: :null
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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