internal static bool IsSpatialType(PrimitiveType type) { if (!Helper.IsGeographicType(type)) { return(Helper.IsGeometricType(type)); } return(true); }
internal static PrimitiveType GetSpatialNormalizedPrimitiveType(EdmType type) { PrimitiveType type1 = (PrimitiveType)type; if (Helper.IsGeographicType(type1) && type1.PrimitiveTypeKind != PrimitiveTypeKind.Geography) { return(PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Geography)); } if (Helper.IsGeometricType(type1) && type1.PrimitiveTypeKind != PrimitiveTypeKind.Geometry) { return(PrimitiveType.GetEdmPrimitiveType(PrimitiveTypeKind.Geometry)); } return(type1); }
internal static bool IsSpatialType(EdmType type, out bool isGeographic) { PrimitiveType type1 = type as PrimitiveType; if (type1 == null) { isGeographic = false; return(false); } isGeographic = Helper.IsGeographicType(type1); if (!isGeographic) { return(Helper.IsGeometricType(type1)); } return(true); }