【发布时间】:2016-06-02 14:53:24
【问题描述】:
我在从 Sql Server 地理数据转换为 Silverlight XAML 时遇到了一些问题。
/* Database query spatial data structure for the SQL Server spatial data types object */
var geo = SqlGeography.STGeomFromText (new SqlChars(new SqlString(polygon.ToString())), 4326);
/* Spatial data structure for the Bing Maps graphical objects (polygons) XAML text, to resolve Xaml directly returned to the client in the Silverlight application object. */
for (int j = 0; j < geo.NumRings(); j++)
问题:geo.NumRings() 方法返回 null,但我的多边形对象中有 2 个环。
下面的打印屏幕应该解释得更好
【问题讨论】:
标签: c# sql-server silverlight bing-maps sqlgeography