<?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: Query Layer (Oracle) using SDO_BUFFER does not show(draw) geometry in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666013#M9724</link>
    <description>&lt;P data-unlink="true"&gt;Take this with a grain of salt because I've never used Oracle and the documentation&amp;nbsp; isn't &lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/26/spatl/sdo_geom-sdo_buffer.html" target="_self"&gt;super backing me up here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can return spatial sql at least with Microsoft SQL Server.&lt;/P&gt;&lt;P&gt;Idk about Oracle specifically, but for SQL Server I got a similar thing to work by manually casting the result of my buffer to geometry (or geography, depending on what you're doing) and also assigning it as the SHAPE field&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;//returns a 1 mile buffer for each feature

select OBJECTID,
ADM_UNIT_CD,
ADMU_NAME,
geography:: STPolyFromText(SHAPE.STAsText(), 4269).STBuffer(1609.344) AS shape
from gdb.FeatureClass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd start by at least assigning the buffer as the SHAPE field and see if that helps?&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;SELECT 
ID, 
SDO_BUFFER(geom, 0.5, 0.5, 'unit=km arc_tolerance=0.5') As shape 
FROM vw_position_mobile&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation that I linked above appears to not care about whether you are doing that, but Arc is a little finicky, so I'd try it just in case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Nov 2025 21:03:23 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2025-11-14T21:03:23Z</dc:date>
    <item>
      <title>Query Layer (Oracle) using SDO_BUFFER does not show(draw) geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1665995#M9722</link>
      <description>&lt;P&gt;Hello everyone,&lt;BR /&gt;I am facing some issues with the Query Layer and would appreciate it if someone could assist me in resolving this problem. I am working with an Oracle 19c database that includes the Spatial Data Module, and it contains a view displaying real-time mobile positions. My goal is to represent a security area on the map as a circle with a radius of 500 meters.&lt;BR /&gt;To achieve this, I attempted to add a query layer using the following SQL query:&lt;BR /&gt;```sql&lt;BR /&gt;SELECT ID, SDO_BUFFER(geom, 0.5, 0.5, 'unit=km arc_tolerance=0.5') FROM vw_position_mobile&lt;BR /&gt;&lt;BR /&gt;, but it does not draw on the map. Any clue about that?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 20:23:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1665995#M9722</guid>
      <dc:creator>MrRock78</dc:creator>
      <dc:date>2025-11-14T20:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer (Oracle) using SDO_BUFFER does not show(draw) geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666004#M9723</link>
      <description>&lt;P&gt;I am not sure that you can run SQL functions (like SDO_BUFFER) in a query layer.&amp;nbsp; I do not have Oracle to test this.&lt;BR /&gt;&lt;BR /&gt;You can add "Predefined discrete parameters" as shown here:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/define-parameters-in-a-query-layer.htm#ESRI_SECTION1_DA513455E19946BBBC3053C6263054F3" target="_blank"&gt;https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/define-parameters-in-a-query-layer.htm#ESRI_SECTION1_DA513455E19946BBBC3053C6263054F3&lt;/A&gt;&amp;nbsp;as a start.&lt;BR /&gt;&lt;BR /&gt;If you remove the SDO_BUFFER, does the query layer work?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 20:46:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666004#M9723</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2025-11-14T20:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer (Oracle) using SDO_BUFFER does not show(draw) geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666013#M9724</link>
      <description>&lt;P data-unlink="true"&gt;Take this with a grain of salt because I've never used Oracle and the documentation&amp;nbsp; isn't &lt;A href="https://docs.oracle.com/en/database/oracle/oracle-database/26/spatl/sdo_geom-sdo_buffer.html" target="_self"&gt;super backing me up here.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can return spatial sql at least with Microsoft SQL Server.&lt;/P&gt;&lt;P&gt;Idk about Oracle specifically, but for SQL Server I got a similar thing to work by manually casting the result of my buffer to geometry (or geography, depending on what you're doing) and also assigning it as the SHAPE field&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;//returns a 1 mile buffer for each feature

select OBJECTID,
ADM_UNIT_CD,
ADMU_NAME,
geography:: STPolyFromText(SHAPE.STAsText(), 4269).STBuffer(1609.344) AS shape
from gdb.FeatureClass&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd start by at least assigning the buffer as the SHAPE field and see if that helps?&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;SELECT 
ID, 
SDO_BUFFER(geom, 0.5, 0.5, 'unit=km arc_tolerance=0.5') As shape 
FROM vw_position_mobile&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The documentation that I linked above appears to not care about whether you are doing that, but Arc is a little finicky, so I'd try it just in case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Nov 2025 21:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666013#M9724</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2025-11-14T21:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer (Oracle) using SDO_BUFFER does not show(draw) geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666212#M9725</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, it works, but it displays a point instead of a polygon.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 11:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666212#M9725</guid>
      <dc:creator>MrRock78</dc:creator>
      <dc:date>2025-11-17T11:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query Layer (Oracle) using SDO_BUFFER does not show(draw) geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666213#M9726</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you for your response. I tried changing the field name, but it didn't work. The example you gave might be effective because it uses the st_geometry library, but I am using sdo_geometr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 11:29:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-oracle-using-sdo-buffer-does-not-show/m-p/1666213#M9726</guid>
      <dc:creator>MrRock78</dc:creator>
      <dc:date>2025-11-17T11:29:10Z</dc:date>
    </item>
  </channel>
</rss>

