<?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 ST_Transform in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/st-transform/m-p/71618#M2776</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a SQL trigger that will automatically update latitude and longitude values.&amp;nbsp; I have gotten it to populate the fields with the x and y coordinate values for the projection that the data is in, but I want to convert those into latitude and longitude values.&amp;nbsp; I have found that ST_Transform should complete the task, but I keep getting errors indicating that ST_Transform is not a recognized command.&amp;nbsp; SQL indicates the expression is valid, but when I try to add a new point in ArcGIS, I get the error.&amp;nbsp; The code that I used to get the coordinates in the projection the data is in is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set long = shape.STX,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lat = shape.STY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where long is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is in EPSG 3078, but I want the coordinates to show in EPSG 4326. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using sde.ST_Transform as well, and I get the same error with that.&amp;nbsp; I have also tried using st_x and st_y, but those aren't working either.&amp;nbsp; ArcGIS keeps giving me errors about ambiguous user-defined functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.2 and SQL 2008 R2 Management Studio Express. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas of how I can take the coordinate values from shape.STX and shape.STY and transform those into latitude and longitude values for the fields in my table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 22:17:46 GMT</pubDate>
    <dc:creator>LisaDygert</dc:creator>
    <dc:date>2014-10-13T22:17:46Z</dc:date>
    <item>
      <title>ST_Transform</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/st-transform/m-p/71618#M2776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write a SQL trigger that will automatically update latitude and longitude values.&amp;nbsp; I have gotten it to populate the fields with the x and y coordinate values for the projection that the data is in, but I want to convert those into latitude and longitude values.&amp;nbsp; I have found that ST_Transform should complete the task, but I keep getting errors indicating that ST_Transform is not a recognized command.&amp;nbsp; SQL indicates the expression is valid, but when I try to add a new point in ArcGIS, I get the error.&amp;nbsp; The code that I used to get the coordinates in the projection the data is in is below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update table&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set long = shape.STX,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lat = shape.STY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where long is null&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is in EPSG 3078, but I want the coordinates to show in EPSG 4326. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried using sde.ST_Transform as well, and I get the same error with that.&amp;nbsp; I have also tried using st_x and st_y, but those aren't working either.&amp;nbsp; ArcGIS keeps giving me errors about ambiguous user-defined functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using ArcGIS 10.2 and SQL 2008 R2 Management Studio Express. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas of how I can take the coordinate values from shape.STX and shape.STY and transform those into latitude and longitude values for the fields in my table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any assistance is greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lisa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 22:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/st-transform/m-p/71618#M2776</guid>
      <dc:creator>LisaDygert</dc:creator>
      <dc:date>2014-10-13T22:17:46Z</dc:date>
    </item>
  </channel>
</rss>

