<?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: STIntersect returns nothing in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562801#M31943</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Vince, indeed adding the SRID to the declared polygon fixed the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2011 10:18:02 GMT</pubDate>
    <dc:creator>ArnonTsairi</dc:creator>
    <dc:date>2011-04-06T10:18:02Z</dc:date>
    <item>
      <title>STIntersect returns nothing</title>
      <link>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562797#M31939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm experimenting with spatial queries in SQL Server 2008. Created an SDE DB with GEOMETRY storage type and loaded several feature classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to select features from a FC intersecting a polygon:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;DECLARE @LandUse geometry 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ='POLYGON ((169394.70008075237 1068417.1000268459 &amp;lt;more coordinates&amp;gt;))'
SELECT SOIL_ID
FROM soils
WHERE Shape.STIntersects(@LandUse)=1&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The statement returns no records, although the polygon declared does intersect several features in the soils FC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, Arnon&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 00:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562797#M31939</guid>
      <dc:creator>ArnonTsairi</dc:creator>
      <dc:date>2021-12-12T00:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: STIntersect returns nothing</title>
      <link>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562798#M31940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Microsoft's &lt;/SPAN&gt;&lt;A href="http://msdn.microsoft.com/en-us/library/bb933899.aspx"&gt;documentation&lt;/A&gt;&lt;SPAN&gt; states:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This method always returns null if the spatial reference IDs (SRIDs) of the geometry instances do not match.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You didn't show the SRIDs involved, but that's the most likely cause.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 11:03:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562798#M31940</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-04-05T11:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: STIntersect returns nothing</title>
      <link>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562799#M31941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;STRONG&gt;SDE_geometry_columns&lt;/STRONG&gt;&lt;SPAN&gt; table shows the same SRID for both feature classes (1).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I grabbed the declared polygon by a previous select statement, but in the declaration no SRID explicitly defined. Could that be the problem? Can I specify an SRID? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 11:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562799#M31941</guid>
      <dc:creator>ArnonTsairi</dc:creator>
      <dc:date>2011-04-05T11:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: STIntersect returns nothing</title>
      <link>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562800#M31942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The POLYGON constructor accepts an SRID, but the ArcSDE SRID and Microsoft SRID might&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;be different values.&amp;nbsp; You need to use the Microsoft SRID in the native OGC operators.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The ArcSDE sequence-generated SRID is a link to a row in the spatial reference table,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where the native SRID resides.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Apr 2011 11:34:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562800#M31942</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-04-05T11:34:29Z</dc:date>
    </item>
    <item>
      <title>Re: STIntersect returns nothing</title>
      <link>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562801#M31943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Vince, indeed adding the SRID to the declared polygon fixed the problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2011 10:18:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/stintersect-returns-nothing/m-p/562801#M31943</guid>
      <dc:creator>ArnonTsairi</dc:creator>
      <dc:date>2011-04-06T10:18:02Z</dc:date>
    </item>
  </channel>
</rss>

