scooterw/ffi-ogr

View on GitHub
lib/ffi-ogr/tools.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method cast_geometry has 35 lines of code (exceeds 25 allowed). Consider refactoring.
Open

      def cast_geometry(geom_ptr, auto_free=true)
        #options = {auto_free: true}.merge(options)
        raise RuntimeError.new("Geometry pointer is NULL") if geom_ptr.null?

        geom_type = FFIOGR.OGR_G_GetGeometryType(geom_ptr)
Severity: Minor
Found in lib/ffi-ogr/tools.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status