激情五月天婷婷,亚洲愉拍一区二区三区,日韩视频一区,a√天堂中文官网8

<ul id="buwfs"><strike id="buwfs"><strong id="buwfs"></strong></strike></ul>
    <output id="buwfs"></output>
  • <dfn id="buwfs"><source id="buwfs"></source></dfn>
      <dfn id="buwfs"><td id="buwfs"></td></dfn>
      <div id="buwfs"><small id="buwfs"></small></div>
      <dfn id="buwfs"><source id="buwfs"></source></dfn>
      1. <dfn id="buwfs"><td id="buwfs"></td></dfn>
        始創(chuàng)于2000年 股票代碼:831685
        咨詢熱線:0371-60135900 注冊有禮 登錄
        • 掛牌上市企業(yè)
        • 60秒人工響應(yīng)
        • 99.99%連通率
        • 7*24h人工
        • 故障100倍補(bǔ)償
        全部產(chǎn)品
        您的位置: 網(wǎng)站首頁 > 幫助中心>文章內(nèi)容

        Oracle spatial 空間數(shù)據(jù)SQL查詢操作相關(guān)實(shí)例

        發(fā)布時間:  2012/9/4 17:37:35

        Oracle spatial 空間數(shù)據(jù)SQL查詢操作相關(guān)實(shí)例

        --select dlbm,dlmc,trim(zldwdm) as zldwdm_1 from gzdt where nvl(zldwdm,'t')='t' or zldwdm='';
        update gzdt set ZLDWDM='510113106' where  nvl(zldwdm,'t')='t' or zldwdm='';-
         

        commit;
        delete from gzdt where ZLDWDM like '510113106%'
        commit;
        //獲取空間面的面積
        update gzdt set mj=mdsys.sdo_geom.sdo_area(geometry,0.0000000005);
        //獲取空間線的長度
        update xzdw set cd=mdsys.sdo_geom.sdo_length(geometry,0.0000000005);

        //刪除空間數(shù)據(jù) 用SQL語句
        //sql insert Oracle spatial object  耕地
        delete from spatial;
        insert into spatial(dlbm,geometry)
        select dlbm,geometry from v_dltb where dlbm in('011','012','013') ;
        commit;

        //插入空間數(shù)據(jù) 用SQL語句
        insert into spatial(dlbm,geometry)
        select dlbm,geometry from v_dltb where dlbm in('011','012','013') ;
        commit;

        //創(chuàng)建空間字段索引 Oracle spatial table
        //======================================
        drop index index_spatial_v_gb_gdbhdk_h;
        drop index index_spatial_v_jj_xzq_h;
        drop index index_spatial_v_tdlygh_ytfq_xz_e;
        drop index index_spatial_v_tdlyxz_dltb_h;
        drop index index_spatial_v_tdly_nydfddj_k;


        create index v_gb_gdbhdk_h_spatial_index      on v_gb_gdbhdk_h(geometry)        indextype mdsys.spatial_index;
        create index v_jj_xzq_h_spatial_index         on v_jj_xzq_h(geometry)           indextype mdsys.spatial_index;
        create index v_tdlygh_ytfq_xz_e_spatial_index on v_tdlygh_ytfq_xz_e(geometry)   indextype mdsys.spatial_index;
        create index v_tdlyxz_dltb_h_spatial_index    on v_tdlyxz_dltb_h(geometry)      indextype mdsys.spatial_index;
        create index v_tdly_nydfddj_k_spatial_index   on v_tdly_nydfddj_k(geometry)     indextype mdsys.spatial_index;
        //======================================


        //創(chuàng)建字段索引
        //=======================================
        drop   index index_fd_v_gb_gdbhdk_h_xzqdm;
        drop   index index_fd_v_jj_xzq_h_xzqdm;
        drop   index index_fd_v_tdlygh_ytfq_xz_e_xzqdm;
        drop   index index_fd_v_tdlyxz_dltb_h_zldwdm;
        drop   index index_fd_v_tdly_nydfddj_k_xzdm;


        create index index_fd_v_gb_gdbhdk_h_xzqdm         on v_gb_gdbhdk_h(xzqdm);
        create index index_fd_v_jj_xzq_h_xzqdm            on v_jj_xzq_h(xzqdm);
        create index index_fd_v_tdlygh_ytfq_xz_e_xzqdm    on v_tdlygh_ytfq_xz_e(xzqdm);
        create index index_fd_v_tdlyxz_dltb_h_zldwdm      on v_tdlyxz_dltb_h(zldwdm);
        create index index_fd_v_tdly_nydfddj_k_xzdm       on v_tdly_nydfddj_k(xzdm);
        //=======================================


        //讀取空間數(shù)據(jù)字段sql geometry
        select DLBM,dlmc,
               mdsys.sdo_geom.sdo_area(geometry,0.0000000005) as geo_mj,
               sdo_util.getnumelem(geometry) as num_elem,
               sdo_util.getVertices(geometry) as Vertices,
               sdo_util.GetNumRings(geometry) as Num_Rings,
               sdo_util.to_gmlgeometry(geometry) as gmlgeo,
               geometry
        from v_dltb


        //兩空間圖層相交運(yùn)算
        //任意相交運(yùn)算mask=anyinteract
        delete from gzdt;
        insert into gzdt(dlbm,geometry)
        select a.dlbm,
             SDO_GEOM.SDO_INTERSECTION(a.geometry, b.geometry, 0.0001) as geometry
        from v_dltb as a
             v_ytfq as b
        where sdo_relate(a.geometry,b.geometry,'mask=ANYINTERACT')='TRUE'


        //在內(nèi)部運(yùn)算mask=inside
        delete from gzdt;
        insert into gzdt(dlbm,geometry)
        select a.dlbm,
             SDO_GEOM.SDO_INTERSECTION(a.geometry, b.geometry, 0.0001) as geometry
        from v_dltb as a
             v_ytfq as b
        where sdo_relate(a.geometry,b.geometry,'mask=INSIDE')='TRUE'

         


        //dltb_jbnt疊加分析
        select * from v_dltb
        where dlbm in('011','012','013') and dldwdm like '510112106%';
        //
        select d.dlbm,d.dlmc,
               d.tbmj,d.tbdlmj,d.xzdwmj,d.lxdwmj,d.tkmj,
               mdsys.sdo_geom.sdo_area(d.geometry,0.0000000005) as geo_mj,
               sdo_util.getnumelem(d.geometry) as num_elem,
               sdo_util.getVertices(d.geometry) as Vertices,
               sdo_util.GetNumRings(d.geometry) as Num_Rings,
               sdo_util.to_gmlgeometry(d.geometry) as gmlgeo,
               SDO_GEOM.SDO_INTERSECTION(d.geometry, y.geometry, 0.0001) as geometry
        from v_dltb d,
             v_ytfq y
        where  d.dldwdm like '510112106%'  and  (d.dlbm in('021') or d.dlbz in('k','K')) and
               y.xzqdm like '510112%' and
               mdsys.sdo_geom.relate(d.geometry,'INSIDE',y.geometry,0.0001)='INSIDE';
        //提取v_gbjj圖層有效幾何圖形數(shù)據(jù)
        select * from v_gbjj
        where sdo_geom.validate_geometry_with_context(GEOMETRY,0.0001)='TRUE'
        //提取v_gbjj圖層無效幾何圖形數(shù)據(jù)
        select * from v_gbjj
        where sdo_geom.validate_geometry_with_context(GEOMETRY,0.0001)<>'TRUE'
        //==the==end==      


        本文出自:億恩科技【mszdt.com】

        服務(wù)器租用/服務(wù)器托管中國五強(qiáng)!虛擬主機(jī)域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]

      2. 您可能在找
      3. 億恩北京公司:
      4. 經(jīng)營性ICP/ISP證:京B2-20150015
      5. 億恩鄭州公司:
      6. 經(jīng)營性ICP/ISP/IDC證:豫B1.B2-20060070
      7. 億恩南昌公司:
      8. 經(jīng)營性ICP/ISP證:贛B2-20080012
      9. 服務(wù)器/云主機(jī) 24小時售后服務(wù)電話:0371-60135900
      10. 虛擬主機(jī)/智能建站 24小時售后服務(wù)電話:0371-60135900
      11. 專注服務(wù)器托管17年
        掃掃關(guān)注-微信公眾號
        0371-60135900
        Copyright© 1999-2019 ENKJ All Rights Reserved 億恩科技 版權(quán)所有  地址:鄭州市高新區(qū)翠竹街1號總部企業(yè)基地億恩大廈  法律顧問:河南亞太人律師事務(wù)所郝建鋒、杜慧月律師   京公網(wǎng)安備41019702002023號
          0
         
         
         
         

        0371-60135900
        7*24小時客服服務(wù)熱線