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

HANA Spatial - "SRID does not match" at function ST_Distance

$
0
0

Hi,

 

I have a problem with the ST_Distance method. I want to calculate the top 10 distances between a fix Geolocation and various locations stored in a table and they should be ordered by Distance ascending. Therefore I want to use 4326 as SRID and I am not allowed to use "ALTER TABLE" to insert colums with ST_POINT as Datatype. The table I use contains Longitude (Float), Latitude (Float) and a Geopoint with SRID 4326 (VARBINARY).

 

I tried a lot of different statements but did not get a result I can work with (attached PDF - I choose a PDF because I couldn't attach more than 3 pictures?!).

For example: SRID = 0 is default but returns decimal degree as result value which is useless for me.

 

 

I hope there is someone out there who can help me.

 

Cheers,

David

 

 

By the way: Hana is on SP8.


Viewing all articles
Browse latest Browse all 6412

Trending Articles