postgresql和oracle创设空间索引

postgresql和oracle创建空间索引

注意事项:必须索引列必须用图层格式

postgresql-geometry,oracle-SDO_GEOMETRY

postgresql:

CREATE INDEX tl1_shap
  ON tl1
  USING gist
  (shapedata );

 oracle:

-- Create/Recreate indexes 
create index tl_shap on TL913 (shapedata);

 

postgresql手动添加方法:看附件