<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>idea Convert M-enabled ST_GEOMETRY to WKT — using proper OGC syntax in ArcGIS Enterprise Ideas</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-ideas/convert-m-enabled-st-geometry-to-wkt-using-proper/idi-p/1163661</link>
    <description>&lt;P&gt;I have an M-enabled SDE.ST_GEOMETRY polyline FC in an Oracle 18c EGDB.&lt;/P&gt;&lt;P&gt;If I were to convert the ST_GEOMETRY shape to WKT, it would look like this:&lt;/P&gt;&lt;PRE&gt;select sde.st_astext(shape) as st_to_wkt from test_st_geom&lt;BR /&gt;
MULTILINESTRING &lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;/FONT&gt; (( 0.0 5.0 -100000.0, 10.0 10.0 -100000.0, 30.0 0.0 -100000.0),( 50.0 10.0 -100000.0, 60.0 10.0 -100000.0))&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The st_astext() function adds an extra 'M' to the text. That extra 'M' doesn't seem to comply with the OGC WKT format.&amp;nbsp;&lt;SPAN&gt;I can't find any OGC/WKT documentation that says there should be an extra 'M' in there for M-enabled geometries.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;That extra 'M' causes problems when trying to convert the text from st_astext() to other geomtery types.&lt;BR /&gt;Example:&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/428735/convert-sde-st-geometry-to-sdo-geometry-using-sql" target="_self"&gt;Convert M-enabled SDE.ST_GEOMETRY to SDO_GEOMETRY using SQL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could Esri give us a way to&amp;nbsp;convert M-enabled ST_GEOMETRY to WKT &lt;U&gt;using proper OGC syntax&lt;/U&gt;?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2022 12:06:20 GMT</pubDate>
    <dc:creator>Bud</dc:creator>
    <dc:date>2022-04-13T12:06:20Z</dc:date>
    <item>
      <title>Convert M-enabled ST_GEOMETRY to WKT — using proper OGC syntax</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/convert-m-enabled-st-geometry-to-wkt-using-proper/idi-p/1163661</link>
      <description>&lt;P&gt;I have an M-enabled SDE.ST_GEOMETRY polyline FC in an Oracle 18c EGDB.&lt;/P&gt;&lt;P&gt;If I were to convert the ST_GEOMETRY shape to WKT, it would look like this:&lt;/P&gt;&lt;PRE&gt;select sde.st_astext(shape) as st_to_wkt from test_st_geom&lt;BR /&gt;
MULTILINESTRING &lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;/FONT&gt; (( 0.0 5.0 -100000.0, 10.0 10.0 -100000.0, 30.0 0.0 -100000.0),( 50.0 10.0 -100000.0, 60.0 10.0 -100000.0))&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;The st_astext() function adds an extra 'M' to the text. That extra 'M' doesn't seem to comply with the OGC WKT format.&amp;nbsp;&lt;SPAN&gt;I can't find any OGC/WKT documentation that says there should be an extra 'M' in there for M-enabled geometries.&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;That extra 'M' causes problems when trying to convert the text from st_astext() to other geomtery types.&lt;BR /&gt;Example:&amp;nbsp;&lt;A href="https://gis.stackexchange.com/questions/428735/convert-sde-st-geometry-to-sdo-geometry-using-sql" target="_self"&gt;Convert M-enabled SDE.ST_GEOMETRY to SDO_GEOMETRY using SQL&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Could Esri give us a way to&amp;nbsp;convert M-enabled ST_GEOMETRY to WKT &lt;U&gt;using proper OGC syntax&lt;/U&gt;?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:06:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/convert-m-enabled-st-geometry-to-wkt-using-proper/idi-p/1163661</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-04-13T12:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert M-enabled ST_GEOMETRY to WKT — using proper OGC syntax</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-ideas/convert-m-enabled-st-geometry-to-wkt-using-proper/idc-p/1163829#M2804</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;After digging a bit more, I &lt;U&gt;&lt;EM&gt;did&lt;/EM&gt;&lt;/U&gt; come across a PDF that mentions 'MULTILINESTRING &lt;FONT color="#008000"&gt;&lt;STRONG&gt;M&lt;/STRONG&gt;&lt;/FONT&gt;':&lt;/P&gt;&lt;P&gt;&lt;A href="https://portal.ogc.org/files/?artifact_id=25355" target="_blank" rel="noopener nofollow noreferrer"&gt;https://portal.ogc.org/files/?artifact_id=25355&lt;/A&gt;&amp;nbsp;(PDF download). Search the PDF for "&lt;SPAN&gt;MULTILINESTRING&amp;nbsp;&lt;/SPAN&gt;M"&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So, from that limited evidence, I suppose the extra M might be the correct syntax after all. Maybe the problem is SDO_GEOMETRY, not ST_GEOMETRY.&lt;/P&gt;&lt;P&gt;Could Esri delete this idea? I don’t think I can delete it myself.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 13 Apr 2022 12:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-ideas/convert-m-enabled-st-geometry-to-wkt-using-proper/idc-p/1163829#M2804</guid>
      <dc:creator>Bud</dc:creator>
      <dc:date>2022-04-13T12:08:56Z</dc:date>
    </item>
  </channel>
</rss>

