public static SuperMap.Web.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)
{
return geo.ToGeoLine();
}
else if (geo.Type == ServerGeometryType.LINEM)
{
return geo.ToRoute();
}
}
return null;
}