Module: RGeo::Cartesian::GeometryMethods

Overview

:nodoc:

Instance Method Summary collapse

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

Returns:

  • (Boolean)


28
29
30
# File 'lib/rgeo/cartesian/feature_methods.rb', line 28

def is_3d?
  factory.property(:has_z_coordinate)
end

#measured? ⇒ Boolean

Returns:

  • (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