Created on 04-10-2017 01:38 PM - edited 09-16-2022 04:26 AM
How to store ST_GEOMETRY data type in Hive
Created 04-12-2017 11:31 AM
Hi Gaurav,
That looks like a datatype from Esri Spatial framework . Looking at the docs, you can store a geometry as OGC well-known text (=String) and read it back as a ST_GEOMETRY with the UDF st_geomfromtext: https://github.com/Esri/spatial-framework-for-hadoop/wiki/UDF-Constructors#st_geomfromtext
Regards,
Ward
Created 04-12-2017 11:06 AM
Kindly let me know the resolution for storing ST_GEOMETRY data type in Hive
Created 04-12-2017 11:31 AM
Hi Gaurav,
That looks like a datatype from Esri Spatial framework . Looking at the docs, you can store a geometry as OGC well-known text (=String) and read it back as a ST_GEOMETRY with the UDF st_geomfromtext: https://github.com/Esri/spatial-framework-for-hadoop/wiki/UDF-Constructors#st_geomfromtext
Regards,
Ward
Created 04-21-2017 11:43 AM
Thanks Ward !! Currently the Spatial data is stored in oracle with data type as ST_GEOMETRY. I have checked in hive, we can't store ST_GEOMETRY datatype. All what we have to do is to change the data type in oracle and store in hive. Now changing the data type in oracle is again a big challenge as ST_AsText(ST_Geometry) or any other function don't work in oracle.