Module: RGeo::ImplHelper::BasicGeometryMethods
- Includes:
- Feature::Instance
- Included in:
- Cartesian::GeometryCollectionImpl, Cartesian::LineImpl, Cartesian::LineStringImpl, Cartesian::LinearRingImpl, Cartesian::MultiLineStringImpl, Cartesian::MultiPointImpl, Cartesian::MultiPolygonImpl, Cartesian::PointImpl, Cartesian::PolygonImpl, Geographic::ProjectedGeometryCollectionImpl, Geographic::ProjectedLineImpl, Geographic::ProjectedLineStringImpl, Geographic::ProjectedLinearRingImpl, Geographic::ProjectedMultiLineStringImpl, Geographic::ProjectedMultiPointImpl, Geographic::ProjectedMultiPolygonImpl, Geographic::ProjectedPointImpl, Geographic::ProjectedPolygonImpl, Geographic::SphericalGeometryCollectionImpl, Geographic::SphericalLineImpl, Geographic::SphericalLineStringImpl, Geographic::SphericalLinearRingImpl, Geographic::SphericalMultiLineStringImpl, Geographic::SphericalMultiPointImpl, Geographic::SphericalMultiPolygonImpl, Geographic::SphericalPointImpl, Geographic::SphericalPolygonImpl
- Defined in:
- lib/rgeo/impl_helper/basic_geometry_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#_set_factory(factory_) ⇒ Object
:nodoc:.
-
#_validate_geometry ⇒ Object
:nodoc:.
- #as_binary ⇒ Object
- #as_text ⇒ Object
- #factory ⇒ Object
-
#inspect ⇒ Object
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
Instance Method Details
#_set_factory(factory_) ⇒ Object
:nodoc:
60 61 62 |
# File 'lib/rgeo/impl_helper/basic_geometry_methods.rb', line 60 def _set_factory(factory_) # :nodoc: @factory = factory_ end |
#_validate_geometry ⇒ Object
:nodoc:
56 57 |
# File 'lib/rgeo/impl_helper/basic_geometry_methods.rb', line 56 def _validate_geometry # :nodoc: end |
#as_binary ⇒ Object
75 76 77 |
# File 'lib/rgeo/impl_helper/basic_geometry_methods.rb', line 75 def as_binary WKRep::WKBGenerator.new.generate(self) end |
#as_text ⇒ Object
70 71 72 |
# File 'lib/rgeo/impl_helper/basic_geometry_methods.rb', line 70 def as_text WKRep::WKTGenerator.new.generate(self) end |
#factory ⇒ Object
65 66 67 |
# File 'lib/rgeo/impl_helper/basic_geometry_methods.rb', line 65 def factory @factory end |
#inspect ⇒ Object
:nodoc:
47 48 49 |
# File 'lib/rgeo/impl_helper/basic_geometry_methods.rb', line 47 def inspect # :nodoc: "#<#{self.class}:0x#{object_id.to_s(16)} #{as_text.inspect}>" end |
#to_s ⇒ Object
:nodoc:
51 52 53 |
# File 'lib/rgeo/impl_helper/basic_geometry_methods.rb', line 51 def to_s # :nodoc: as_text end |