<?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>question Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145468#M32299</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; I had the same train of thought though unfortunately I was not able to treat it as well known binary. The only way I was able to process it so far was either by base64 encoding it or using the ESRI JSON serialization, at which point I was still stuck. I may have to ingest the column in different format perhaps.&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jun 2016 08:17:54 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-06-18T08:17:54Z</dc:date>
    <item>
      <title>I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145466#M32297</link>
      <description>&lt;P&gt;I can't seem to find an applicable UDF to convert base64 string or binary type to an ESRI equivalent geometry type. Can someone recommend a solution? I'm aware of Brandon Wilson's awesome article on HCC.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 02:16:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145466#M32297</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-06-18T02:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145467#M32298</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;, you are always on the cutting edge of new technologies! Regarding your question how about one of ST_*FromWKB functions, like for example &lt;A href="https://github.com/Esri/spatial-framework-for-hadoop/wiki/UDF-Constructors#st_geomfromwkb"&gt;ST_GeomFromWKB. &lt;/A&gt;There are more details about Well-known binary &lt;A href="http://edndoc.esri.com/arcsde/9.1/general_topics/wkb_representation.htm"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/spatial-framework-for-hadoop/wiki/UDF-Constructors#st_geomfromwkb"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 07:50:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145467#M32298</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-06-18T07:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145468#M32299</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt; I had the same train of thought though unfortunately I was not able to treat it as well known binary. The only way I was able to process it so far was either by base64 encoding it or using the ESRI JSON serialization, at which point I was still stuck. I may have to ingest the column in different format perhaps.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 08:17:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145468#M32299</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-06-18T08:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145469#M32300</link>
      <description>&lt;P&gt;solved with&lt;/P&gt;&lt;PRE&gt;add jar hdfs://namenode:8020/tmp/esri/esri-geometry-api.jar;
add jar hdfs://namenode:8020/tmp/esri/spatial-sdk-hive-1.1.1-SNAPSHOT.jar;
add jar hdfs://namenode:8020/tmp/esri/spatial-sdk-json-1.1.1-SNAPSHOT.jar;
use default;
create temporary function st_asgeojson as 'com.esri.hadoop.hive.ST_AsGeoJson';
select st_asgeojson(shape) from table;
&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Jun 2016 09:02:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145469#M32300</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-06-18T09:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145470#M32301</link>
      <description>&lt;P&gt;Glad to hear it works! By the way, what type is "shape"? According to docs: &lt;EM&gt;ST_AsGeoJson(geometry) return GeoJson representation of geometry. &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 09:25:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145470#M32301</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-06-18T09:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145471#M32302</link>
      <description>&lt;P&gt;It is geometry in SQL Server and in Hive it is binary.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jun 2016 09:52:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145471#M32302</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-06-18T09:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145472#M32303</link>
      <description>&lt;P&gt;I can't wait to see this demo!&lt;/P&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:11:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145472#M32303</guid>
      <dc:creator>tmccuch</dc:creator>
      <dc:date>2016-06-19T01:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: I have a binary column in Hive, what is the equivalent ESRI UDF to convert binary or base64 to ESRI ST_GeometryType?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145473#M32304</link>
      <description>&lt;P&gt;a little update, function st_asgeojson only returns a JSON representation of geometry, to really make it useful, you still need to convert it to ST_Geometry type, with that object you can take full advantages of ESRI framework&lt;/P&gt;&lt;PRE&gt;create temporary function st_geomfromgeojson as 'com.esri.hadoop.hive.ST_GeomFromGeoJson';
select st_geomfromgeojson(st_asgeojson(shape)) from table;&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Jun 2016 21:42:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-have-a-binary-column-in-Hive-what-is-the-equivalent-ESRI/m-p/145473#M32304</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-06-19T21:42:13Z</dc:date>
    </item>
  </channel>
</rss>

