Conditions for Casts to Point • If a longitude value is not in the range ( − 180, 180], an ER_GEOMETRY_PARAM_LONGITUDE_OUT_OF_RANGE  error occurs. • If a latitude value is not in the range [ − 90, 90], an ER_GEOMETRY_PARAM_LATITUDE_OUT_OF_RANGE  error occurs. •If the expression to cast is a well-formed geometry of type  Point , the function result is that  Point . •If the expression to cast is a well-formed geometry of type  MultiPoint  containing a single Point , the function result is that  Point . If the expression contains more than one  Point , an ER_INVALID_CAST_TO_GEOMETRY  error occurs. •If the expression to cast is a well-formed geometry of type  GeometryCollection  containing only a single  Point , the function result is that  Point . If the expression is empty, contains more than one Point , or contains other geometry types, an  ER_INVALID_CAST_TO_GEOMETRY  error occurs. •If the expression to cast is a well-formed geometry of type other than  Point ,  MultiPoint , GeometryCollection , an  ER_INVALID_CAST_TO_GEOMETRY  error occurs. •If the expression to cast is a well-formed geometry of type  LineString , the function result is that LineString . •If the expression to cast is a well-formed geometry of type  Polygon  that has no inner rings, the function result is a  LineString  containing the points of the outer ring in the same order. If the expression has inner rings, an  ER_INVALID_CAST_TO_GEOMETRY  error occurs. •If the expression to cast is a well-formed geometry of type  MultiPoint  containing at least two points, the function result is a  LineString  containing the points of the  MultiPoint in the order they appear in the expression. If the expression contains only one  Point , an ER_INVALID_CAST_TO_GEOMETRY  error occurs. •If the expression to cast is a well-formed geometry of type  MultiLineString  containing a single LineString , the function result is that  LineString . If the expression contains more than one LineString , an  ER_INVALID_CAST_TO_GEOMETRY  error occurs. •If the expression to cast is a well-formed geometry of type  GeometryCollection , containing only a single  LineString , the function result is that  LineString . If the expression 2241 Ranges shown are in degrees. If an SRS uses another unit, the range uses the corresponding values in its unit. The exact range limits deviate slightly due to floating-point arithmetic. These conditions apply when the cast result type is  Point : These conditions apply when the cast result type is  LineString : Conditions for Casts to Point Conditions for Casts to LineString