Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

Geospatial functions using SAP HANA table

$
0
0

Hi,

I am preparing a bootcamp for partners and just want to execute a select statement using a simple Geospatial function (ST_POINT) with data coming from a table. Format of the data in the table in the screenshot below, it is the table "sap.hana.democontent.epm.data::EPM.MD.Addresses"

coming from the SAP HANA Demo project "SHINE" content.

 

Select statement:

 

NEW ST_POINT('POINT(LONGITUDE LATITUDE)', 4326) as LOC from"TRAINING90"."MDAddresses"

 

leads to the error message:

 

Could not execute 'select NEW ST_POINT('POINT(LONGITUDE LATITUDE)', 4326) as LOC from "TRAINING90"."MDAddresses"' in 2 ms 817 µs .

SAP DBTech JDBC: [266]: inconsistent datatype: Well-known Text deserialization failed. Reason: Invalid Number: Unexpected value.!Position: 15. Of input: POINT(LONGITUDE LATITUDE) at function st_point()

 

But this command works:

NEW ST_POINT('POINT(2.111 42.222)', 4326) as LOC from"TRAINING90"."MDAddresses"

 

Is it not possible to use data fields coming from a table withing a ST_POINT function? In the standard SHINE content the data type is "Double" - is this correct?

 

 

Thanks

Wolfgang


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>