<div id="docs-body">
 <div class="section">
  <div class="titlepage">
   <div>
    <div>
     <h3 class="title">
      <a name="gis-wkt-functions">
      </a>
      14.16.3 Functions That Create Geometry Values from WKT Values
     </h3>
    </div>
   </div>
  </div>
  <p>
   These functions take as arguments a Well-Known Text (WKT)
      representation and, optionally, a spatial reference system
      identifier (SRID). They return the corresponding geometry. For a
      description of WKT format, see
   <a class="xref" href="gis-data-formats.html#gis-wkt-format" title="Well-Known Text (WKT) Format">
    Well-Known Text (WKT) Format
   </a>
   .
  </p>
  <p>
   Functions in this section detect arguments in either Cartesian or
      geographic spatial reference systems (SRSs), and return results
      appropriate to the SRS.
  </p>
  <p>
   <a class="link" href="gis-wkt-functions.html#function_st-geomfromtext">
    <code class="literal">
     ST_GeomFromText()
    </code>
   </a>
   accepts a WKT
      value of any geometry type as its first argument. Other functions
      provide type-specific construction functions for construction of
      geometry values of each geometry type.
  </p>
  <p>
   Functions such as
   <a class="link" href="gis-wkt-functions.html#function_st-mpointfromtext">
    <code class="literal">
     ST_MPointFromText()
    </code>
   </a>
   and
   <a class="link" href="gis-wkt-functions.html#function_st-geomfromtext">
    <code class="literal">
     ST_GeomFromText()
    </code>
   </a>
   that accept
      WKT-format representations of
   <code class="literal">
    MultiPoint
   </code>
   values
      permit individual points within values to be surrounded by
      parentheses. For example, both of the following function calls are
      valid:
  </p>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting language-sql"><div class="docs-select-all right" id="sa86016679"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token function">ST_MPointFromText</span><span class="token punctuation">(</span><span class="token string">'MULTIPOINT (1 1, 2 2, 3 3)'</span><span class="token punctuation">)</span>
<span class="token function">ST_MPointFromText</span><span class="token punctuation">(</span><span class="token string">'MULTIPOINT ((1 1), (2 2), (3 3))'</span><span class="token punctuation">)</span></code></pre>
  </div>
  <p>
   Functions such as
   <a class="link" href="gis-wkt-functions.html#function_st-geomfromtext">
    <code class="literal">
     ST_GeomFromText()
    </code>
   </a>
   that accept WKT geometry collection arguments understand both
      OpenGIS
   <code class="literal">
    'GEOMETRYCOLLECTION EMPTY'
   </code>
   standard
      syntax and MySQL
   <code class="literal">
    'GEOMETRYCOLLECTION()'
   </code>
   nonstandard syntax. Functions such as
   <a class="link" href="gis-format-conversion-functions.html#function_st-astext">
    <code class="literal">
     ST_AsWKT()
    </code>
   </a>
   that produce WKT values produce
   <code class="literal">
    'GEOMETRYCOLLECTION
      EMPTY'
   </code>
   standard syntax:
  </p>
  <div class="copytoclipboard-wrapper">
   <pre class="programlisting language-sql"><div class="docs-select-all right" id="sa51638539"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token prompt">mysql&gt;</span> <span class="token keyword">SET</span> <span class="token variable">@s1</span> <span class="token operator">=</span> <span class="token function">ST_GeomFromText</span><span class="token punctuation">(</span><span class="token string">'GEOMETRYCOLLECTION()'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token prompt">mysql&gt;</span> <span class="token keyword">SET</span> <span class="token variable">@s2</span> <span class="token operator">=</span> <span class="token function">ST_GeomFromText</span><span class="token punctuation">(</span><span class="token string">'GEOMETRYCOLLECTION EMPTY'</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token prompt">mysql&gt;</span> <span class="token keyword">SELECT</span> <span class="token function">ST_AsWKT</span><span class="token punctuation">(</span><span class="token variable">@s1</span><span class="token punctuation">)</span><span class="token punctuation">,</span> <span class="token function">ST_AsWKT</span><span class="token punctuation">(</span><span class="token variable">@s2</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token output"><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span></span>
<span class="token output"><span class="token punctuation">|</span> ST_AsWKT(@s1)            <span class="token punctuation">|</span> ST_AsWKT(@s2)            <span class="token punctuation">|</span></span>
<span class="token output"><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span></span>
<span class="token output"><span class="token punctuation">|</span> GEOMETRYCOLLECTION EMPTY <span class="token punctuation">|</span> GEOMETRYCOLLECTION EMPTY <span class="token punctuation">|</span></span>
<span class="token output"><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span></span></code></pre>
  </div>
  <p>
   Unless otherwise specified, functions in this section handle their
      geometry arguments as follows:
  </p>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <p>
      If any geometry argument is
      <code class="literal">
       NULL
      </code>
      or is not
          a syntactically well-formed geometry, or if the SRID argument
          is
      <code class="literal">
       NULL
      </code>
      , the return value is
      <code class="literal">
       NULL
      </code>
      .
     </p>
    </li>
    <li class="listitem">
     <p>
      By default, geographic coordinates (latitude, longitude) are
          interpreted as in the order specified by the spatial reference
          system of geometry arguments. An optional
      <em class="replaceable">
       <code>
        options
       </code>
      </em>
      argument may be given to
          override the default axis order.
      <code class="option">
       options
      </code>
      consists of a list of comma-separated
      <code class="literal">
       <em class="replaceable">
        <code>
         key
        </code>
       </em>
       =
       <em class="replaceable">
        <code>
         value
        </code>
       </em>
      </code>
      .
          The only permitted
      <em class="replaceable">
       <code>
        key
       </code>
      </em>
      value is
      <code class="literal">
       axis-order
      </code>
      , with permitted values of
      <code class="literal">
       lat-long
      </code>
      ,
      <code class="literal">
       long-lat
      </code>
      and
      <code class="literal">
       srid-defined
      </code>
      (the default).
     </p>
     <p>
      If the
      <em class="replaceable">
       <code>
        options
       </code>
      </em>
      argument is
      <code class="literal">
       NULL
      </code>
      , the return value is
      <code class="literal">
       NULL
      </code>
      . If the
      <em class="replaceable">
       <code>
        options
       </code>
      </em>
      argument is invalid, an
          error occurs to indicate why.
     </p>
    </li>
    <li class="listitem">
     <p>
      If an SRID argument refers to an undefined spatial reference
          system (SRS), an
      <a class="ulink" href="/doc/mysql-errors/8.4/en/server-error-reference.html#error_er_srs_not_found" target="_top">
       <code class="literal">
        ER_SRS_NOT_FOUND
       </code>
      </a>
      error occurs.
     </p>
    </li>
    <li class="listitem">
     <p>
      For geographic SRS geometry arguments, if any argument has a
          longitude or latitude that is out of range, an error occurs:
     </p>
     <div class="itemizedlist">
      <ul class="itemizedlist" style="list-style-type: circle; ">
       <li class="listitem">
        <p>
         If a longitude value is not in the range (−180,
              180], an
         <a class="ulink" href="/doc/mysql-errors/8.4/en/server-error-reference.html#error_er_longitude_out_of_range" target="_top">
          <code class="literal">
           ER_LONGITUDE_OUT_OF_RANGE
          </code>
         </a>
         error occurs.
        </p>
       </li>
       <li class="listitem">
        <p>
         If a latitude value is not in the range [−90, 90],
              an
         <a class="ulink" href="/doc/mysql-errors/8.4/en/server-error-reference.html#error_er_latitude_out_of_range" target="_top">
          <code class="literal">
           ER_LATITUDE_OUT_OF_RANGE
          </code>
         </a>
         error occurs.
        </p>
       </li>
      </ul>
     </div>
     <p>
      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.
     </p>
    </li>
   </ul>
  </div>
  <p>
   These functions are available for creating geometries from WKT
      values:
  </p>
  <div class="itemizedlist">
   <ul class="itemizedlist" style="list-style-type: disc; ">
    <li class="listitem">
     <a name="function_st-geomcollfromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-geomcollfromtext">
       <code class="literal">
        ST_GeomCollFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-geomcollfromtext">
       <code class="literal">
        ST_GeometryCollectionFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-geomcollfromtext">
       <code class="literal">
        ST_GeomCollFromTxt(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197995056">
     </a>
     <a class="indexterm" name="idm46045197993984">
     </a>
     <p>
      Constructs a
      <code class="literal">
       GeometryCollection
      </code>
      value using
          its WKT representation and SRID.
     </p>
     <p>
      These functions handle their arguments as described in the
          introduction to this section.
     </p>
     <div class="copytoclipboard-wrapper">
      <pre class="programlisting language-sql"><div class="docs-select-all right" id="sa12758941"><div class="copy-help left">Press ⌘+C to copy</div> <div class="right"><button class="clipboard-btn" title="Copy to Clipboard"><span class="icon-clipboard"></span></button></div></div><code class="language-sql"><span class="token prompt">mysql&gt;</span> <span class="token keyword">SET</span> <span class="token variable">@g</span> <span class="token operator">=</span> <span class="token string">"MULTILINESTRING((10 10, 11 11), (9 9, 10 10))"</span><span class="token punctuation">;</span>
<span class="token prompt">mysql&gt;</span> <span class="token keyword">SELECT</span> <span class="token function">ST_AsText</span><span class="token punctuation">(</span><span class="token function">ST_GeomCollFromText</span><span class="token punctuation">(</span><span class="token variable">@g</span><span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
<span class="token output"><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span></span>
<span class="token output"><span class="token punctuation">|</span> ST_AsText(ST_GeomCollFromText(@g))         <span class="token punctuation">|</span></span>
<span class="token output"><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span></span>
<span class="token output"><span class="token punctuation">|</span> MULTILINESTRING((10 10,11 11),(9 9,10 10)) <span class="token punctuation">|</span></span>
<span class="token output"><span class="token punctuation">+</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">-</span><span class="token punctuation">+</span></span></code></pre>
     </div>
    </li>
    <li class="listitem">
     <a name="function_st-geomfromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-geomfromtext">
       <code class="literal">
        ST_GeomFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-geomfromtext">
       <code class="literal">
        ST_GeometryFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197978592">
     </a>
     <a class="indexterm" name="idm46045197977520">
     </a>
     <p>
      Constructs a geometry value of any type using its WKT
          representation and SRID.
     </p>
     <p>
      These functions handle their arguments as described in the
          introduction to this section.
     </p>
    </li>
    <li class="listitem">
     <a name="function_st-linefromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-linefromtext">
       <code class="literal">
        ST_LineFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-linefromtext">
       <code class="literal">
        ST_LineStringFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197966544">
     </a>
     <a class="indexterm" name="idm46045197965472">
     </a>
     <p>
      Constructs a
      <code class="literal">
       LineString
      </code>
      value using its WKT
          representation and SRID.
     </p>
     <p>
      These functions handle their arguments as described in the
          introduction to this section.
     </p>
    </li>
    <li class="listitem">
     <a name="function_st-mlinefromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-mlinefromtext">
       <code class="literal">
        ST_MLineFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-mlinefromtext">
       <code class="literal">
        ST_MultiLineStringFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197953904">
     </a>
     <a class="indexterm" name="idm46045197952832">
     </a>
     <p>
      Constructs a
      <code class="literal">
       MultiLineString
      </code>
      value using
          its WKT representation and SRID.
     </p>
     <p>
      These functions handle their arguments as described in the
          introduction to this section.
     </p>
    </li>
    <li class="listitem">
     <a name="function_st-mpointfromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-mpointfromtext">
       <code class="literal">
        ST_MPointFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-mpointfromtext">
       <code class="literal">
        ST_MultiPointFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197941104">
     </a>
     <a class="indexterm" name="idm46045197940032">
     </a>
     <p>
      Constructs a
      <code class="literal">
       MultiPoint
      </code>
      value using its WKT
          representation and SRID.
     </p>
     <p>
      These functions handle their arguments as described in the
          introduction to this section.
     </p>
    </li>
    <li class="listitem">
     <a name="function_st-mpolyfromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-mpolyfromtext">
       <code class="literal">
        ST_MPolyFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-mpolyfromtext">
       <code class="literal">
        ST_MultiPolygonFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197928400">
     </a>
     <a class="indexterm" name="idm46045197927328">
     </a>
     <p>
      Constructs a
      <code class="literal">
       MultiPolygon
      </code>
      value using its
          WKT representation and SRID.
     </p>
     <p>
      These functions handle their arguments as described in the
          introduction to this section.
     </p>
    </li>
    <li class="listitem">
     <a name="function_st-pointfromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-pointfromtext">
       <code class="literal">
        ST_PointFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197918176">
     </a>
     <p>
      Constructs a
      <code class="literal">
       Point
      </code>
      value using its WKT
          representation and SRID.
     </p>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-pointfromtext">
       <code class="literal">
        ST_PointFromText()
       </code>
      </a>
      handles its
          arguments as described in the introduction to this section.
     </p>
    </li>
    <li class="listitem">
     <a name="function_st-polyfromtext">
     </a>
     <p>
      <a class="link" href="gis-wkt-functions.html#function_st-polyfromtext">
       <code class="literal">
        ST_PolyFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
      ,
      <a class="link" href="gis-wkt-functions.html#function_st-polyfromtext">
       <code class="literal">
        ST_PolygonFromText(
        <em class="replaceable">
         <code>
          wkt
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          srid
         </code>
        </em>
        [,
        <em class="replaceable">
         <code>
          options
         </code>
        </em>
        ]])
       </code>
      </a>
     </p>
     <a class="indexterm" name="idm46045197905312">
     </a>
     <a class="indexterm" name="idm46045197904240">
     </a>
     <p>
      Constructs a
      <code class="literal">
       Polygon
      </code>
      value using its WKT
          representation and SRID.
     </p>
     <p>
      These functions handle their arguments as described in the
          introduction to this section.
     </p>
    </li>
   </ul>
  </div>
 </div>
 <br/>
</div>
