<?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: incorrect results with st_intersects in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/incorrect-results-with-st-intersects/m-p/562274#M31905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ufeliciano,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am weary of aliasing in PostgreSQL, the following query gave correct results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select sde.block_groups.tract90, sde.census_tracts.tract90&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from sde.block_groups , sde.census_tracts &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where sde.st_intersects (sde.census_tracts.shape, sde.st_centroid(sde.block_groups.shape));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kasia&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jan 2014 22:01:48 GMT</pubDate>
    <dc:creator>tKasiaTuszynska</dc:creator>
    <dc:date>2014-01-24T22:01:48Z</dc:date>
    <item>
      <title>incorrect results with st_intersects</title>
      <link>https://community.esri.com/t5/data-management-questions/incorrect-results-with-st-intersects/m-p/562273#M31904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hopefully this is an easy one...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using st_intersects I'm trying to get the records from a polygon layer which centroids intersect with another polygon layer (administrative boundaries).&amp;nbsp; So far I managed to get this with the following statement...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Select p.pid,p.oldpid,m.muni,m.region&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from parcels p, munici m&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where sde.st_intersects(m.shape,sde_centroid(p.shape))=1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and rownum&amp;lt;40;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the results are not correct.&amp;nbsp; It returned pins that intersect different administratives boundaries but listed to the same boundary.&amp;nbsp; In other words...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"242-083-125-07";"242-000-007-36";"AGUADILLA";"AGUADILLA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"197-070-419-10";"197-070-069-49";"AGUADILLA";"AGUADILLA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"115-092-802-AV";"115-092-802-AV";"AGUADILLA";"AGUADILLA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"045-100-185-58";"045-000-010-88";"AGUADILLA";"AGUADILLA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"";"115-092-802-15";"SAN JUAN";"AGUADILLA";"AGUADILLA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"168-005-001-20";"168-005-001-20";"AGUADILLA";"AGUADILLA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried the same in my Postgis database (not using ESRI) and the results appear to be correct.&amp;nbsp; I used the following in postgis...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SELECT p.pid,p.oldpid,m.muni,m.region&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; FROM parcels p,munic m&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; WHERE st_intersects (m.geom,st_centroid(p.geom)) limit 38;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"242-083-125-07";"242-000-007-36";"JAYUYA";"PONCE"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"197-070-419-10";"197-070-069-49";"AGUAS BUENAS";"CAGUAS"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"115-092-802-AV";"115-092-802-AV";"SAN JUAN";"SAN JUAN"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"045-100-185-58";"045-000-010-88";"AGUADILLA";"AGUADILLA"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"";"115-092-802-15";"SAN JUAN";"SAN JUAN"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"168-005-001-20";"168-005-001-20";"COROZAL";"BAYAM�?N"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could it be something wrong in the statement or maybe something else???&amp;nbsp; Any suggestions are appreciated...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jan 2014 16:23:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/incorrect-results-with-st-intersects/m-p/562273#M31904</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2014-01-23T16:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect results with st_intersects</title>
      <link>https://community.esri.com/t5/data-management-questions/incorrect-results-with-st-intersects/m-p/562274#M31905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ufeliciano,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am weary of aliasing in PostgreSQL, the following query gave correct results:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;select sde.block_groups.tract90, sde.census_tracts.tract90&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from sde.block_groups , sde.census_tracts &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where sde.st_intersects (sde.census_tracts.shape, sde.st_centroid(sde.block_groups.shape));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kasia&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2014 22:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/incorrect-results-with-st-intersects/m-p/562274#M31905</guid>
      <dc:creator>tKasiaTuszynska</dc:creator>
      <dc:date>2014-01-24T22:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: incorrect results with st_intersects</title>
      <link>https://community.esri.com/t5/data-management-questions/incorrect-results-with-st-intersects/m-p/562275#M31906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Kasia,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you experienced the same kind of irregularities outside PostgreSQL? Forgot to mentioned that the incorrect results are returned in our Oracle 11g database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2014 15:34:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/incorrect-results-with-st-intersects/m-p/562275#M31906</guid>
      <dc:creator>Ulises</dc:creator>
      <dc:date>2014-01-28T15:34:52Z</dc:date>
    </item>
  </channel>
</rss>

