Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
タイプ文字列を定義している文字列を解析します。
ST_Geometry::ST_SRIDFromBaseType(base-type-str)
base-type-str
VARCHAR(128)
ベースタイプ文字列を含む文字列
INT タイプ文字列から SRID を返します。文字列で SRID が指定されていない場合は NULL を返します。タイプ文字列が有効なジオメトリタイプ文字列でない場合は、エラーが返されます。
ST_Geometry::ST_SRIDFromBaseType メソッドを使用して、タイプ文字列の定義から SRID を解析できます。
SQL/MM (ISO/IEC 13249-3: 2006) ベンダー拡張
次の例では、結果として NULL を返します。
NULL
SELECT ST_Geometry::ST_SRIDFromBaseType('ST_Geometry')
次の例では、結果として 4326 を返します。
4326
SELECT ST_Geometry::ST_SRIDFromBaseType('ST_Geometry(SRID=4326)')