<?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 do I create and add SDEBINARY points to database? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321518#M25012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I have access to their entire production database, so I have all three tables.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I must admit, I am confused by this last response.&amp;nbsp; If the three tables exist in a production database, it is likely the production database is a geodatabase, right?&amp;nbsp; It would be highly unusual to have 3 geodatabase-type of tables sitting an a database that isn't a geodatabase.&amp;nbsp; Is the production database a geodatabase?&amp;nbsp; If not, do you have any idea how/why 3 tables that are specific to a geodatabase are residing in a non-geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Feb 2018 14:35:46 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2018-02-18T14:35:46Z</dc:date>
    <item>
      <title>How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321503#M24997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got tasked with taking some data from a completely unrelated system and putting it into our SQL Server database for use with our ArcGIS server, and I can't for the life of me figure out how to create, use, manipulate, convert, etc SDEBINARY data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are tables which contain the xminx, xmaxx, etc entries and then have a 'points' column which shows a bunch of hex data and I can only assume it's the geometry of the shape or point. From what I can tell, it's SDEBINARY data but I could be wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I convert my lat/long pairs to this SDEBINARY?&lt;/P&gt;&lt;P&gt;Also, how can I convert it back from SDEBINARY to something readable?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sanders&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 10:59:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321503#M24997</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-02-12T10:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321504#M24998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably the easiest way to handle this is using ArcGIS Desktop (ArcMap or ArcGIS Pro). Connect to the data source and load the table into Desktop and use display XY events (&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/adding-x-y-coordinate-data-as-a-layer.htm" title="http://desktop.arcgis.com/en/arcmap/latest/map/working-with-layers/adding-x-y-coordinate-data-as-a-layer.htm"&gt;Adding x,y coordinate data as a layer—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;)&amp;nbsp;and export that to your enterprise geodatabase as a point feature class and let ArcGIS take care of all the tables and indexes that should be created.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 12:23:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321504#M24998</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2018-02-12T12:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321505#M24999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is fairly unusual to has SDEBINARY exported as text.&amp;nbsp; If you do have something binary looking in a text file, it is more likely well-known binary (WKB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clarify, do you have an xminx, xmaxx, etc... for the data set as a whole or for each record in the data set?&amp;nbsp; If you don't actually have text representation of the points, and only have WKB representation of the points, you may need to use a cursor and &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/fromwkb.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/fromwkb.htm"&gt;FromWKB—Help | ArcGIS Desktop&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using SQL Server, do you really have to store the resulting points as SDEBINARY?&amp;nbsp; What about storing them as ST_GEOMETRY?&amp;nbsp; Or, are you saying SDEBINARY simply because you want to load them into an enterprise geodatabase, regardless of actual spatial storage type in the geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 15:43:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321505#M24999</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-12T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321506#M25000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning Joshua, and thanks for the reply! Sorry it took so long for me to respond, I've been out of the office this week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have eminx and such.&lt;/P&gt;&lt;P&gt;I seem to have two or three tables for each feature layer. One table has data about a point, one has the eminx/emaxx/eminy/emaxy. numofpoints, and points(the varbinary in question) columns, and the third table ALMOST seems like an exact copy of the first table I mentioned which leads me to believe it's used for something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that I don't know how to interpret or create the data in the points column. Here is an example of the points binary:&lt;/P&gt;&lt;P&gt;0x0C00000001000000838C9A99EF12A091D8A3EC19 (where numofpoints = 1)&lt;/P&gt;&lt;P&gt;0x3D03000001000000A7D0DEEBEC128FDAA2BFCA19DA0EA7E3019E9E01C0A302A2E90FEFAB098BF90EFCDD089BC20EFB8E09BCFE0ECBD808A5BA0BE3F406EA0892118B14D211 (where numofpoints = 4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that sound familiar to you?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 14:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321506#M25000</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-02-14T14:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321507#M25001</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The "0x" at the start of the sequence denotes a hexadecimal number, which is important to know, but it doesn't answer all of your questions by itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When looking at a 2-pt MULTIPOINT for my home town, below are different representations of the same information (SRID 3857):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; pt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WKT
u&lt;SPAN class="string token"&gt;'MULTIPOINT ((-10251981.3618 5906569.0346999988), (-10251716.777899999 5906621.9514999986))'&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; pt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WKB
bytearray&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;b&lt;SPAN class="string token"&gt;'\x01\x04\x00\x00\x00\x02\x00\x00\x00\x01\x01\x00\x00\x00\x98\xdd\x93\xab\xd9\x8dc\xc1X\x868B"\x88VA\x01\x01\x00\x00\x00\x8a\x8e\xe4\x98\xb8\x8dc\xc1@`\xe5|/\x88VA'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="operator token"&gt;&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; binascii&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hexlify&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;pt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;WKB&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="string token"&gt;'010400000002000000010100000098dd93abd98d63c1588638422288564101010000008a8ee498b88d63c14060e57c2f885641'&lt;/SPAN&gt;
&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It is the third representation, i.e., hex number, that you appear to have in your files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, when I try to work with the example hex numbers you provided, all I get are errors.&amp;nbsp; I am able to convert the hex number into a byte array, but the byte arrays don't appear to represent valid well-known geometries.&amp;nbsp; It isn't that the hex numbers are bad/wrong, it may just be they aren't hex representations of well-known binary geometries, or it could be there is an encoding we are missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point, without more metadata or background information, I can't offer any further suggestions.&amp;nbsp; If I could get your hex values working, I could provide more specific suggestions at loading them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:15:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321507#M25001</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-12-11T15:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321508#M25002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've done some digging myself. It appears that the&amp;nbsp;data in my database is&amp;nbsp;&lt;A href="http://edndoc.esri.com/arcsde/9.2/concepts/geometry/representations/compressed.htm#Physical"&gt;Esri Binary spatial type (SDEBinary)&lt;/A&gt;&amp;nbsp;and is Esri's own way to encode geo data. However, I believe support for SDEBinary is being phased out. The link I provided explains the logical and physical representation of geometry. I'm going to keep looking for a premade tool to convert lat/long coordinates to SDEBinary, and the worst case scenario is that I have to make my own.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for the help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 21:53:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321508#M25002</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-02-15T21:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321509#M25003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am sharing with &lt;A href="https://community.esri.com/group/1680"&gt;Geodatabase&lt;/A&gt;‌, there are some sharp folks that follow that group that may be able to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I failed to notice earlier in your first reply back to me were the change in column names from your original post.&amp;nbsp; Originally you stated "xminx, xmaxx, etc" but later said "eminx/emaxx/eminy/emaxy."&amp;nbsp; What you list for column names belong to the feature table for SDEBINARY storage type.&amp;nbsp; Let me guess, do your table structures look like the tables listed here?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/feature-class-storage-sqlserver.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/feature-class-storage-sqlserver.htm"&gt;Feature classes in a geodatabase in SQL Server—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 22:21:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321509#M25003</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-15T22:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321510#M25004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, sorry, the original column names were a mistype. The tables are set up like the link you provided, and the column names are eminx/emaxx/etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for sharing my post. Hopefully that will bring in some good help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 22:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321510#M25004</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-02-15T22:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321511#M25005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have dumps of all three tables [base table, feature table (F&amp;lt;layer_id&amp;gt;), and spatial index table (S&amp;lt;layer_id&amp;gt;)] or just the feature table?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2018 23:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321511#M25005</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-15T23:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321512#M25006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I understand, you have lat/lon fields in a non-Esri table that come from another system. You want a method of adding the records as point features into an existing SDEBINARY feature class stored in an enterprise geodatabase using either SQL or Python?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For that, you could always create an on-the-fly SHAPE field within a view of the original tabular data and use a built-in SQL function for its definition, such as&amp;nbsp;&lt;A class="link-titled" href="https://docs.microsoft.com/en-us/sql/t-sql/spatial-geography/stpointfromtext-geography-data-type" title="https://docs.microsoft.com/en-us/sql/t-sql/spatial-geography/stpointfromtext-geography-data-type"&gt;STPointFromText (geography Data Type) | Microsoft Docs&lt;/A&gt;. From Python (ArcPy site package), reference the view as an input layer and&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/append.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/append.htm"&gt;Append—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;(Python example at the bottom of the page) into the SDE Binary data. In that case, you won't have to reverse engineer the Binary storage and will still be within Esri best practices.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this is what you're looking for.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 00:09:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321512#M25006</guid>
      <dc:creator>JayStrahan</dc:creator>
      <dc:date>2018-02-16T00:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321513#M25007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think what the OP has is a dump of either one or more database tables (&lt;EM&gt;I asked which tables earlier and haven't heard back yet&lt;/EM&gt;) that make up a SDEBINARY feature class.&amp;nbsp; Since his spatial data appears to be SDEBINARY, SQL Server tools like STPointFromText won't know how to work with it because the SQL Server tools are expecting WKT/WKB.&amp;nbsp; It seems a feature class wasn't exported using Esri tools but one of the tables that make up a feature class was dumped using database tools.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there was a simple way to convert SDEBINARY (not fully intact feature classes, just raw SDEBINARY data) to WKB, that would be the way to go, I think.&amp;nbsp; Since the SDE command line tools have been retired, I am struggling to think of what options are available.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:28:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321513#M25007</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-16T16:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321514#M25008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're absolutely right that&amp;nbsp;STPointFromText won't work converting SDEBINARY to other formats, however, I think OP has a few issues merged into that one question. His final being, "&lt;EM&gt;How can I convert my lat/long pairs to this SDEBINARY?&lt;/EM&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simply getting lat/lon pairs into SDEBINARY is the easy part, but once it's in there, I don't know of a way to quickly translate that type back out to lat/lon (or WKB for that matter) completely within SQL, if that's what OP means by "readable". Other than constantly recalculating geometry on new columns within the feature class, since SDEBINARY is a proprietary spatial type, I can't think of a way to do it easily.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/155476/using-python-to-field-calculate-lat-long-with-decimal-degrees-rather-than-meters" title="https://gis.stackexchange.com/questions/155476/using-python-to-field-calculate-lat-long-with-decimal-degrees-rather-than-meters"&gt;arcpy - Using Python to field calculate Lat/Long with decimal degrees rather than meters - Geographic Information System…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 16:47:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321514#M25008</guid>
      <dc:creator>JayStrahan</dc:creator>
      <dc:date>2018-02-16T16:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321515#M25009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do. I have access to their entire production database, so I have all three tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 17:20:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321515#M25009</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-02-16T17:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321516#M25010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Jay Strahan wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Simply getting lat/lon pairs into SDEBINARY is the easy part,&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;How would I go about doing this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are correct though: I have a non-Esri table that uses lat/long pairs to store geodata (points, and lines). My main goal is to take that table and add its entries into a customer's database which is used with ArcGIS. The customer's database has 3 tables (base(?), f, and s). I'm taking my data and inserting it accordingly, but the customer's F table uses SDEBinary instead of lat/longs. I'm struggling with finding an easy way to convert my lat/longs into SDEBinary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eventually I'll want to be able to transform them back from SDEBinary, but that can wait.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you suggest I convert lat/long to SDEBinary?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 17:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321516#M25010</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-02-16T17:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321517#M25011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're looking for a way to do this without using Esri&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;software to convert, I don't think it's possible. If you are open to using multiple steps, then it's more likely.&amp;nbsp;The first issue is that lat/lon fields are not geometry. They're coordinates, probably a number field. We need to get them into a spatial format.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One way to do that is (like&amp;nbsp;Xander Bakker said earlier) to use XY events and make the lat/lon pairs into a point layer. The problem with XY event layers is that they're static (&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/make-xy-event-layer.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/make-xy-event-layer.htm"&gt;Make XY Event Layer—Help | ArcGIS for Desktop&lt;/A&gt;).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another method, since you're working directly in SQL Server, is to use&amp;nbsp;&lt;A class="link-titled" href="https://docs.microsoft.com/en-us/sql/t-sql/spatial-geography/stpointfromtext-geography-data-type" title="https://docs.microsoft.com/en-us/sql/t-sql/spatial-geography/stpointfromtext-geography-data-type"&gt;STPointFromText (geography Data Type) | Microsoft Docs&lt;/A&gt;&amp;nbsp;to convert the coordinate pair into points in a view definition, not a physical table, with a shape column. The new column is a true shape and like SDEBINARY, MS Geometry is another kind of spatial type. It can be read and automatically be recognized as points if dragged into ArcMap. It's a little slower to draw since it performs these conversions every time you pan/zoom/redraw, but if you're just looking for a method for a limited number of points, it's not a deal breaker.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once ArcMap could potentially read the source (originally lat/lon)&amp;nbsp;through its&amp;nbsp;shape column, you can use ArcGIS tools to append the data and map the attribute fields accordingly. Here's where it gets limiting for your use case. Every different spatial type is written differently in its values. You'll need Esri tools to convert between them. Running an Append tool (which can be scripted through ArcPy) will automatically make the conversion between source and destination behind the scenes with client-side processing.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Feb 2018 18:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321517#M25011</guid>
      <dc:creator>JayStrahan</dc:creator>
      <dc:date>2018-02-16T18:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321518#M25012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;I have access to their entire production database, so I have all three tables.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I must admit, I am confused by this last response.&amp;nbsp; If the three tables exist in a production database, it is likely the production database is a geodatabase, right?&amp;nbsp; It would be highly unusual to have 3 geodatabase-type of tables sitting an a database that isn't a geodatabase.&amp;nbsp; Is the production database a geodatabase?&amp;nbsp; If not, do you have any idea how/why 3 tables that are specific to a geodatabase are residing in a non-geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 14:35:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321518#M25012</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2018-02-18T14:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321519#M25013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the help. I've since realized I need to bite the bullet and just use ArcPy. It did exactly what I needed it to do, and with much ease (after a steep learning curve!). The downside is that I have modules that do not work with the Python environment used by ArcPy, so I am rewriting some of my existing code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:33:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321519#M25013</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-03-08T16:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321520#M25014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joshua, thanks for all the help you provided. In the end I realized I just need to use ArcPy. Unfortunately, some of my existing code doesn't work in the Python interpreter supplied by ArcGIS Desktop, and therefor needs rewriting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for not only helping me with the problem, but helping me learn as I dove straight into ArcGIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:39:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321520#M25014</guid>
      <dc:creator>MatthewSanders1</dc:creator>
      <dc:date>2018-03-08T16:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create and add SDEBINARY points to database?</title>
      <link>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321521#M25015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JAY!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right, it sounds like someone had an SDEBINARY feature class in SQL Server then just gave him the base, s and f tables (the f table will have a points column with a hex data).&lt;/P&gt;&lt;P&gt;If that is the case, then there are better methods to send this data to you in the future.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2018 17:36:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-do-i-create-and-add-sdebinary-points-to/m-p/321521#M25015</guid>
      <dc:creator>TinaMorgan1</dc:creator>
      <dc:date>2018-03-08T17:36:12Z</dc:date>
    </item>
  </channel>
</rss>

