<?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 Query an SDE Feature Class Containing ESRI Binary Spatial Type Geometry in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/query-an-sde-feature-class-containing-esri-binary/m-p/847837#M5073</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been bumbling through some SDE Geodatabases, trying to learn how to query geometry. In particular, AREA and LENGTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have 2 different SDE geodatabases. One is running SDO_Geometry, the other is ESRI Binary Spatial Type. In each geodatabase, there is an identical polygon feature class (i.e one is a copy of the other). I wanted to query the length and area of one of them. I started with the feature class with the SDO_geometry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select OBJECTID,GEOMETRY,SDO_GEOM.SDO_Area(Geometry, 0.0005) AREA,SDO_GEOM.SDO_LENGTH(Geometry, 0.005) PERIMETRE&amp;nbsp; 
from 
MySDEFeatureClass&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query works out fine. So in my bumbling, I tried to use the query on the feature class containing the ESRI Binary Spatial Type Geometry and of course, that failed because it isn't using SDO. Then I started googling around and found how to query ST_Geometry. Again, fail. It is not using ST_Goemetry. I tried googling for querying on ESRI Binary Spatial Type and I couldn't really find anything. Again, I'm bumbling because I'm learning as I go, but can I query on this spatial data type? Is there an example on how to do this or is there something I am missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 10:25:07 GMT</pubDate>
    <dc:creator>MikeMacRae1</dc:creator>
    <dc:date>2021-12-12T10:25:07Z</dc:date>
    <item>
      <title>Query an SDE Feature Class Containing ESRI Binary Spatial Type Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-an-sde-feature-class-containing-esri-binary/m-p/847837#M5073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been bumbling through some SDE Geodatabases, trying to learn how to query geometry. In particular, AREA and LENGTH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have 2 different SDE geodatabases. One is running SDO_Geometry, the other is ESRI Binary Spatial Type. In each geodatabase, there is an identical polygon feature class (i.e one is a copy of the other). I wanted to query the length and area of one of them. I started with the feature class with the SDO_geometry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select OBJECTID,GEOMETRY,SDO_GEOM.SDO_Area(Geometry, 0.0005) AREA,SDO_GEOM.SDO_LENGTH(Geometry, 0.005) PERIMETRE&amp;nbsp; 
from 
MySDEFeatureClass&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query works out fine. So in my bumbling, I tried to use the query on the feature class containing the ESRI Binary Spatial Type Geometry and of course, that failed because it isn't using SDO. Then I started googling around and found how to query ST_Geometry. Again, fail. It is not using ST_Goemetry. I tried googling for querying on ESRI Binary Spatial Type and I couldn't really find anything. Again, I'm bumbling because I'm learning as I go, but can I query on this spatial data type? Is there an example on how to do this or is there something I am missing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:25:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-an-sde-feature-class-containing-esri-binary/m-p/847837#M5073</guid>
      <dc:creator>MikeMacRae1</dc:creator>
      <dc:date>2021-12-12T10:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Query an SDE Feature Class Containing ESRI Binary Spatial Type Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-an-sde-feature-class-containing-esri-binary/m-p/847838#M5074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;In the Oracle database end, you cannot query the geometry information directly on SDE Binary base table. Those geometry information is stored in F table corresponding to your feature class and not the base table. Below is a link which explains the relationship between feature class base table and F table: &lt;/P&gt;&lt;P style="font-family: Calibri; font-size: 11.0pt;"&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/ArcSDE_compressed_binary_storage/002n0000006p000000/"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#/ArcSDE_compressed_binary_storage/002n0000006p000000/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 01:14:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-an-sde-feature-class-containing-esri-binary/m-p/847838#M5074</guid>
      <dc:creator>LitingCui</dc:creator>
      <dc:date>2015-10-15T01:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Query an SDE Feature Class Containing ESRI Binary Spatial Type Geometry</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-an-sde-feature-class-containing-esri-binary/m-p/847839#M5075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ArcSDE API actually hides the fact that SDELOB (and SDEBINARY, though one shouldn't be using LONG RAW so long after it was deprecated by Oracle) uses a joined table, by aliasing the joined Fn table with the geometry column name, so that the API equivalent of&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT shape.numofpts,shape.area,shape.length FROM tablename&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;returns the expected values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can emulate this in SQL by using the same trick:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT shape.numofpts,shape.area,shape.len length &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM tablename a, Fn shape&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE shape.fid = a.shape&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SELECT shape.numofpts,shape.area,shape.len length&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM tablename a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN Fn shape on&amp;nbsp; Fn.fid = a.shape&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For most uses, SDE.ST_GEOMETRY will be a better storage choice than SDELOB, and this gives&lt;/P&gt;&lt;P&gt;you access to a larger set a accessor functions and operators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 20:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-an-sde-feature-class-containing-esri-binary/m-p/847839#M5075</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2015-10-15T20:51:00Z</dc:date>
    </item>
  </channel>
</rss>

