Exemple #1
0
func (this *Geos) AsWkt(geom *Geom) string {
	str := C.GEOSGeomToWKT_r(this.v, geom.v)
	if str == nil {
		return ""
	}
	result := C.GoString(str)
	C.free(unsafe.Pointer(str))
	return result
}
Exemple #2
0
func cGEOSGeomToWKT(g *C.GEOSGeometry) *C.char {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSGeomToWKT_r(handle, g)
}