SQL Servr 2008空间数据应用系列六:基于SQLCRL的空间数据可编程(4)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-17 14:38 点击:次
"
+ "-113.994140625 37.0200982013681, -109.05029296875 37.0200982013681, -109.09423828125 41.0130657870063, "
+ "-111.07177734375 41.0462168145206, -111.07177734375 42.0003251483162, -114.01611328125 42.0003251483162))",
111)),
4326);
var sql = "insert Cities (CityName,CityLocation) values ('test','" + polygon.ToString() + "')";
InsertToDB(sql);
}
private static void InsertToDB(string sql)
{
using (var conn = new SqlConnection(ConfigurationManager.AppSettings["SQL2008"]))
{
if (conn.State
+ "-113.994140625 37.0200982013681, -109.05029296875 37.0200982013681, -109.09423828125 41.0130657870063, "
+ "-111.07177734375 41.0462168145206, -111.07177734375 42.0003251483162, -114.01611328125 42.0003251483162))",
111)),
4326);
var sql = "insert Cities (CityName,CityLocation) values ('test','" + polygon.ToString() + "')";
InsertToDB(sql);
}
private static void InsertToDB(string sql)
{
using (var conn = new SqlConnection(ConfigurationManager.AppSettings["SQL2008"]))
{
if (conn.State
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>