SQL Server 2008空间数据应用系列七:基于Bing Maps(Silverlight(6)
来源:未知 责任编辑:责任编辑 发表时间:2013-11-17 14:38 点击:次
if (geo.RingN(j).STNumPoints() > 1)
{
sb.Append("<m:MapPolygon xmlns:m=\"clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl\"");
sb.Append(" Fill=\"Red\" Locations=\"");
for (int k = 1; k <= geo.RingN(j).STNumPoints(); k++)
{
if (k > 1) sb.Append(" ");
sb.Append(String.Format("{0:0.#####},{1:0.#####}",
(double)geo.RingN(j).STPointN(k).Lat,
(double)geo.RingN(j).STPointN(k).Long));
}
{
sb.Append("<m:MapPolygon xmlns:m=\"clr-namespace:Microsoft.Maps.MapControl;assembly=Microsoft.Maps.MapControl\"");
sb.Append(" Fill=\"Red\" Locations=\"");
for (int k = 1; k <= geo.RingN(j).STNumPoints(); k++)
{
if (k > 1) sb.Append(" ");
sb.Append(String.Format("{0:0.#####},{1:0.#####}",
(double)geo.RingN(j).STPointN(k).Lat,
(double)geo.RingN(j).STPointN(k).Long));
}
相关新闻>>
最新推荐更多>>>
- 发表评论
-
- 最新评论 更多>>