@@ -47,15 +47,15 @@ function GEOSContext_setErrorMessageHandler_r(extHandle, ef, userData)
4747end
4848
4949function GEOSversion ()
50- ccall ((:GEOSversion , libgeos), Cstring, ())
50+ unsafe_string ( ccall ((:GEOSversion , libgeos), Cstring, () ))
5151end
5252
5353function GEOSGeomFromWKT_r (handle, wkt)
5454 ccall ((:GEOSGeomFromWKT_r , libgeos), Ptr{GEOSGeometry}, (GEOSContextHandle_t, Cstring), handle, wkt)
5555end
5656
5757function GEOSGeomToWKT_r (handle, g)
58- ccall ((:GEOSGeomToWKT_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
58+ unsafe_string ( ccall ((:GEOSGeomToWKT_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g) )
5959end
6060
6161function GEOS_getWKBOutputDims_r (handle)
@@ -523,31 +523,31 @@ function GEOSRelatePattern_r(handle, g1, g2, pat)
523523end
524524
525525function GEOSRelate_r (handle, g1, g2)
526- ccall ((:GEOSRelate_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), handle, g1, g2)
526+ unsafe_string ( ccall ((:GEOSRelate_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), handle, g1, g2) )
527527end
528528
529529function GEOSRelatePatternMatch_r (handle, mat, pat)
530530 ccall ((:GEOSRelatePatternMatch_r , libgeos), UInt8, (GEOSContextHandle_t, Cstring, Cstring), handle, mat, pat)
531531end
532532
533533function GEOSRelateBoundaryNodeRule_r (handle, g1, g2, bnr)
534- ccall ((:GEOSRelateBoundaryNodeRule_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cint), handle, g1, g2, bnr)
534+ unsafe_string ( ccall ((:GEOSRelateBoundaryNodeRule_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cint), handle, g1, g2, bnr) )
535535end
536536
537537function GEOSisValid_r (handle, g)
538538 ccall ((:GEOSisValid_r , libgeos), UInt8, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
539539end
540540
541541function GEOSisValidReason_r (handle, g)
542- ccall ((:GEOSisValidReason_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
542+ unsafe_string ( ccall ((:GEOSisValidReason_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g) )
543543end
544544
545545function GEOSisValidDetail_r (handle, g, flags, reason, location)
546546 ccall ((:GEOSisValidDetail_r , libgeos), UInt8, (GEOSContextHandle_t, Ptr{GEOSGeometry}, Cint, Ptr{Cstring}, Ptr{Ptr{GEOSGeometry}}), handle, g, flags, reason, location)
547547end
548548
549549function GEOSGeomType_r (handle, g)
550- ccall ((:GEOSGeomType_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g)
550+ unsafe_string ( ccall ((:GEOSGeomType_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSGeometry}), handle, g) )
551551end
552552
553553function GEOSGeomTypeId_r (handle, g)
@@ -727,7 +727,7 @@ function GEOSWKTWriter_destroy_r(handle, writer)
727727end
728728
729729function GEOSWKTWriter_write_r (handle, writer, g)
730- ccall ((:GEOSWKTWriter_write_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSWKTWriter}, Ptr{GEOSGeometry}), handle, writer, g)
730+ unsafe_string ( ccall ((:GEOSWKTWriter_write_r , libgeos), Cstring, (GEOSContextHandle_t, Ptr{GEOSWKTWriter}, Ptr{GEOSGeometry}), handle, writer, g) )
731731end
732732
733733function GEOSWKTWriter_setTrim_r (handle, writer, trim)
@@ -823,7 +823,7 @@ function GEOSGeomFromWKT(wkt)
823823end
824824
825825function GEOSGeomToWKT (g)
826- ccall ((:GEOSGeomToWKT , libgeos), Cstring, (Ptr{GEOSGeometry},), g)
826+ unsafe_string ( ccall ((:GEOSGeomToWKT , libgeos), Cstring, (Ptr{GEOSGeometry},), g) )
827827end
828828
829829function GEOS_getWKBOutputDims ()
@@ -1291,31 +1291,31 @@ function GEOSRelatePattern(g1, g2, pat)
12911291end
12921292
12931293function GEOSRelate (g1, g2)
1294- ccall ((:GEOSRelate , libgeos), Cstring, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2)
1294+ unsafe_string ( ccall ((:GEOSRelate , libgeos), Cstring, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}), g1, g2) )
12951295end
12961296
12971297function GEOSRelatePatternMatch (mat, pat)
12981298 ccall ((:GEOSRelatePatternMatch , libgeos), UInt8, (Cstring, Cstring), mat, pat)
12991299end
13001300
13011301function GEOSRelateBoundaryNodeRule (g1, g2, bnr)
1302- ccall ((:GEOSRelateBoundaryNodeRule , libgeos), Cstring, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cint), g1, g2, bnr)
1302+ unsafe_string ( ccall ((:GEOSRelateBoundaryNodeRule , libgeos), Cstring, (Ptr{GEOSGeometry}, Ptr{GEOSGeometry}, Cint), g1, g2, bnr) )
13031303end
13041304
13051305function GEOSisValid (g)
13061306 ccall ((:GEOSisValid , libgeos), UInt8, (Ptr{GEOSGeometry},), g)
13071307end
13081308
13091309function GEOSisValidReason (g)
1310- ccall ((:GEOSisValidReason , libgeos), Cstring, (Ptr{GEOSGeometry},), g)
1310+ unsafe_string ( ccall ((:GEOSisValidReason , libgeos), Cstring, (Ptr{GEOSGeometry},), g) )
13111311end
13121312
13131313function GEOSisValidDetail (g, flags, reason, location)
13141314 ccall ((:GEOSisValidDetail , libgeos), UInt8, (Ptr{GEOSGeometry}, Cint, Ptr{Cstring}, Ptr{Ptr{GEOSGeometry}}), g, flags, reason, location)
13151315end
13161316
13171317function GEOSGeomType (g)
1318- ccall ((:GEOSGeomType , libgeos), Cstring, (Ptr{GEOSGeometry},), g)
1318+ unsafe_string ( ccall ((:GEOSGeomType , libgeos), Cstring, (Ptr{GEOSGeometry},), g) )
13191319end
13201320
13211321function GEOSGeomTypeId (g)
@@ -1495,7 +1495,7 @@ function GEOSWKTWriter_destroy(writer)
14951495end
14961496
14971497function GEOSWKTWriter_write (writer, g)
1498- ccall ((:GEOSWKTWriter_write , libgeos), Cstring, (Ptr{GEOSWKTWriter}, Ptr{GEOSGeometry}), writer, g)
1498+ unsafe_string ( ccall ((:GEOSWKTWriter_write , libgeos), Cstring, (Ptr{GEOSWKTWriter}, Ptr{GEOSGeometry}), writer, g) )
14991499end
15001500
15011501function GEOSWKTWriter_setTrim (writer, trim)
0 commit comments