lib/ogr/geometries/linear_ring.rb in ffi-gdal-1.0.0.beta16 vs lib/ogr/geometries/linear_ring.rb in ffi-gdal-1.0.0

- old
+ new

@@ -5,11 +5,11 @@ module OGR class LinearRing < LineString # @param [FFI::Pointer] geometry_ptr def initialize(geometry_ptr = nil, spatial_reference: nil) geometry_ptr ||= OGR::Geometry.create(:wkbLinearRing) - initialize_from_pointer(geometry_ptr) - self.spatial_reference = spatial_reference if spatial_reference + + super(geometry_ptr, spatial_reference: spatial_reference) end def to_line_string line_string = OGR::LineString.new line_string.spatial_reference = spatial_reference if spatial_reference