<?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: How can I convert lat/long pairs to SDEBinary? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37210#M2908</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does ArcGIS see Database A as geographic data? If it doesn't, one possibility would be to write that data into a shapefile, then import the shapefile in the SDE database--let the software do the conversion to SDEbinary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's likely another way to grab the coordinates from DB A, make a geometry and then write that to DB B, but I would expect it to be relatively slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Feb 2018 21:06:48 GMT</pubDate>
    <dc:creator>MelitaKennedy</dc:creator>
    <dc:date>2018-02-18T21:06:48Z</dc:date>
    <item>
      <title>How can I convert lat/long pairs to SDEBinary?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37209#M2907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I convert lat/long pairs to SDEBinary using Python?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was tasked with migrating data from one database (DatabaseA) to another (DatabaseB). DatabaseB and DatabaseA are formatted completely differently. DatabaseA represents everything using lat/long pairs, while DatabaseB uses SDEBinary to represent geodata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a Python script to pull data from DatabaseA and insert it directly into DatabaseB using SQL. How can I convert the lat/longs on-the-fly into SDEBinary?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link below is helpful in understanding how values are represented using Esri Binary spatial type (SDEBinary) but I hope to avoid writing a comprehensive conversion module for such a simple task.&lt;/P&gt;&lt;P&gt;&lt;A href="http://edndoc.esri.com/arcsde/9.2/concepts/geometry/representations/compressed.htm#Physical"&gt;http://edndoc.esri.com/arcsde/9.2/concepts/geometry/representations/compressed.htm#Physical&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 22:12:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37209#M2907</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-02-15T22:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert lat/long pairs to SDEBinary?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37210#M2908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does ArcGIS see Database A as geographic data? If it doesn't, one possibility would be to write that data into a shapefile, then import the shapefile in the SDE database--let the software do the conversion to SDEbinary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's likely another way to grab the coordinates from DB A, make a geometry and then write that to DB B, but I would expect it to be relatively slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 21:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37210#M2908</guid>
      <dc:creator>MelitaKennedy</dc:creator>
      <dc:date>2018-02-18T21:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert lat/long pairs to SDEBinary?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37211#M2909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Matthew, have you tested the&amp;nbsp; &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm"&gt;FeatureClassToFeatureClass&lt;/A&gt; tool? While slower than the SQL option, it may do all the heavy lifting for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 21:18:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37211#M2909</guid>
      <dc:creator>MatthewDobson</dc:creator>
      <dc:date>2018-02-18T21:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert lat/long pairs to SDEBinary?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37212#M2910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shapefile is an awful format for database-to-database conversion. Recommend file geodatabase instead, since FGDB won't lose date resolution, numeric nulls, wide tables, UTF-16 strings, wide strings, legible field names,....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 02:06:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37212#M2910</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2018-02-19T02:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert lat/long pairs to SDEBinary?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37213#M2911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We'll need more information than a link to archaic documentation.&amp;nbsp; Of critical interest:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The RDBMS and version of the source database&lt;/LI&gt;&lt;LI&gt;The RDBMS and version of the target database&lt;/LI&gt;&lt;LI&gt;The geodatabase version of the target database&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no tools to use pure Python to populate SDEBINARY geometry without ArcPy. Attempting to do so will cost far more than a seat of Desktop (and if the database is already SDEBINARY, then the software already exists).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 02:15:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37213#M2911</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2018-02-19T02:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I convert lat/long pairs to SDEBinary?</title>
      <link>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37214#M2912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/298751"&gt;Matthew Sanders&lt;/A&gt;‌, is this question addressing the same question you ask &lt;A href="https://community.esri.com/thread/209515"&gt;How do I create and add SDEBINARY points to database?&lt;/A&gt; or is it a follow-up?&amp;nbsp; If a follow-up, please mark a comment as "Correct" on the other discussion to close it out.&amp;nbsp; If this is the same question, pursuing the original discussion usually works better than cross-posting the same question in a slightly different way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are going to be populating data as SDEBINARY, then you are obviously working with an enterprise geodatabase.&amp;nbsp; The most straightforward approach here would be using &lt;A href="https://community.esri.com/migrated-users/3100"&gt;Xander Bakker&lt;/A&gt;‌'s suggestion in the other discussion and work with XY event layers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/workflow-creating-a-table-with-sql-and-registering-it-with-the-geodatabase.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/using-sql-with-gdbs/workflow-creating-a-table-with-sql-and-registering-it-with-the-geodatabase.htm"&gt;Workflow: Create tables with SQL and register them with the geodatabase—Help | ArcGIS Desktop&lt;/A&gt; , you aren't going to be able to work with SDEBINARY.&amp;nbsp; There are others that have already touched on this, but there is no way to make DBMSes "aware" of SDEBINARY like ST_Geometry.&amp;nbsp; SDEBINARY is simply a binary field to the underlying DBMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 15:00:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-can-i-convert-lat-long-pairs-to-sdebinary/m-p/37214#M2912</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-19T15:00:32Z</dc:date>
    </item>
  </channel>
</rss>

