我在postgresql数据库中有一个表point
,其类型为point
。
如何选择带坐标((x1,y1),(x2,y2))某个矩形内点的所有记录?
答案 0 :(得分:1)
@Component({
selector: '...',
viewProviders: [...],
templateUrl: '...',
directives: [...],
providers: [...]
})
export class TestComponent {
new google.visualization.Query('...')
.send((response : any)=> {
let datatable = response.getDataTable();
...
results.push(item);
}
this.viewCollection = results; //this will refer to the TestComponent
});
...
}