func (this *CoordSeq) AsLinearRing(handle *Geos) (*Geom, error) { ring := C.GEOSGeom_createLinearRing_r(handle.v, this.v) if ring == nil { return nil, CreateError("unable to create LinearRing") } return &Geom{ring}, nil }
func cGEOSGeom_createLinearRing(s *C.GEOSCoordSequence) *C.GEOSGeometry { handlemu.Lock() defer handlemu.Unlock() return C.GEOSGeom_createLinearRing_r(handle, s) }