You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Convert a geometry to JSON format
func (geom Geometry) ToJSON() string {
val := C.OGR_G_ExportToJson(geom.cval)
defer C.free(unsafe.Pointer(val)) // this line maybe is missing
return C.GoString(val)
}
The text was updated successfully, but these errors were encountered:
// Convert a geometry to JSON format
func (geom Geometry) ToJSON() string {
val := C.OGR_G_ExportToJson(geom.cval)
defer C.free(unsafe.Pointer(val)) // this line maybe is missing
return C.GoString(val)
}
The text was updated successfully, but these errors were encountered: