<?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>topic Using st_geomfromwkb in PL/SQL in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/using-st-geomfromwkb-in-pl-sql/m-p/771607#M998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to do some tests on a big table of sdo_geometries.&lt;/P&gt;&lt;P&gt;For that purpose I want to "translate" the oracle sdo_geometries to sde.st_geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pure SQL I can simply do that like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;... sde.st_geomfromwkb(sdo_util.to_wkbgeometry(a.SHAPE), 25832) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my PL/SQL function I tried it this way:&lt;/P&gt;&lt;P&gt;DECLARE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;sdegeom sde.ST_GEOMETRY;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sdegeom :=&amp;nbsp; SDE.ST_GEOMETRY_OPERATORS.st_geomfromwkb(sdo_util.to_wkbgeometry(rec.SHAPE), 25832);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get this error:&lt;/P&gt;&lt;P&gt;PLS-00224: Objekt 'SDE.ST_GEOMETRY_OPERATORS.ST_GEOMFROMWKB' muss für diese Verwendungsart Type-Funktion oder Array sein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not really famliliar with PL/SQL, so any advice would be nice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to translate from sdo_geom to st_geometry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 15:17:10 GMT</pubDate>
    <dc:creator>TOPOGRAPHICS</dc:creator>
    <dc:date>2017-07-17T15:17:10Z</dc:date>
    <item>
      <title>Using st_geomfromwkb in PL/SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/using-st-geomfromwkb-in-pl-sql/m-p/771607#M998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to do some tests on a big table of sdo_geometries.&lt;/P&gt;&lt;P&gt;For that purpose I want to "translate" the oracle sdo_geometries to sde.st_geometry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In pure SQL I can simply do that like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;... sde.st_geomfromwkb(sdo_util.to_wkbgeometry(a.SHAPE), 25832) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my PL/SQL function I tried it this way:&lt;/P&gt;&lt;P&gt;DECLARE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;sdegeom sde.ST_GEOMETRY;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sdegeom :=&amp;nbsp; SDE.ST_GEOMETRY_OPERATORS.st_geomfromwkb(sdo_util.to_wkbgeometry(rec.SHAPE), 25832);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get this error:&lt;/P&gt;&lt;P&gt;PLS-00224: Objekt 'SDE.ST_GEOMETRY_OPERATORS.ST_GEOMFROMWKB' muss für diese Verwendungsart Type-Funktion oder Array sein&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not really famliliar with PL/SQL, so any advice would be nice!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a better way to translate from sdo_geom to st_geometry?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/using-st-geomfromwkb-in-pl-sql/m-p/771607#M998</guid>
      <dc:creator>TOPOGRAPHICS</dc:creator>
      <dc:date>2017-07-17T15:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using st_geomfromwkb in PL/SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/using-st-geomfromwkb-in-pl-sql/m-p/771608#M999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a good resource:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://support.esri.com/en/technical-article/000010839" title="http://support.esri.com/en/technical-article/000010839"&gt;How To: Convert an Oracle SDO attribute to an st_geometry attribute&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 15:29:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/using-st-geomfromwkb-in-pl-sql/m-p/771608#M999</guid>
      <dc:creator>AlexanderBrown5</dc:creator>
      <dc:date>2017-07-17T15:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using st_geomfromwkb in PL/SQL</title>
      <link>https://community.esri.com/t5/geodatabase-questions/using-st-geomfromwkb-in-pl-sql/m-p/771609#M1000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Alex,&lt;/P&gt;&lt;P&gt;thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example the "st_geomfromwkb" function is used within a SQL statement.&lt;/P&gt;&lt;P&gt;What I want to do, is use it to populate a variable in an pl/sql statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luckily I found a solution:&lt;/P&gt;&lt;P&gt;As odd as it sounds, the trick is to append an "_f" to the function name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DECLARE&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;sdegeom sde.ST_GEOMETRY;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sdegeom :=&amp;nbsp; SDE.ST_GEOMETRY_OPERATORS.st_geomfromwkb&lt;STRONG&gt;_f&lt;/STRONG&gt;(sdo_util.to_wkbgeometry(rec.SHAPE), 25832);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really understand why this is necessary. But hey: it works...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 07:50:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/using-st-geomfromwkb-in-pl-sql/m-p/771609#M1000</guid>
      <dc:creator>TOPOGRAPHICS</dc:creator>
      <dc:date>2017-07-18T07:50:49Z</dc:date>
    </item>
  </channel>
</rss>

