码迷,mamicode.com
首页 > Windows程序 > 详细

C# SDO_GEOMETRY

时间:2019-04-20 00:16:52      阅读:298      评论:0      收藏:0      [点我收藏+]

标签:char   NPU   geo   tty   into   route   man   comm   obj   

OracleParameter endGeometry = cmd.CreateParameter();
endGeometry.OracleDbType = OracleDbType.Object;
endGeometry.UdtTypeName = "MDSYS.SDO_GEOMETRY";
endGeometry.Value = routeSegment.endPointGeometry;
endGeometry.ParameterName = "P_END_GEOM";    

parameter.Add(endGeometry);   
 cmd = new OracleCommand()
    cmd.Connection = con;
    cmd.CommandType = CommandType.Text;
    cmd.CommandText = "insert into SHAPE_SDO (CMS,POLY) values (:CMS,:POLY)";
    cmd.Parameters.Clear();
    cmd.ArrayBindCount = allRecord.Count;

    cmd.Parameters.Add(":CMS", OracleDbType.Varchar2, CMS.ToArray(), ParameterDirection.Input);

    OracleParameter oracle_SDO_Param = new OracleParameter();
            oracle_SDO_Param.OracleDbType = OracleDbType.Object;
            oracle_SDO_Param.UdtTypeName = "MDSYS.SDO_GEOMETRY";
            oracle_SDO_Param.ParameterName = "POLY";
            oracle_SDO_Param.Value = POLY.ToArray();
            cmd.Parameters.Add(oracle_SDO_Param);

C# SDO_GEOMETRY

标签:char   NPU   geo   tty   into   route   man   comm   obj   

原文地址:https://www.cnblogs.com/googlegis/p/10739510.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!