Hello,
I have a problem while using spatial methods in a procedure.
I have a simple data model:
Table with two ST_POINT columns("GEOLOCATION" and "GEOLOCATION_RS") for 2 points. I use the WGS84 reference system.
And I want to know the distance between these points:
SELECT "GEOLOCATION".ST_Distance("GEOLOCATION_RS")
FROM "PLG_MOMA"."plg.moma.core.data::MOMA.TMOBMRO";
In the SQL console this works,
The same select in a procedure gives me the following error:
Could not execute 'call "_SYS_BIC"."plg.moma.core.procedures/PositionComplianceGauge"( ? )' in 59 ms 264 µs .
SAP DBTech JDBC: [257]: sql syntax error: [257] "_SYS_BIC"."plg.moma.core.procedures/PositionComplianceGauge": line 6 col 2 (at pos 306): [257] (range 3) sql syntax error exception: sql syntax error: Syntax for Spatial Functions must be in Objective-style: line 2 col 20 (at pos 168)Please check lines:
What means "Syntax for Spatial Functions must be in Objective-style"?