public static SuperMap.WinRT.Core.Geometry ToGeometry(this ServerGeometry geo)
{
if (geo != null)
{
if (geo.Type == ServerGeometryType.POINT)
{
return geo.ToGeoPoint();
}
else if (geo.Type == ServerGeometryType.REGION)
{
return geo.ToGeoRegion();
}
else if (geo.Type == ServerGeometryType.LINE || geo.Type == ServerGeometryType.LINEM)
{
return geo.ToGeoLine();
}
}
return null;
}