<?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 Alternatives to SQL Spatial? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/alternatives-to-sql-spatial/m-p/880292#M5631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Hey everyone! I'm redesigning the City of Charlotte's GIS application suite and the previous developer was a big fan of C#.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;I've picked up enough to transfer the app away from the Google API and into the JS API and maintain 90% of the functionality, but some of the custom pop-ups invoke SQL Spatial queries (i.e. "SELECT J.[Name] [Jurisdiction], S.[Name] [Sphere Of Influence(ETJ)] FROM dbo.Jurisdictions_py J left join dbo.SpheresOfInfluence_py S ON geometry::STGeomFromText('POINT(@x @y)', {SRID}).STIntersects(S.SHAPE) = 1 WHERE geometry::STGeomFromText('POINT(@x @y)', {SRID}).STIntersects(J.SHAPE) = 1").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Perhaps unsurprisingly, this is cumbersome and, should the app need a refresh, the developer would need to be be comfortable with the obscure SQL Spatial protocols. The .NET / C# language is also generally not in the typical GIS Developer's wheelhouse, in my own experience.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;I've used Python to invoke the ArcPy module, but, given that I will need to execute &amp;gt;50 of these spatial queries, hosting this as a GP server on ArcGIS Enterprise would have performance hits that wouldn't work. I'm not familiar with a JS or a JQuery module, but they may exist... or another language!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Does anyone know of any programmatic way to basically run 'Select by Location' queries in a more user friendly module so that more folks could understand, modify and troubleshoot this through the app's life cycle?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Thanks! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jul 2017 15:59:02 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-07-07T15:59:02Z</dc:date>
    <item>
      <title>Alternatives to SQL Spatial?</title>
      <link>https://community.esri.com/t5/developers-questions/alternatives-to-sql-spatial/m-p/880292#M5631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Hey everyone! I'm redesigning the City of Charlotte's GIS application suite and the previous developer was a big fan of C#.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;I've picked up enough to transfer the app away from the Google API and into the JS API and maintain 90% of the functionality, but some of the custom pop-ups invoke SQL Spatial queries (i.e. "SELECT J.[Name] [Jurisdiction], S.[Name] [Sphere Of Influence(ETJ)] FROM dbo.Jurisdictions_py J left join dbo.SpheresOfInfluence_py S ON geometry::STGeomFromText('POINT(@x @y)', {SRID}).STIntersects(S.SHAPE) = 1 WHERE geometry::STGeomFromText('POINT(@x @y)', {SRID}).STIntersects(J.SHAPE) = 1").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Perhaps unsurprisingly, this is cumbersome and, should the app need a refresh, the developer would need to be be comfortable with the obscure SQL Spatial protocols. The .NET / C# language is also generally not in the typical GIS Developer's wheelhouse, in my own experience.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;I've used Python to invoke the ArcPy module, but, given that I will need to execute &amp;gt;50 of these spatial queries, hosting this as a GP server on ArcGIS Enterprise would have performance hits that wouldn't work. I'm not familiar with a JS or a JQuery module, but they may exist... or another language!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Does anyone know of any programmatic way to basically run 'Select by Location' queries in a more user friendly module so that more folks could understand, modify and troubleshoot this through the app's life cycle?&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;Thanks! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: rgba(0, 0, 0, 0.7); background-color: #ffffff;"&gt;A&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 15:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/alternatives-to-sql-spatial/m-p/880292#M5631</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-07-07T15:59:02Z</dc:date>
    </item>
  </channel>
</rss>

