zoukankan      html  css  js  c++  java
  • Oracle Spatial 创建空间表、添加空间原表信息、添加删除空间索引

    一、创建空间表

        创建一个空间表tbsvrc_buffer_t ,SQL如下:

    create table tbsvrc_buffer_t
    (
      ID      VARCHAR2(50) not null,
      SHAPE   MDSYS.SDO_GEOMETRY
    ) 其中SHAPE为SDO_GEOMETRY类型

    二、添加空间元表信息

      //插入空间原表信息
     insert into mdsys.sdo_geom_metadata_table(sdo_owner,sdo_table_name,
                                         sdo_column_name,
                                         sdo_diminfo,sdo_srid) values('GEOCATALOG','TBSVRC_BUFFER_T', 'SHAPE',mdsys.sdo_dim_array(mdsys.sdo_dim_element('x',
                                                 -180,
                                                 180,
                                                 0.000005),
                           mdsys.sdo_dim_element('y',
                                                 -90,
                                                 90,
                                                 0.000005),
                           mdsys.sdo_dim_element('z', 0, 0, 0.000005)),8307)

    三、添加空间索引

      //创建空间索引                    
      create index spatial_buffer_index on tbsvrc_buffer_t(shape) indextype is mdsys.SPATIAL_INDEX

    四、删除空间索引

      //删除空间索引
      DROP INDEX    spatial_buffer_index   

  • 相关阅读:
    Auto Complete with Redis
    老男孩 movie
    e人e本
    邀请大家使用dropbox
    mac Espresso
    it网站
    To Trie or not to Trie – a comparison of efficient data structures
    [转载]提高Python程序的运行速度_李小红_新浪博客
    TSTTernary Search TreeCreating An English Dictionary for lookup and spell checking | CracktheInterview
    平衡二叉搜索树
  • 原文地址:https://www.cnblogs.com/likehua/p/3459956.html
Copyright © 2011-2022 走看看