Parses a text string representing a geometry and creates a geometry value of the appropriate type.
This method is used by the server when evaluating a cast from a character string to a geometry type.
The server detects the format of the input string.
Some input formats contain an SRID definition. If provided, the srid
parameter must match any value taken from the input string.