@@ -1289,7 +1289,7 @@ function GEOSRelatePattern_r(handle, g1, g2, pat)
12891289end
12901290
12911291function GEOSRelate_r (handle, g1, g2)
1292- transform_c_string (
1292+ string_copy_free (
12931293 @ccall (
12941294 libgeos. GEOSRelate_r (
12951295 handle:: GEOSContextHandle_t ,
@@ -1309,7 +1309,7 @@ function GEOSRelatePatternMatch_r(handle, mat, pat)
13091309end
13101310
13111311function GEOSRelateBoundaryNodeRule_r (handle, g1, g2, bnr)
1312- transform_c_string (
1312+ string_copy_free (
13131313 @ccall (
13141314 libgeos. GEOSRelateBoundaryNodeRule_r (
13151315 handle:: GEOSContextHandle_t ,
@@ -1330,7 +1330,7 @@ function GEOSisValid_r(handle, g)
13301330end
13311331
13321332function GEOSisValidReason_r (handle, g)
1333- transform_c_string (
1333+ string_copy_free (
13341334 @ccall (
13351335 libgeos. GEOSisValidReason_r (
13361336 handle:: GEOSContextHandle_t ,
@@ -1408,7 +1408,7 @@ function GEOSRemoveRepeatedPoints_r(handle, g, tolerance)
14081408end
14091409
14101410function GEOSGeomType_r (handle, g)
1411- transform_c_string (
1411+ string_copy_free (
14121412 @ccall (
14131413 libgeos. GEOSGeomType_r (
14141414 handle:: GEOSContextHandle_t ,
@@ -1827,7 +1827,7 @@ function GEOSWKTWriter_destroy_r(handle, writer)
18271827end
18281828
18291829function GEOSWKTWriter_write_r (handle, writer, g)
1830- transform_c_string (
1830+ string_copy_free (
18311831 @ccall (
18321832 libgeos. GEOSWKTWriter_write_r (
18331833 handle:: GEOSContextHandle_t ,
@@ -2038,7 +2038,7 @@ function GEOSGeoJSONWriter_destroy_r(handle, writer)
20382038end
20392039
20402040function GEOSGeoJSONWriter_writeGeometry_r (handle, writer, g, indent)
2041- transform_c_string (
2041+ string_copy_free (
20422042 @ccall (
20432043 libgeos. GEOSGeoJSONWriter_writeGeometry_r (
20442044 handle:: GEOSContextHandle_t ,
@@ -2308,7 +2308,7 @@ function GEOSGeom_destroy(g)
23082308end
23092309
23102310function GEOSGeomType (g)
2311- transform_c_string (@ccall (libgeos. GEOSGeomType (g:: Ptr{GEOSGeometry} ):: Cstring ))
2311+ string_copy_free (@ccall (libgeos. GEOSGeomType (g:: Ptr{GEOSGeometry} ):: Cstring ))
23122312end
23132313
23142314function GEOSGeomTypeId (g)
@@ -2454,7 +2454,7 @@ function GEOSisValid(g)
24542454end
24552455
24562456function GEOSisValidReason (g)
2457- transform_c_string (@ccall (libgeos. GEOSisValidReason (g:: Ptr{GEOSGeometry} ):: Cstring ))
2457+ string_copy_free (@ccall (libgeos. GEOSisValidReason (g:: Ptr{GEOSGeometry} ):: Cstring ))
24582458end
24592459
24602460function GEOSisValidDetail (g, flags, reason, location)
@@ -3057,7 +3057,7 @@ function GEOSRelatePattern(g1, g2, pat)
30573057end
30583058
30593059function GEOSRelate (g1, g2)
3060- transform_c_string (
3060+ string_copy_free (
30613061 @ccall (libgeos. GEOSRelate (g1:: Ptr{GEOSGeometry} , g2:: Ptr{GEOSGeometry} ):: Cstring )
30623062 )
30633063end
@@ -3067,7 +3067,7 @@ function GEOSRelatePatternMatch(mat, pat)
30673067end
30683068
30693069function GEOSRelateBoundaryNodeRule (g1, g2, bnr)
3070- transform_c_string (
3070+ string_copy_free (
30713071 @ccall (
30723072 libgeos. GEOSRelateBoundaryNodeRule (
30733073 g1:: Ptr{GEOSGeometry} ,
@@ -3294,7 +3294,7 @@ function GEOSWKTWriter_destroy(writer)
32943294end
32953295
32963296function GEOSWKTWriter_write (writer, g)
3297- transform_c_string (
3297+ string_copy_free (
32983298 @ccall (
32993299 libgeos. GEOSWKTWriter_write (
33003300 writer:: Ptr{GEOSWKTWriter} ,
@@ -3450,7 +3450,7 @@ function GEOSGeoJSONWriter_destroy(writer)
34503450end
34513451
34523452function GEOSGeoJSONWriter_writeGeometry (writer, g, indent)
3453- transform_c_string (
3453+ string_copy_free (
34543454 @ccall (
34553455 libgeos. GEOSGeoJSONWriter_writeGeometry (
34563456 writer:: Ptr{GEOSGeoJSONWriter} ,
@@ -3511,7 +3511,7 @@ function GEOSGeomFromWKT_r(handle, wkt)
35113511end
35123512
35133513function GEOSGeomToWKT_r (handle, g)
3514- transform_c_string (
3514+ string_copy_free (
35153515 @ccall (
35163516 libgeos. GEOSGeomToWKT_r (
35173517 handle:: GEOSContextHandle_t ,
@@ -3577,7 +3577,7 @@ function GEOSGeomFromWKT(wkt)
35773577end
35783578
35793579function GEOSGeomToWKT (g)
3580- transform_c_string (@ccall (libgeos. GEOSGeomToWKT (g:: Ptr{GEOSGeometry} ):: Cstring ))
3580+ string_copy_free (@ccall (libgeos. GEOSGeomToWKT (g:: Ptr{GEOSGeometry} ):: Cstring ))
35813581end
35823582
35833583function GEOS_getWKBOutputDims ()
0 commit comments