SuperMap.Web.iServerJava6R.Bridge.ToGeometry C# (CSharp) Method

ToGeometry() public static method

${iServerJava6R_Bridge_method_ServerGeometryToGeometry_D}
public static ToGeometry ( this geo ) : Geometry
geo this ${iServerJava6R_Bridge_method_ServerGeometryToGeometry_param_geo}
return SuperMap.Web.Core.Geometry
        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;
        }