<?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 Create new point in feature class with st_geometry based on latitude and longitude in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629153#M35513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to insert a new record into point feature class using &lt;/SPAN&gt;&lt;STRONG&gt;ST_GEOMETRY&lt;/STRONG&gt;&lt;SPAN&gt;. The feature classes uses &lt;/SPAN&gt;&lt;STRONG&gt;NAD_1983_StatePlane_California_III_FIPS_0403_Feet&lt;/STRONG&gt;&lt;SPAN&gt; as it's coordinate system. The data I must insert is coming in with latitude and longitude instead of X/Y coordinates. I believe I need to use the ST_TRANSFORM function to reproject the the lat/long into the x/y, but I'm not sure how to do this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code I've created so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;select sde.st_transform(sde.st_point(37.780262347, -122.468853905, 0), 2) from dual;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I execute the above statement, I get an error message that is the "Spatial References are not compatible." &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SRID of 0 is the default record in the spatial_reference table, which is &lt;/SPAN&gt;&lt;STRONG&gt;GCS_WGS_1984&lt;/STRONG&gt;&lt;SPAN&gt;, which I believe I can use to create my point from lat/long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate any advice you may have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 09 Sep 2012 22:01:45 GMT</pubDate>
    <dc:creator>CraigPatterson</dc:creator>
    <dc:date>2012-09-09T22:01:45Z</dc:date>
    <item>
      <title>Create new point in feature class with st_geometry based on latitude and longitude</title>
      <link>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629153#M35513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need to insert a new record into point feature class using &lt;/SPAN&gt;&lt;STRONG&gt;ST_GEOMETRY&lt;/STRONG&gt;&lt;SPAN&gt;. The feature classes uses &lt;/SPAN&gt;&lt;STRONG&gt;NAD_1983_StatePlane_California_III_FIPS_0403_Feet&lt;/STRONG&gt;&lt;SPAN&gt; as it's coordinate system. The data I must insert is coming in with latitude and longitude instead of X/Y coordinates. I believe I need to use the ST_TRANSFORM function to reproject the the lat/long into the x/y, but I'm not sure how to do this. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the code I've created so far:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;select sde.st_transform(sde.st_point(37.780262347, -122.468853905, 0), 2) from dual;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I execute the above statement, I get an error message that is the "Spatial References are not compatible." &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The SRID of 0 is the default record in the spatial_reference table, which is &lt;/SPAN&gt;&lt;STRONG&gt;GCS_WGS_1984&lt;/STRONG&gt;&lt;SPAN&gt;, which I believe I can use to create my point from lat/long.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I appreciate any advice you may have.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 22:01:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629153#M35513</guid>
      <dc:creator>CraigPatterson</dc:creator>
      <dc:date>2012-09-09T22:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Create new point in feature class with st_geometry based on latitude and longitud</title>
      <link>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629154#M35514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Craig,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The source and target Datum have to be the same for st_transform.&amp;nbsp;&amp;nbsp; You'll have to convert the coordinates to something based on nad83 first. You may be able to find a service to do this for you or you can do it from arcmap. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you imagine how useful this tool would be if this restriction did not exist?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anthony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 11:18:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629154#M35514</guid>
      <dc:creator>anthonysanchez</dc:creator>
      <dc:date>2012-09-10T11:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create new point in feature class with st_geometry based on latitude and longitud</title>
      <link>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629155#M35515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Melita will correct me if I'm completely off-base, but you may be able to just create an&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; SRID based on GCS_NAD_1983, and use that for your geographic input.&amp;nbsp; The difference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;between NAD83 and WGS84 is pretty small, though it would certainly be worth the effort&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to verify that the shift is within your accuracy requirements (keeping in mind that second&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;precision is ~30m at the equator, you'd probably have to have hundredths of second&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;accuracy in your lat/lon values before the datum introduced significant error).&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, 10 Sep 2012 11:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629155#M35515</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2012-09-10T11:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create new point in feature class with st_geometry based on latitude and longitud</title>
      <link>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629156#M35516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Current NAD83 and WGS84 data can generally no be considered coincident. They're getting farther apart with time because of how they are being maintained. NAD83 and its re-adjustments are tied to the North American plate to try to minimize coordinate change over time. If your WGS84 coordinates were not post-processed or acquired while doing real-time processing, the accuracy is probably not enough to matter. If it was real-time or post-processed, it's likely that the coordinates are already in NAD83 (actually one of the re-adjustments) because the control points used are already on NAD83. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Geomofo - As of 10.1, ST_Transform can support geographic (datum) transformations when working with Oracle. The functionality hasn't been ported to the other DBMS yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 15:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/create-new-point-in-feature-class-with-st-geometry/m-p/629156#M35516</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2012-09-10T15:55:03Z</dc:date>
    </item>
  </channel>
</rss>

