lib/ogr/geometry.rb in ffi-gdal-1.0.0.beta4 vs lib/ogr/geometry.rb in ffi-gdal-1.0.0.beta5

- old
+ new

@@ -27,11 +27,10 @@ else OGR::UnknownGeometry.new(geometry) end new_pointer = geometry.c_pointer - # geometry.c_pointer.autorelease = true case geometry.type when :wkbPoint, :wkbPoint25D then OGR::Point.new(new_pointer) when :wkbLineString, :wkbLineString25D then OGR::LineString.new(new_pointer) when :wkbLinearRing then OGR::LinearRing.new(new_pointer) @@ -120,9 +119,10 @@ extend ClassMethods def self.included(base) base.send(:include, GDAL::Logger) base.send(:include, GeometryExtensions) + base.send(:extend, ClassMethods) end #-------------------------------------------------------------------------- # Instance Methods #--------------------------------------------------------------------------