Esempio n. 1
0
func (this *Geos) CreateCoordSeq(size, dim uint32) (*CoordSeq, error) {
	result := C.GEOSCoordSeq_create_r(this.v, C.uint(size), C.uint(dim))
	if result == nil {
		return nil, CreateError("could not create CoordSeq")
	}
	return &CoordSeq{result}, nil
}
Esempio n. 2
0
func cGEOSCoordSeq_create(size C.uint, dims C.uint) *C.GEOSCoordSequence {
	handlemu.Lock()
	defer handlemu.Unlock()
	return C.GEOSCoordSeq_create_r(handle, size, dims)
}