选择矩形

时间:2016-07-15 11:06:09

标签: postgresql

我在postgresql数据库中有一个表point,其类型为point

如何选择带坐标((x1,y1),(x2,y2))某个矩形内点的所有记录?

1 个答案:

答案 0 :(得分:1)

@> operator

@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
    });
...
}