Class: RCAP::CAP_1_2::Polygon

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

Overview

A Polygon object is valid if

  • if points are given it has a minimum of three points

  • each Point object in the points collection is valid

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_geojson, #to_h, #to_s, #to_xml, #to_xml_element, #to_yaml, #to_yaml_data

Methods included from Validation

#errors, included, #valid?, #validate

Constructor Details

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

Instance Method Details

#point_classClass


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

def point_class
  Point
end