<?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: Convert Lat/Longs to Blob/Shape-thing in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95000#M578</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what the long hex string represents?&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;it&amp;nbsp;a "spatial data structure"?&lt;/P&gt;&lt;P&gt;If so, where are these referred to in the ESRI docs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Aug 2019 22:30:38 GMT</pubDate>
    <dc:creator>EricThomas2</dc:creator>
    <dc:date>2019-08-09T22:30:38Z</dc:date>
    <item>
      <title>Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94996#M574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to POST lat/longs to a database that feeds Portal. My GIS guy says I need to convert the lat/longs to a "Blob/Shape" as shown below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. What is this Blob/Shape-thing?&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;How&amp;nbsp;do I programmatically convert Latitude and Longitudes to&amp;nbsp;this Blob/Shape-thing WITHOUT using ArcGIS desktop or Python?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an API / service somewhere that does this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;Convert FROM&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #ce9178;"&gt;35.649783386&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;TO&amp;nbsp;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #ce9178;"&gt;01012d1d003b2d1d0d0000000001000080ded0e3bd188098bb97e013003130310d040000c0050190d9493141a062da26da214841c0050190d9493141a062da26da2148410000000000408fc00000000000408fc03130300000040d413149d9900105c0414821da26da62a0413149d9900105c0414821da26da62a0c08f400000000000c08f400000000000&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 19:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94996#M574</guid>
      <dc:creator>EricThomas3</dc:creator>
      <dc:date>2019-08-09T19:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94997#M575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I really hope some of the terminology from your "GIS guy" was lost in translation and that he isn't saying "blob/shape" because that is sufficiently vague to mean many things and nothing.&amp;nbsp; Ask your GIS guy what spatial format, specifically, he can work with if not text-based coordinates.&amp;nbsp; Also, are you just working with points?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 20:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94997#M575</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-08-09T20:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94998#M576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;‌, thanks for the quick reply.&amp;nbsp;&lt;BR /&gt;Yes, only points.&lt;/P&gt;&lt;P&gt;As far as I know, we work with whatever format this thing is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ce9178; background-color: #1e1e1e;"&gt;01012d1d003b2d1d0d0000000001000080ded0e3bd188098bb97e013003130310d040000c0050190d9493141a062da26da214841c0050190d9493141a062da26da2148410000000000408fc00000000000408fc03130300000040d413149d9900105c0414821da26da62a0413149d9900105c0414821da26da62a0c08f400000000000c08f400000000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Do you have any details on what exactly this is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 20:08:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94998#M576</guid>
      <dc:creator>EricThomas2</dc:creator>
      <dc:date>2019-08-09T20:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94999#M577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For starters, 35.649... isn't a complete coordinate, it is just a number.&amp;nbsp; I have a hard time believing that long hex string is the direct translation of 35.649....&amp;nbsp; But beyond that, I am not going to start guessing spatial data structures.&amp;nbsp; Your GIS guy really just needs to tell you what it is, and if he can't then he isn't really a GIS guy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 22:27:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/94999#M577</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-08-09T22:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95000#M578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joshua,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know what the long hex string represents?&lt;/P&gt;&lt;P&gt;Is&amp;nbsp;it&amp;nbsp;a "spatial data structure"?&lt;/P&gt;&lt;P&gt;If so, where are these referred to in the ESRI docs?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 22:30:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95000#M578</guid>
      <dc:creator>EricThomas2</dc:creator>
      <dc:date>2019-08-09T22:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95001#M579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is Friday and the GIS guy could be messing with you &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2019 23:14:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95001#M579</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-08-09T23:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95002#M580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have good guys &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;. Not worried about them messing with me. Do need to know what these strings represent and how I can convert Lat/Longs appropriately without using ArcGIS Desktop or Python.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Aug 2019 00:01:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95002#M580</guid>
      <dc:creator>EricThomas2</dc:creator>
      <dc:date>2019-08-10T00:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95003#M581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not to belabor the point, but why don't your GIS guys tell you what spatial data format that is?&amp;nbsp; Why do you, or any of us, have to guess?&amp;nbsp; There are numerous binary spatial data formats, so a simple hex string isn't definitive in terms of what format it represents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, take a coordinate for my hometown in WKT format:&amp;nbsp; 'POINT(-92.139 46.807)'.&amp;nbsp; That point in SQL Server in native Geography spatial is 0xE6100000010C9EEFA7C64B67474037894160E50857C0 while that same point in WKB format is 0x010100000037894160E50857C09EEFA7C64B674740.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Aug 2019 01:51:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95003#M581</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-08-10T01:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95004#M582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok. Looks like the spatial data format is:&amp;nbsp;&lt;SPAN style="font-size: 11.0pt;"&gt;DB2 ST_Point format stored in a BLOB field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;STRONG&gt;So back to the original question&lt;/STRONG&gt;: How do I convert Lat/Long text pairs to this format without ArcGIS desktop or Python?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 15:59:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95004#M582</guid>
      <dc:creator>EricThomas3</dc:creator>
      <dc:date>2019-08-15T15:59:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95005#M583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Knowing it is DB2 helps.&amp;nbsp; All databases with native spatial types include a range of geometry constructors that support common spatial data interchange formats, e.g., WKT, WKB, maybe GeoJSON, maybe GML, etc....&amp;nbsp; You should not have to generate the native spatial blob itself, simply pass one of the common spatial data interchange formats to the DBMS geometry constructor.&amp;nbsp; See &lt;A class="link-titled" href="https://www.ibm.com/support/knowledgecenter/en/SS6NHC/com.ibm.db2.luw.spatial.topics.doc/doc/rsbp4057.html" title="https://www.ibm.com/support/knowledgecenter/en/SS6NHC/com.ibm.db2.luw.spatial.topics.doc/doc/rsbp4057.html"&gt;ST_Geometry function - DB2 - IBM Knowledge Center&lt;/A&gt; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 17:56:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95005#M583</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-08-15T17:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95006#M584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the continued guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading through the docs provided,&amp;nbsp;I'm still unclear on how&amp;nbsp;I would POST Lat/Long pairs as "...one of the common&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;spatial data interchange formats to the DBMS geometry constructor".&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #ffffff; "&gt;Example:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The DB2 database has a REST web service that I can POST data to&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;LocID&lt;/STRONG&gt;: 1234&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;Lat&lt;/STRONG&gt;: 47.123&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;Long&lt;/STRONG&gt;: -122.345&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="background-color: #ffffff;"&gt;etc.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;What happens when I get to this &lt;EM&gt;&lt;STRONG&gt;ST_Geometry-type&lt;/STRONG&gt;&lt;/EM&gt; column?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;What do I feed it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Is it a calculated column based on the Lat/Long columns?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 18:28:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95006#M584</guid>
      <dc:creator>EricThomas3</dc:creator>
      <dc:date>2019-08-15T18:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Lat/Longs to Blob/Shape-thing</title>
      <link>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95007#M585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the DB2 database has a REST web service where you can post Lat/Long, and you are working with Points, what is the issue?&amp;nbsp; The REST service should take the Lat/Long and convert it to the appropriate native spatial type on the backend.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2019 18:35:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/convert-lat-longs-to-blob-shape-thing/m-p/95007#M585</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-08-15T18:35:44Z</dc:date>
    </item>
  </channel>
</rss>

