Skip to content

Commit 19ac74d

Browse files
jaakkor2visr
authored andcommitted
precision functions
1 parent 19a1eea commit 19ac74d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/geos_operations.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,3 +297,12 @@ for g1 in (:Point, :MultiPoint, :LineString, :MultiLineString, :LinearRing, :Pol
297297
end
298298
end
299299
end
300+
301+
# # -----
302+
# # Precision functions
303+
# # -----
304+
305+
for geom in (:Point, :MultiPoint, :LineString, :MultiLineString, :LinearRing, :Polygon, :MultiPolygon, :GeometryCollection)
306+
@eval getPrecision(obj::$geom, context::GEOSContext = _context) = getPrecision(obj.ptr, context)
307+
@eval setPrecision(obj::$geom, grid::Real, flags::Int, context::GEOSContext = _context) = setPrecision(obj.ptr, grid::Real, flags::Int, context)
308+
end

0 commit comments

Comments
 (0)