Class: VORuby::STC::V1_30::PixelCoordAreaType
- Inherits:
-
CoordAreaType
- Object
- STCBaseType
- CoordAreaType
- VORuby::STC::V1_30::PixelCoordAreaType
- Defined in:
- lib/voruby/stc/1.30/stc.rb
Overview
Pixel area type.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from CoordAreaType
#coord_intervals, #coord_system_id
Attributes included from STCReference
#id, #idref, #ucd, #xlink_href, #xlink_type
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from CoordAreaType
#==, coord_area_from_xml, #initialize, #to_xml
Methods inherited from STCBaseType
#==, #initialize, stc_base_from_xml, #to_xml
Methods included from STCReference
#stc_reference_eq, stc_reference_from_xml, #stc_reference_to_xml
Methods included from SerializableToXml
Constructor Details
This class inherits a constructor from VORuby::STC::V1_30::CoordAreaType
Class Method Details
.from_xml(xml) ⇒ Object
5005 5006 5007 5008 5009 5010 5011 5012 5013 |
# File 'lib/voruby/stc/1.30/stc.rb', line 5005 def self.from_xml(xml) root = element_from(xml) csi, cis, = CoordAreaType.coord_area_from_xml(root) pis = xml_to_obj(root, PixelCoordInterval) pis = nil if pis.size == 0 self.new(csi, pis, ) end |
Instance Method Details
#coord_intervals=(cis) ⇒ Object
4997 4998 4999 5000 5001 5002 5003 |
# File 'lib/voruby/stc/1.30/stc.rb', line 4997 def coord_intervals=(cis) if cis cis = PixelCoordIntervalList.new(cis) if cis.class == Array raise_type_mismatch_error(cis, PixelCoordIntervalList) end @coord_intervals = cis end |