<?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 Re: sqlldr / st_geometry wkt in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119067#M6786</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the '0' because sde.st_geomfromtext requires the srid to be defined*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/ST_GeomFromText/006z00000054000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/ST_GeomFromText/006z00000054000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Leaving it out results in this message in the sqlloader log:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Record 1: Rejected - Error on table GEOMETRY_TEST, column G1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06553: PLS-306: wrong number or types of arguments in call to 'ST_GEOMFROMTEXT'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still puzzled about how to do this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rune&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 00:44:14 GMT</pubDate>
    <dc:creator>runegullstrom</dc:creator>
    <dc:date>2013-11-26T00:44:14Z</dc:date>
    <item>
      <title>sqlldr / st_geometry wkt</title>
      <link>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119063#M6782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it should be possible to load wkt data into st_geometry with sql loader (oracle). I can't get it working though,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;does anybody have an example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rune&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;oracle 11g / sde10&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 20:46:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119063#M6782</guid>
      <dc:creator>runegullstrom</dc:creator>
      <dc:date>2013-10-16T20:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: sqlldr / st_geometry wkt</title>
      <link>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119064#M6783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe some more detail would be helpful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if my table is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;CREATE TABLE GEOMETRY_TEST&lt;BR /&gt;(&lt;BR /&gt;&amp;nbsp; GID&amp;nbsp; INTEGER,&lt;BR /&gt;&amp;nbsp; G1&amp;nbsp;&amp;nbsp; SDE.ST_GEOMETRY&lt;BR /&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And my sql loader ctl script is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;LOAD DATA &lt;BR /&gt; INFILE *&lt;BR /&gt; TRUNCATE &lt;BR /&gt; INTO TABLE geometry_test&lt;BR /&gt; FIELDS TERMINATED BY '|'&lt;BR /&gt; OPTIONALLY ENCLOSED BY '"'&lt;BR /&gt; TRAILING NULLCOLS (&lt;BR /&gt; gid,&lt;BR /&gt; G1 EXPRESSION "sde.st_geomfromtext(':g1',0)"&lt;BR /&gt;)&lt;BR /&gt;BEGINDATA&lt;BR /&gt;1|"POINT&amp;nbsp; ( 10.02000000 20.01000000),0"&lt;BR /&gt;2|"POINT&amp;nbsp; ( 11.02000000 20.01000000),0"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I'm getting this back in my .log file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family:Courier New;"&gt;Record 1: Rejected - Error on table GEOMETRY_TEST, column G1.&lt;BR /&gt;ORA-20003: Geometry type "" is not a valid shape type.&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOM_UTIL", line 213&lt;BR /&gt;ORA-06512: at "SDE.ST_GEOMFROMTEXT", line 20&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried all kind of permutations but sofar without any luck,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Oct 2013 02:35:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119064#M6783</guid>
      <dc:creator>runegullstrom</dc:creator>
      <dc:date>2013-10-18T02:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: sqlldr / st_geometry wkt</title>
      <link>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119065#M6784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First try to validate the following&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Setup is correct using the following query&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select sde.ST_AsText(SDE.ST_Geometry('POINT (10 10)', 0)) from dual;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) You are able to create a table independently with the ST_GEOMETRY column&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;CREATE TABLE GEOMETRY_TEST&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GID INTEGER,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 SDE.ST_GEOMETRY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) I did not understand why you are using 0 at both the places?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;G1 EXPRESSION "sde.st_geomfromtext(':g1',0)"&amp;nbsp; &amp;lt;--- here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BEGINDATA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1|"POINT ( 10.02000000 20.01000000),0" &amp;lt;-- here&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2|"POINT ( 11.02000000 20.01000000),0" &amp;lt;-- here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try with this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1|"POINT ( 10.02000000 20.01000000)"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2|"POINT ( 11.02000000 20.01000000)"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 19:23:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119065#M6784</guid>
      <dc:creator>SachinKanaujia</dc:creator>
      <dc:date>2013-10-21T19:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: sqlldr / st_geometry wkt</title>
      <link>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119066#M6785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think Sachin nailed it -- the trailing ",{SRID}" is not a part of the WKT specification&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(even if some implementations of OGC ST_GEOMETRY do support it as an extension).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You really ought to specify an explicit SRID, not a default one.&amp;nbsp; This may help prevent &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;significant difficulties after the data is loaded.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 19:54:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119066#M6785</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-10-21T19:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: sqlldr / st_geometry wkt</title>
      <link>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119067#M6786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use the '0' because sde.st_geomfromtext requires the srid to be defined*&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/ST_GeomFromText/006z00000054000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/ST_GeomFromText/006z00000054000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Leaving it out results in this message in the sqlloader log:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Record 1: Rejected - Error on table GEOMETRY_TEST, column G1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ORA-06553: PLS-306: wrong number or types of arguments in call to 'ST_GEOMFROMTEXT'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still puzzled about how to do this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rune&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 00:44:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119067#M6786</guid>
      <dc:creator>runegullstrom</dc:creator>
      <dc:date>2013-11-26T00:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: sqlldr / st_geometry wkt</title>
      <link>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119068#M6787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, an SRID is required, but it should be the correct SRID, and it must be *outside* the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WKT string, as in the example above (you must hard-code the SRID in the control file).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The constructor takes two arguments, a string/CLOB, and an integer.&amp;nbsp; Having the integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inside the string won't work and neither will leaving it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 00:54:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sqlldr-st-geometry-wkt/m-p/119068#M6787</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-11-26T00:54:27Z</dc:date>
    </item>
  </channel>
</rss>

