<?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>Question Re: HCP / Spatial / SRID Conversion / TrexUpdate failed in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/hcp-spatial-srid-conversion-trexupdate-failed/qaa-p/440246#M62838</link>
    <description>&lt;P&gt;Thank you Benedict! Now it works!&lt;/P&gt;</description>
    <pubDate>Tue, 07 Mar 2017 19:22:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-03-07T19:22:07Z</dc:date>
    <item>
      <title>HCP / Spatial / SRID Conversion / TrexUpdate failed</title>
      <link>https://community.sap.com/t5/technology-q-a/hcp-spatial-srid-conversion-trexupdate-failed/qaq-p/440244</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have an HCP Hana istance. We loaded a shape file in a table using 3044 SRID (which is the SRID used in the GIS system).&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/24127-table.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/24128-table-content.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/24129-table-content2.png" /&gt;&lt;/P&gt;&lt;P&gt;Then we need to convert the SRID from 3044 to 3857. So we first created a table &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/24130-table-create.png" /&gt;&lt;/P&gt;&lt;P&gt;and then perform an insert&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/24141-insert.png" /&gt;&lt;/P&gt;&lt;P&gt;but an error is returned and it seems an OOM (Out of Memory) problem or a bug with HANA&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Could not execute 'insert into CDR_3857 select OBJECTID, IDSAP, DENOMINAZI, WA_LATITUD, WA_LONGITU, ...' in 40 ms 456 µs . 
[129]: transaction rolled back by an internal error: TrexUpdate failed on table 'HER_LA:CDR_3857' with error: commitOptimizeAttributes() failed with rc=1610088, message not found; table 'HER_LA:CDR_3857$delta_1, rc=1610088 - enforce TX rollback &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Suggestions? Already happened to some of you?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 15:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hcp-spatial-srid-conversion-trexupdate-failed/qaq-p/440244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-07T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: HCP / Spatial / SRID Conversion / TrexUpdate failed</title>
      <link>https://community.sap.com/t5/technology-q-a/hcp-spatial-srid-conversion-trexupdate-failed/qaa-p/440245#M62837</link>
      <description>&lt;P&gt;Hello Leonardo,&lt;/P&gt;&lt;P&gt;Can you try this,&lt;/P&gt;&lt;P&gt;CREATE COLUMN TABLE CDR_3857(&amp;lt;fields&amp;gt;,&lt;/P&gt;&lt;P&gt;SHAPE ST_GEOMETRY(3857));&lt;/P&gt;&lt;P&gt;Mention the SRID when you specify the geometry type. Provided the SRID is available in your system. If you dont provide the SRID it will default to '0'.&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;INSERT INTO CDR_3857 SELECT &amp;lt;fields&amp;gt;, SHAPE.ST_SRID(3044).ST_TRANSFORM(3857)&lt;/P&gt;&lt;P&gt;I have not tried this INSERT though &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 18:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hcp-spatial-srid-conversion-trexupdate-failed/qaa-p/440245#M62837</guid>
      <dc:creator>BenedictV</dc:creator>
      <dc:date>2017-03-07T18:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: HCP / Spatial / SRID Conversion / TrexUpdate failed</title>
      <link>https://community.sap.com/t5/technology-q-a/hcp-spatial-srid-conversion-trexupdate-failed/qaa-p/440246#M62838</link>
      <description>&lt;P&gt;Thank you Benedict! Now it works!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 19:22:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/hcp-spatial-srid-conversion-trexupdate-failed/qaa-p/440246#M62838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-03-07T19:22:07Z</dc:date>
    </item>
  </channel>
</rss>

