@@ -282,6 +282,10 @@ function GEOSIntersection_r(handle, g1, g2)
282282 ccall ((:GEOSIntersection_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), handle, g1, g2)
283283end
284284
285+ function GEOSIntersectionPrec_r (handle, g1, g2, gridSize)
286+ ccall ((:GEOSIntersectionPrec_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), handle, g1, g2, gridSize)
287+ end
288+
285289function GEOSConvexHull_r (handle, g)
286290 ccall ((:GEOSConvexHull_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
287291end
@@ -290,6 +294,14 @@ function GEOSMinimumRotatedRectangle_r(handle, g)
290294 ccall ((:GEOSMinimumRotatedRectangle_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
291295end
292296
297+ function GEOSMaximumInscribedCircle_r (handle, g, tolerance)
298+ ccall ((:GEOSMaximumInscribedCircle_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Cdouble), handle, g, tolerance)
299+ end
300+
301+ function GEOSLargestEmptyCircle_r (handle, g, boundary, tolerance)
302+ ccall ((:GEOSLargestEmptyCircle_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), handle, g, boundary, tolerance)
303+ end
304+
293305function GEOSMinimumWidth_r (handle, g)
294306 ccall ((:GEOSMinimumWidth_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
295307end
@@ -306,10 +318,18 @@ function GEOSDifference_r(handle, g1, g2)
306318 ccall ((:GEOSDifference_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), handle, g1, g2)
307319end
308320
321+ function GEOSDifferencePrec_r (handle, g1, g2, gridSize)
322+ ccall ((:GEOSDifferencePrec_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), handle, g1, g2, gridSize)
323+ end
324+
309325function GEOSSymDifference_r (handle, g1, g2)
310326 ccall ((:GEOSSymDifference_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), handle, g1, g2)
311327end
312328
329+ function GEOSSymDifferencePrec_r (handle, g1, g2, gridSize)
330+ ccall ((:GEOSSymDifferencePrec_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), handle, g1, g2, gridSize)
331+ end
332+
313333function GEOSBoundary_r (handle, g)
314334 ccall ((:GEOSBoundary_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
315335end
@@ -318,10 +338,18 @@ function GEOSUnion_r(handle, g1, g2)
318338 ccall ((:GEOSUnion_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), handle, g1, g2)
319339end
320340
341+ function GEOSUnionPrec_r (handle, g1, g2, gridSize)
342+ ccall ((:GEOSUnionPrec_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), handle, g1, g2, gridSize)
343+ end
344+
321345function GEOSUnaryUnion_r (handle, g)
322346 ccall ((:GEOSUnaryUnion_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
323347end
324348
349+ function GEOSUnaryUnionPrec_r (handle, g, gridSize)
350+ ccall ((:GEOSUnaryUnionPrec_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Cdouble), handle, g, gridSize)
351+ end
352+
325353function GEOSCoverageUnion_r (handle, g)
326354 ccall ((:GEOSCoverageUnion_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
327355end
@@ -502,6 +530,14 @@ function GEOSPreparedWithin_r(handle, pg1, g2)
502530 ccall ((:GEOSPreparedWithin_r , libgeos), UInt8, (GEOSContextHandle_t, Ptr{GEOSPreparedGeometry}, Ptr{GEOSGeometry}), handle, pg1, g2)
503531end
504532
533+ function GEOSPreparedNearestPoints_r (handle, pg1, g2)
534+ ccall ((:GEOSPreparedNearestPoints_r , libgeos), Ptr{GEOSCoordSequence}, (GEOSContextHandle_t, Ptr{GEOSPreparedGeometry}, Ptr{GEOSGeometry}), handle, pg1, g2)
535+ end
536+
537+ function GEOSPreparedDistance_r (handle, pg1, g2, dist)
538+ ccall ((:GEOSPreparedDistance_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSPreparedGeometry}, Ptr{GEOSGeometry}, Ptr{Cdouble}), handle, pg1, g2, dist)
539+ end
540+
505541function GEOSSTRtree_create_r (handle, nodeCapacity)
506542 ccall ((:GEOSSTRtree_create_r , libgeos), Ptr{GEOSSTRtree}, (GEOSContextHandle_t, Csize_t), handle, nodeCapacity)
507543end
@@ -1090,6 +1126,10 @@ function GEOSIntersection(g1, g2)
10901126 ccall ((:GEOSIntersection , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
10911127end
10921128
1129+ function GEOSIntersectionPrec (g1, g2, gridSize)
1130+ ccall ((:GEOSIntersectionPrec , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), g1, g2, gridSize)
1131+ end
1132+
10931133function GEOSConvexHull (g)
10941134 ccall ((:GEOSConvexHull , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
10951135end
@@ -1098,6 +1138,14 @@ function GEOSMinimumRotatedRectangle(g)
10981138 ccall ((:GEOSMinimumRotatedRectangle , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
10991139end
11001140
1141+ function GEOSMaximumInscribedCircle (g, tolerance)
1142+ ccall ((:GEOSMaximumInscribedCircle , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Cdouble), g, tolerance)
1143+ end
1144+
1145+ function GEOSLargestEmptyCircle (g, boundary, tolerance)
1146+ ccall ((:GEOSLargestEmptyCircle , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), g, boundary, tolerance)
1147+ end
1148+
11011149function GEOSMinimumWidth (g)
11021150 ccall ((:GEOSMinimumWidth , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
11031151end
@@ -1114,10 +1162,18 @@ function GEOSDifference(g1, g2)
11141162 ccall ((:GEOSDifference , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
11151163end
11161164
1165+ function GEOSDifferencePrec (g1, g2, gridSize)
1166+ ccall ((:GEOSDifferencePrec , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), g1, g2, gridSize)
1167+ end
1168+
11171169function GEOSSymDifference (g1, g2)
11181170 ccall ((:GEOSSymDifference , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
11191171end
11201172
1173+ function GEOSSymDifferencePrec (g1, g2, gridSize)
1174+ ccall ((:GEOSSymDifferencePrec , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), g1, g2, gridSize)
1175+ end
1176+
11211177function GEOSBoundary (g)
11221178 ccall ((:GEOSBoundary , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
11231179end
@@ -1126,10 +1182,18 @@ function GEOSUnion(g1, g2)
11261182 ccall ((:GEOSUnion , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
11271183end
11281184
1185+ function GEOSUnionPrec (g1, g2, gridSize)
1186+ ccall ((:GEOSUnionPrec , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), g1, g2, gridSize)
1187+ end
1188+
11291189function GEOSUnaryUnion (g)
11301190 ccall ((:GEOSUnaryUnion , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
11311191end
11321192
1193+ function GEOSUnaryUnionPrec (g, gridSize)
1194+ ccall ((:GEOSUnaryUnionPrec , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Cdouble), g, gridSize)
1195+ end
1196+
11331197function GEOSCoverageUnion (g)
11341198 ccall ((:GEOSCoverageUnion , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
11351199end
@@ -1310,6 +1374,14 @@ function GEOSPreparedWithin(pg1, g2)
13101374 ccall ((:GEOSPreparedWithin , libgeos), UInt8, (Ptr{GEOSPreparedGeometry}, Ptr{GEOSGeometry}), pg1, g2)
13111375end
13121376
1377+ function GEOSPreparedNearestPoints (pg1, g2)
1378+ ccall ((:GEOSPreparedNearestPoints , libgeos), Ptr{GEOSCoordSequence}, (Ptr{GEOSPreparedGeometry}, Ptr{GEOSGeometry}), pg1, g2)
1379+ end
1380+
1381+ function GEOSPreparedDistance (pg1, g2, dist)
1382+ ccall ((:GEOSPreparedDistance , libgeos), Cint, (Ptr{GEOSPreparedGeometry}, Ptr{GEOSGeometry}, Ptr{Cdouble}), pg1, g2, dist)
1383+ end
1384+
13131385function GEOSSTRtree_create (nodeCapacity)
13141386 ccall ((:GEOSSTRtree_create , libgeos), Ptr{GEOSSTRtree}, (Csize_t,), nodeCapacity)
13151387end
0 commit comments