lib/rgeo/cartesian/interface.rb in rgeo-0.1.14 vs lib/rgeo/cartesian/interface.rb in rgeo-0.1.15

- old
+ new

@@ -53,12 +53,12 @@ # The given options are passed to the factory's constructor. # What options are available depends on the particular # implementation. Unsupported options are ignored. def preferred_factory(opts_={}) - if Geos.supported? - Geos.factory(opts_) + if ::RGeo::Geos.supported? + ::RGeo::Geos.factory(opts_) else simple_factory(opts_) end end alias_method :factory, :preferred_factory @@ -70,12 +70,16 @@ # Options include: # # <tt>:srid</tt>:: # Set the SRID returned by geometries created by this factory. # Default is 0. + # <tt>:support_z_coordinate</tt>:: + # Support <tt>z_coordinate</tt>. Default is false. + # <tt>:support_m_coordinate</tt>:: + # Support <tt>m_coordinate</tt>. Default is false. def simple_factory(opts_={}) - SimpleFactory.new(opts_) + Cartesian::Factory.new(opts_) end end