示例#1
0
文件: ops.go 项目: Rachine/imposm3
func (this *Geos) Buffer(geom *Geom, size float64) *Geom {
	buffered := C.GEOSBuffer_r(this.v, geom.v, C.double(size), 50)
	if buffered == nil {
		return nil
	}
	return &Geom{buffered}
}
示例#2
0
func cGEOSBuffer(g1 *C.GEOSGeometry, width C.double, quadsegs C.int) *C.GEOSGeometry {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSBuffer_r(handle, g1, width, quadsegs)
}