@@ -114,6 +114,14 @@ function GEOSCoordSeq_setZ_r(handle, s, idx, val)
114114 ccall ((:GEOSCoordSeq_setZ_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, Cdouble), handle, s, idx, val)
115115end
116116
117+ function GEOSCoordSeq_setXY_r (handle, s, idx, x, y)
118+ ccall ((:GEOSCoordSeq_setXY_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, Cdouble, Cdouble), handle, s, idx, x, y)
119+ end
120+
121+ function GEOSCoordSeq_setXYZ_r (handle, s, idx, x, y, z)
122+ ccall ((:GEOSCoordSeq_setXYZ_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, Cdouble, Cdouble, Cdouble), handle, s, idx, x, y, z)
123+ end
124+
117125function GEOSCoordSeq_setOrdinate_r (handle, s, idx, dim, val)
118126 ccall ((:GEOSCoordSeq_setOrdinate_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, UInt32, Cdouble), handle, s, idx, dim, val)
119127end
@@ -130,6 +138,14 @@ function GEOSCoordSeq_getZ_r(handle, s, idx, val)
130138 ccall ((:GEOSCoordSeq_getZ_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, Ptr{Cdouble}), handle, s, idx, val)
131139end
132140
141+ function GEOSCoordSeq_getXY_r (handle, s, idx, x, y)
142+ ccall ((:GEOSCoordSeq_getXY_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, Ptr{Cdouble}, Ptr{Cdouble}), handle, s, idx, x, y)
143+ end
144+
145+ function GEOSCoordSeq_getXYZ_r (handle, s, idx, x, y, z)
146+ ccall ((:GEOSCoordSeq_getXYZ_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}), handle, s, idx, x, y, z)
147+ end
148+
133149function GEOSCoordSeq_getOrdinate_r (handle, s, idx, dim, val)
134150 ccall ((:GEOSCoordSeq_getOrdinate_r , libgeos), Cint, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}, UInt32, UInt32, Ptr{Cdouble}), handle, s, idx, dim, val)
135151end
@@ -214,6 +230,10 @@ function GEOSGeom_createPoint_r(handle, s)
214230 ccall ((:GEOSGeom_createPoint_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSCoordSequence}), handle, s)
215231end
216232
233+ function GEOSGeom_createPointFromXY_r (handle, x, y)
234+ ccall ((:GEOSGeom_createPointFromXY_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Cdouble, Cdouble), handle, x, y)
235+ end
236+
217237function GEOSGeom_createEmptyPoint_r (handle)
218238 ccall ((:GEOSGeom_createEmptyPoint_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t,), handle)
219239end
@@ -302,6 +322,10 @@ function GEOSUnaryUnion_r(handle, g)
302322 ccall ((:GEOSUnaryUnion_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
303323end
304324
325+ function GEOSCoverageUnion_r (handle, g)
326+ ccall ((:GEOSCoverageUnion_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
327+ end
328+
305329function GEOSUnionCascaded_r (handle, g)
306330 ccall ((:GEOSUnionCascaded_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
307331end
@@ -314,6 +338,10 @@ function GEOSGetCentroid_r(handle, g)
314338 ccall ((:GEOSGetCentroid_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
315339end
316340
341+ function GEOSMinimumBoundingCircle_r (handle, g, radius, center)
342+ ccall ((:GEOSMinimumBoundingCircle_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{Cdouble}, Ptr{Ptr{GEOSGeometry}}), handle, g, radius, center)
343+ end
344+
317345function GEOSNode_r (handle, g)
318346 ccall ((:GEOSNode_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
319347end
@@ -326,6 +354,10 @@ function GEOSPolygonize_r(handle, geoms, ngeoms)
326354 ccall ((:GEOSPolygonize_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{Ptr{GEOSGeometry}}, UInt32), handle, geoms, ngeoms)
327355end
328356
357+ function GEOSPolygonize_valid_r (handle, geoms, ngems)
358+ ccall ((:GEOSPolygonize_valid_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{Ptr{GEOSGeometry}}, UInt32), handle, geoms, ngems)
359+ end
360+
329361function GEOSPolygonizer_getCutEdges_r (handle, geoms, ngeoms)
330362 ccall ((:GEOSPolygonizer_getCutEdges_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{Ptr{GEOSGeometry}}, UInt32), handle, geoms, ngeoms)
331363end
@@ -334,6 +366,10 @@ function GEOSPolygonize_full_r(handle, input, cuts, dangles, invalidRings)
334366 ccall ((:GEOSPolygonize_full_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{Ptr{GEOSGeometry}}, Ptr{Ptr{GEOSGeometry}}, Ptr{Ptr{GEOSGeometry}}), handle, input, cuts, dangles, invalidRings)
335367end
336368
369+ function GEOSBuildArea_r (handle, g)
370+ ccall ((:GEOSBuildArea_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
371+ end
372+
337373function GEOSLineMerge_r (handle, g)
338374 ccall ((:GEOSLineMerge_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
339375end
@@ -546,6 +582,10 @@ function GEOSisValidDetail_r(handle, g, flags, reason, location)
546582 ccall ((:GEOSisValidDetail_r , libgeos), UInt8, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Cint, Ptr{Cstring}, Ptr{Ptr{GEOSGeometry}}), handle, g, flags, reason, location)
547583end
548584
585+ function GEOSMakeValid_r (handle, g)
586+ ccall ((:GEOSMakeValid_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
587+ end
588+
549589function GEOSGeomType_r (handle, g)
550590 unsafe_string (ccall ((:GEOSGeomType_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g))
551591end
@@ -882,6 +922,14 @@ function GEOSCoordSeq_setZ(s, idx, val)
882922 ccall ((:GEOSCoordSeq_setZ , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, Cdouble), s, idx, val)
883923end
884924
925+ function GEOSCoordSeq_setXY (s, idx, x, y)
926+ ccall ((:GEOSCoordSeq_setXY , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, Cdouble, Cdouble), s, idx, x, y)
927+ end
928+
929+ function GEOSCoordSeq_setXYZ (s, idx, x, y, z)
930+ ccall ((:GEOSCoordSeq_setXYZ , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, Cdouble, Cdouble, Cdouble), s, idx, x, y, z)
931+ end
932+
885933function GEOSCoordSeq_setOrdinate (s, idx, dim, val)
886934 ccall ((:GEOSCoordSeq_setOrdinate , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, UInt32, Cdouble), s, idx, dim, val)
887935end
@@ -898,6 +946,14 @@ function GEOSCoordSeq_getZ(s, idx, val)
898946 ccall ((:GEOSCoordSeq_getZ , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, Ptr{Cdouble}), s, idx, val)
899947end
900948
949+ function GEOSCoordSeq_getXY (s, idx, x, y)
950+ ccall ((:GEOSCoordSeq_getXY , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, Ptr{Cdouble}, Ptr{Cdouble}), s, idx, x, y)
951+ end
952+
953+ function GEOSCoordSeq_getXYZ (s, idx, x, y, z)
954+ ccall ((:GEOSCoordSeq_getXYZ , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, Ptr{Cdouble}, Ptr{Cdouble}, Ptr{Cdouble}), s, idx, x, y, z)
955+ end
956+
901957function GEOSCoordSeq_getOrdinate (s, idx, dim, val)
902958 ccall ((:GEOSCoordSeq_getOrdinate , libgeos), Cint, (Ptr{GEOSCoordSequence}, UInt32, UInt32, Ptr{Cdouble}), s, idx, dim, val)
903959end
@@ -982,6 +1038,10 @@ function GEOSGeom_createPoint(s)
9821038 ccall ((:GEOSGeom_createPoint , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSCoordSequence},), s)
9831039end
9841040
1041+ function GEOSGeom_createPointFromXY (x, y)
1042+ ccall ((:GEOSGeom_createPointFromXY , libgeos), Ptr{GEOSGeometry}, (Cdouble, Cdouble), x, y)
1043+ end
1044+
9851045function GEOSGeom_createEmptyPoint ()
9861046 ccall ((:GEOSGeom_createEmptyPoint , libgeos), Ptr{GEOSGeometry}, ())
9871047end
@@ -1070,6 +1130,10 @@ function GEOSUnaryUnion(g)
10701130 ccall ((:GEOSUnaryUnion , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
10711131end
10721132
1133+ function GEOSCoverageUnion (g)
1134+ ccall ((:GEOSCoverageUnion , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
1135+ end
1136+
10731137function GEOSUnionCascaded (g)
10741138 ccall ((:GEOSUnionCascaded , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
10751139end
@@ -1082,6 +1146,10 @@ function GEOSGetCentroid(g)
10821146 ccall ((:GEOSGetCentroid , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
10831147end
10841148
1149+ function GEOSMinimumBoundingCircle (g, radius, center)
1150+ ccall ((:GEOSMinimumBoundingCircle , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{Cdouble}, Ptr{Ptr{GEOSGeometry}}), g, radius, center)
1151+ end
1152+
10851153function GEOSNode (g)
10861154 ccall ((:GEOSNode , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
10871155end
@@ -1094,6 +1162,10 @@ function GEOSPolygonize(geoms, ngeoms)
10941162 ccall ((:GEOSPolygonize , libgeos), Ptr{GEOSGeometry}, (Ptr{Ptr{GEOSGeometry}}, UInt32), geoms, ngeoms)
10951163end
10961164
1165+ function GEOSPolygonize_valid (geoms, ngeoms)
1166+ ccall ((:GEOSPolygonize_valid , libgeos), Ptr{GEOSGeometry}, (Ptr{Ptr{GEOSGeometry}}, UInt32), geoms, ngeoms)
1167+ end
1168+
10971169function GEOSPolygonizer_getCutEdges (geoms, ngeoms)
10981170 ccall ((:GEOSPolygonizer_getCutEdges , libgeos), Ptr{GEOSGeometry}, (Ptr{Ptr{GEOSGeometry}}, UInt32), geoms, ngeoms)
10991171end
@@ -1102,6 +1174,10 @@ function GEOSPolygonize_full(input, cuts, dangles, invalid)
11021174 ccall ((:GEOSPolygonize_full , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry}, Ptr{Ptr{GEOSGeometry}}, Ptr{Ptr{GEOSGeometry}}, Ptr{Ptr{GEOSGeometry}}), input, cuts, dangles, invalid)
11031175end
11041176
1177+ function GEOSBuildArea (g)
1178+ ccall ((:GEOSBuildArea , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
1179+ end
1180+
11051181function GEOSLineMerge (g)
11061182 ccall ((:GEOSLineMerge , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
11071183end
@@ -1174,10 +1250,6 @@ function GEOSEquals(g1, g2)
11741250 ccall ((:GEOSEquals , libgeos), UInt8, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
11751251end
11761252
1177- function GEOSEqualsExact (g1, g2, tolerance)
1178- ccall ((:GEOSEqualsExact , libgeos), UInt8, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), g1, g2, tolerance)
1179- end
1180-
11811253function GEOSCovers (g1, g2)
11821254 ccall ((:GEOSCovers , libgeos), UInt8, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
11831255end
@@ -1186,6 +1258,10 @@ function GEOSCoveredBy(g1, g2)
11861258 ccall ((:GEOSCoveredBy , libgeos), UInt8, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
11871259end
11881260
1261+ function GEOSEqualsExact (g1, g2, tolerance)
1262+ ccall ((:GEOSEqualsExact , libgeos), UInt8, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cdouble), g1, g2, tolerance)
1263+ end
1264+
11891265function GEOSPrepare (g)
11901266 ccall ((:GEOSPrepare , libgeos), Ptr{GEOSPreparedGeometry}, (Ptr{GEOSGeometry},), g)
11911267end
@@ -1314,6 +1390,10 @@ function GEOSisValidDetail(g, flags, reason, location)
13141390 ccall ((:GEOSisValidDetail , libgeos), UInt8, (Ptr{GEOSGeometry}, Cint, Ptr{Cstring}, Ptr{Ptr{GEOSGeometry}}), g, flags, reason, location)
13151391end
13161392
1393+ function GEOSMakeValid (g)
1394+ ccall ((:GEOSMakeValid , libgeos), Ptr{GEOSGeometry}, (Ptr{GEOSGeometry},), g)
1395+ end
1396+
13171397function GEOSGeomType (g)
13181398 unsafe_string (ccall ((:GEOSGeomType , libgeos), Cstring, (Ptr{GEOSGeometry},), g))
13191399end
0 commit comments