<?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 ST_Z(Shape)  Postgresql  - attribute column not found in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823469#M3831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar problem in Oracle the other day. &amp;nbsp;It was related to using a function that returned value with an input value that was too long (too many string characters) for the function. &amp;nbsp;So with that, I wonder if your ST_GEOMETRY might be not have z values. &amp;nbsp;If you view the query's results in pgAdmin what values are being returned from &lt;SPAN style="background-color: #ffffff;"&gt;ST_Z(Shape)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 14:40:41 GMT</pubDate>
    <dc:creator>KevinDunlop</dc:creator>
    <dc:date>2017-02-03T14:40:41Z</dc:date>
    <item>
      <title>query layer ST_Z(Shape)  Postgresql  - attribute column not found</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823468#M3830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This query works in PGAdmin and validates via the Edit query dialog in ArcGIS 10.5 however raises:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="314049" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/314049_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *,ST_Z(Shape) AS "Height" from awsprod.lccgis.FLO_BUILDING_FLOOR_HEIGHTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remove the all important&amp;nbsp;&lt;SPAN&gt;ST_Z(Shape) AS "Height" the query works fine in the attributes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Richard&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 03:28:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823468#M3830</guid>
      <dc:creator>RichardWebb2</dc:creator>
      <dc:date>2017-02-03T03:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: query layer ST_Z(Shape)  Postgresql  - attribute column not found</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823469#M3831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a similar problem in Oracle the other day. &amp;nbsp;It was related to using a function that returned value with an input value that was too long (too many string characters) for the function. &amp;nbsp;So with that, I wonder if your ST_GEOMETRY might be not have z values. &amp;nbsp;If you view the query's results in pgAdmin what values are being returned from &lt;SPAN style="background-color: #ffffff;"&gt;ST_Z(Shape)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 14:40:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823469#M3831</guid>
      <dc:creator>KevinDunlop</dc:creator>
      <dc:date>2017-02-03T14:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: query layer ST_Z(Shape)  Postgresql  - attribute column not found</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823470#M3832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Placing the double-quotes around "Height" may have forced the SELECT result set to have a column named "Height", which ArcGIS cannot "see" because it requires ANSI-conformant SQL naming.&amp;nbsp; Try eliminating the double-quotes from the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 16:50:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823470#M3832</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-02-03T16:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: query layer ST_Z(Shape)  Postgresql  - attribute column not found</title>
      <link>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823471#M3833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without quotes of any kind this is working. Thanks Vince.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select *,ST_Z(Shape) as Height from awsprod.lccgis.FLO_BUILDING_FLOOR_HEIGHTS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Feb 2017 21:27:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/query-layer-st-z-shape-postgresql-attribute-column/m-p/823471#M3833</guid>
      <dc:creator>RichardWebb2</dc:creator>
      <dc:date>2017-02-05T21:27:45Z</dc:date>
    </item>
  </channel>
</rss>

