Module: RGeo::ImplHelper::BasicMultiPointMethods
- Included in:
- Cartesian::MultiPointImpl, Geographic::ProjectedMultiPointImpl, Geographic::SphericalMultiPointImpl
- Defined in:
- lib/rgeo/impl_helper/basic_geometry_collection_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#boundary ⇒ Object
184 185 186 |
# File 'lib/rgeo/impl_helper/basic_geometry_collection_methods.rb', line 184 def boundary factory.collection([]) end |
#geometry_type ⇒ Object
179 180 181 |
# File 'lib/rgeo/impl_helper/basic_geometry_collection_methods.rb', line 179 def geometry_type Feature::MultiPoint end |
#initialize(factory_, elements_) ⇒ Object
166 167 168 169 170 171 172 173 174 175 176 |
# File 'lib/rgeo/impl_helper/basic_geometry_collection_methods.rb', line 166 def initialize(factory_, elements_) _set_factory(factory_) @elements = elements_.map do |elem_| elem_ = Feature.cast(elem_, factory_, Feature::Point, :keep_subtype) unless elem_ raise Error::InvalidGeometry, "Could not cast #{elem_}" end elem_ end _validate_geometry end |