##polyg=vector ##numpoints=number 10 ##output=output vector ##[Example scripts]=group pts=spsample(polyg,numpoints,type="regular")