Skip to content

Commit eb33559

Browse files
committed
getprecision returns a double, C_NULL check not needed
1 parent 7ae7d96 commit eb33559

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/geos_functions.jl

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1108,11 +1108,7 @@ nearestPoints(g1::GEOSGeom, g2::GEOSGeom, context::GEOSContext = _context) =
11081108
Return the size of the geometry's precision grid, 0 for FLOATING precision.
11091109
"""
11101110
function getPrecision(geom::GEOSGeom, context::GEOSContext = _context)
1111-
result = GEOSGeom_getPrecision_r(context.ptr, geom)
1112-
if result == C_NULL
1113-
error("LibGEOS: Error in GEOSGeom_getPrecision_r")
1114-
end
1115-
result
1111+
GEOSGeom_getPrecision_r(context.ptr, geom)
11161112
end
11171113

11181114
"""

0 commit comments

Comments
 (0)