Class: RCAP::CAP_1_0::Polygon

Inherits:
Base::Polygon show all
Defined in:
lib/rcap/cap_1_0/polygon.rb

Overview

A Polygon object is valid if

  • it has a minimum of three points

  • each Point object in the points collection is valid

Constant Summary

Constant Summary

Constants inherited from Base::Polygon

Base::Polygon::POINTS_KEY, Base::Polygon::XML_ELEMENT_NAME, Base::Polygon::XPATH

Instance Attribute Summary

Attributes inherited from Base::Polygon

#points

Instance Method Summary (collapse)

Methods inherited from Base::Polygon

#==, #add_point, from_h, from_xml_element, from_yaml_data, #initialize, #inspect, parse_polygon_string, #to_h, #to_s, #to_xml, #to_xml_element, #to_yaml

Constructor Details

This class inherits a constructor from RCAP::Base::Polygon

Instance Method Details

- (Class) point_class

Returns:

  • (Class)


10
11
12
# File 'lib/rcap/cap_1_0/polygon.rb', line 10

def point_class
  Point
end