<?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: Shape.Area and Shape.len via ODBC in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726086#M41139</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, there's no standard wildcard operator for numeric values.&amp;nbsp; You'd need to play &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with modulus or casting functions, but that's really more appropriate for the RDBMS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vendor's forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 16:29:19 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2013-06-14T16:29:19Z</dc:date>
    <item>
      <title>Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726075#M41128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to use some attributes from a sde-feature class in a EXCEL-Query.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;All fields are show but Shape.Area and Shape.len are missing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These field are not shown in the SQL Managment Studio so i think that this attribute are&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;stored in a different place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So maybe i can create a Database View.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But i don't now where?!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 08:00:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726075#M41128</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2013-01-25T08:00:21Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726076#M41129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The SQL syntax is slightly different depending on which RDBMS is in use, and which&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;geometry storage is present, but for most combinations with native or ST_GEOMETRY &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;storage you just need to include appropriate references in the SELECT column list.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's unlikely that ODBC will be able to extract geometry properties with SDEBINARY&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or SDELOB storage. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 09:34:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726076#M41129</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-01-25T09:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726077#M41130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ernst,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The respective F-table maintains the shape.len and shape.area information for a Feature Class. But as Vince mentioned, it's not possible to implement this always. The "F" table does not always exist. Native geometry types do not include a Shape.Len and Shape.Area field. We can't create them using an OLE DB connection.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;These queries can be used to query the details though, from my experience (sde.Area3 is the FC name):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select shape.STLength() as length from sde.Area3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select shape.STArea() as area from sde.Area3&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jan 2013 17:10:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726077#M41130</guid>
      <dc:creator>AsrujitSengupta</dc:creator>
      <dc:date>2013-01-25T17:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726078#M41131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I 'am working with SQL Server. So ST_Geometry won't work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the f-table. There are 1204 features shown in ArcMAP and 1321 rows in the table. This is a versioned Dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So there might be data in other tables......?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 07:15:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726078#M41131</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2013-01-28T07:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726079#M41132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Several additional tables.&amp;nbsp; They're all documented, but I'd recommend you search&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; for another way to accomplish this task (like using ArcObjects or Python to export&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the data into a format readable by Excel).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 09:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726079#M41132</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-01-28T09:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726080#M41133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't want to export the data. I have to link the data directly from excel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now i found the a- and d-tables and i'am trying to query them with sql.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: All my feature classes are versioned. Is it correct that it would be helpful to compress the databases everyday.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there any aspects against my idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 10:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726080#M41133</guid>
      <dc:creator>gismoe</dc:creator>
      <dc:date>2013-01-28T10:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726081#M41134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ernst,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at creating a &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//006z0000000q000000"&gt;versioned view&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; There is a similar post &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/70216-Connecting-to-SDE-Versions-in-Excel?p=245864#post245864"&gt;here&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2013 13:06:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726081#M41134</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-01-28T13:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726082#M41135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ernst and Jake,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a similar question about this too: I tried to use "select by attribute"&amp;nbsp; in Arc for a feature class stored in sde. The field I am interested is Shape.STLength() and it does show up in the sql query box, but when I input sql expression like : Shape.STLength() = 2.876, it didn't return any result though I do see such record exists... any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:30:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726082#M41135</guid>
      <dc:creator>dancheng</dc:creator>
      <dc:date>2013-06-14T14:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726083#M41136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Dan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is your current configuration?&amp;nbsp; i.e.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcGIS 10.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ArcSDE 10.1 SP1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL Server 2008 R2&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do any queries work against this field? i.e. Shape.STLength() &amp;gt; 0&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 14:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726083#M41136</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2013-06-14T14:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726084#M41137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You always need to be careful when doing exact comparisons on floating-point&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; values in SQL --&amp;nbsp; If the length isn't 2.8760000000000000000, then your query&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; will fail to return any rows.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead, you need to use the BETWEEN operator or a pair of greater-equal/less-than&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; tests:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-family:courier new;"&gt;WHERE Shape.STLength() BETWEEN 2.8755 AND 2.87765&lt;BR /&gt;&lt;BR /&gt;WHERE Shape.STLength() &amp;gt;= 2.8755 AND Shape.STLength() &amp;lt; 2.8765&lt;BR /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that these are not necessarily equivalent -- See your RDBMS "BETWEEN"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; documentation for details.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 15:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726084#M41137</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-06-14T15:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726085#M41138</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;BR /&gt;&lt;SPAN&gt;Yes, when I tried something like &amp;gt;0 or between value range, it works, thanks for pointing out the precision issue .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This raised up another question I have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What if I want to know if the shape.length() column contain certain numbers (e.g., 234). For strings, I can do fieldname Like '%234%',however, for numbers, it seems like no such function is available....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts would be appreciated, thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 16:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726085#M41138</guid>
      <dc:creator>dancheng</dc:creator>
      <dc:date>2013-06-14T16:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726086#M41139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, there's no standard wildcard operator for numeric values.&amp;nbsp; You'd need to play &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;with modulus or casting functions, but that's really more appropriate for the RDBMS &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;vendor's forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 16:29:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726086#M41139</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-06-14T16:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Shape.Area and Shape.len via ODBC</title>
      <link>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726087#M41140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got it, thanks for the help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No, there's no standard wildcard operator for numeric values.&amp;nbsp; You'd need to play &lt;BR /&gt;with modulus or casting functions, but that's really more appropriate for the RDBMS &lt;BR /&gt;vendor's forums.&lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 18:23:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shape-area-and-shape-len-via-odbc/m-p/726087#M41140</guid>
      <dc:creator>dancheng</dc:creator>
      <dc:date>2013-06-14T18:23:51Z</dc:date>
    </item>
  </channel>
</rss>

