<?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: Error cahning coordref (SHAPE2) in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/error-cahning-coordref-shape2/m-p/384284#M22028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a solution to this problem? I am getting the error with Postgres 9.4 and ArcSDE 10.4.1 on my query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a.objectid AS aid, MAX(s."value") AS "maxvalue"&lt;BR /&gt;FROM test_points AS a&lt;BR /&gt;INNER JOIN test_areas AS s&lt;BR /&gt;ON ST_Intersects(a.shape, s.shape)&lt;BR /&gt;GROUP BY aid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Nov 2018 09:49:59 GMT</pubDate>
    <dc:creator>StefanOffermann</dc:creator>
    <dc:date>2018-11-19T09:49:59Z</dc:date>
    <item>
      <title>Error cahning coordref (SHAPE2)</title>
      <link>https://community.esri.com/t5/data-management-questions/error-cahning-coordref-shape2/m-p/384283#M22027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am running my SQL script with st_intersects and got an error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the problematic part:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;SELECT pa.pid, aa.aid&lt;BR /&gt;FROM addresstable pa, activitytable aa&lt;BR /&gt;WHERE sde.st_intersects (pa.shape, aa.shape) = 't';&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The error that I got is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;ERROR: ESRI: error changing coordref (SHAPE2) [20011]:&lt;BR /&gt;SQL state: 22P02&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The SRIDs for both layers are same. (Same ID number when checking with sdelayer -o describe_long command)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I don't understand why it attempts to change coordref...but if I run this for partial data (i.e WHERE sde.st_intersects (pa.shape, aa.shape) = 't' AND pa.pid &amp;lt;100; ) it worked. pa table has over 150K records if this could be a matter...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any restriction that I need to consider when using the spatial functions in SQL?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using PostgreSQL 8.3 with ArcSDE 10 SP2...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 12:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-cahning-coordref-shape2/m-p/384283#M22027</guid>
      <dc:creator>AndyOldham</dc:creator>
      <dc:date>2011-10-19T12:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error cahning coordref (SHAPE2)</title>
      <link>https://community.esri.com/t5/data-management-questions/error-cahning-coordref-shape2/m-p/384284#M22028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a solution to this problem? I am getting the error with Postgres 9.4 and ArcSDE 10.4.1 on my query:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a.objectid AS aid, MAX(s."value") AS "maxvalue"&lt;BR /&gt;FROM test_points AS a&lt;BR /&gt;INNER JOIN test_areas AS s&lt;BR /&gt;ON ST_Intersects(a.shape, s.shape)&lt;BR /&gt;GROUP BY aid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Nov 2018 09:49:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/error-cahning-coordref-shape2/m-p/384284#M22028</guid>
      <dc:creator>StefanOffermann</dc:creator>
      <dc:date>2018-11-19T09:49:59Z</dc:date>
    </item>
  </channel>
</rss>

