Module: RGeo::Cartesian::GeometryMethods
- Included in:
- GeometryCollectionImpl, LineImpl, LineStringImpl, LinearRingImpl, MultiLineStringImpl, MultiPointImpl, MultiPolygonImpl, PointImpl, PolygonImpl
- Defined in:
- lib/rgeo/cartesian/feature_methods.rb
Overview
:nodoc:
Instance Method Summary collapse
- #coordinate_dimension ⇒ Object
- #envelope ⇒ Object
- #is_3d? ⇒ Boolean
- #measured? ⇒ Boolean
- #spatial_dimension ⇒ Object
- #srid ⇒ Object
Instance Method Details
#coordinate_dimension ⇒ Object
20 21 22 |
# File 'lib/rgeo/cartesian/feature_methods.rb', line 20 def coordinate_dimension factory.coordinate_dimension end |
#envelope ⇒ Object
16 17 18 |
# File 'lib/rgeo/cartesian/feature_methods.rb', line 16 def envelope BoundingBox.new(factory).add(self).to_geometry end |
#is_3d? ⇒ Boolean
28 29 30 |
# File 'lib/rgeo/cartesian/feature_methods.rb', line 28 def is_3d? factory.property(:has_z_coordinate) end |
#measured? ⇒ Boolean
32 33 34 |
# File 'lib/rgeo/cartesian/feature_methods.rb', line 32 def measured? factory.property(:has_m_coordinate) end |
#spatial_dimension ⇒ Object
24 25 26 |
# File 'lib/rgeo/cartesian/feature_methods.rb', line 24 def spatial_dimension factory.spatial_dimension end |
#srid ⇒ Object
12 13 14 |
# File 'lib/rgeo/cartesian/feature_methods.rb', line 12 def srid factory.srid end |