cancel
Showing results for 
Search instead for 
Did you mean: 

Do Virtual Tables support ST_POINT or ST_GEOMETRY

ozmike
Explorer
0 Kudos
270

Hi 

I have a Virtual Tables connection from one hana data base to another. I am getting the error ST_POINT or ST_GEOMETRY is not supported when I use the the create virtual table statement. Are these types supported in Virtual Tables ? If not what is the work around . I am trying to migrate some data form one hana database to another using virtual tables. 

Thanks

 

View Entire Topic
ozmike
Explorer
0 Kudos

ok create a view in source system to convert the GEO to text.

create or replace view MYSCHEMA.MYVIEW as ( select
GEOFIELD.ST_AsText() as GEOFIELDTEXT
from "MYSCHEMA.TABLE_WITH_GEO" ) ;

in target system create VT to connect to view

Once the VT is created

Then select GEOFIELDTEXT.ST_GeomFromText() as GEOFIELD  from VT 

The Geo types have been converted back.