Method ParseIfSupported
ParseIfSupported(String)
Parses the wktString, returning the defined IShape. If it can't because the shape name is unknown or an empty or blank string was passed, then it returns null. If the WKT starts with a supported shape but contains an inner unsupported shape then it will result in a ParseException.
Declaration
public virtual IShape ParseIfSupported(string wktString)
Parameters
Type | Name | Description |
---|---|---|
System.String | wktString | non-null, can be empty or have surrounding whitespace |
Returns
Type | Description |
---|---|
IShape | IShape, null if unknown / unsupported shape. |
Exceptions
Type | Condition |
---|---|
ParseException | Thrown if there is an error in the IShape definition |