func (this *CoordSeq) AsPoint(handle *Geos) (*Geom, error) { geom := C.GEOSGeom_createPoint_r(handle.v, this.v) if geom == nil { return nil, CreateError("unable to create Point") } return &Geom{geom}, nil }
func cGEOSGeom_createPoint(s *C.GEOSCoordSequence) *C.GEOSGeometry { handlemu.Lock() defer handlemu.Unlock() return C.GEOSGeom_createPoint_r(handle, s) }