Example #1
0
func (this *Geos) Prepare(geom *Geom) *PreparedGeom {
	prep := C.GEOSPrepare_r(this.v, geom.v)
	if prep == nil {
		return nil
	}
	return &PreparedGeom{prep}
}
Example #2
0
func cGEOSPrepare(g *C.GEOSGeometry) *C.GEOSPreparedGeometry {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSPrepare_r(handle, g)
}