Skip to main content
Question

SQL Executor - Oracle Spatial Object with two tables having a geometry

  • July 4, 2024
  • 1 reply
  • 39 views

katt
Supporter
Forum|alt.badge.img+12
  • Supporter

Hello,

I am using the SQL Executor to read two tables from oracle using a join.

I would like to use Oracle Spatial Object as Format to have the geometry included.

This is my sql query:

select a.nm, a.fid, b.mlpst, b.feat
from t_csm a
join t_fl b
on a.clss=b.clss

Both table a and b have a geometry (GEOM). When I use SQL Executor - Oracle Spatial Object, how can I know the geometry of which table will be used ? I want it to be the geometry of table b but I don’t how to specify it. The geometries of these two tables are not the same and my next transformer is the neighborfinder so it makes a big different if I use the geometry of table a or table b.Thanks for your help.

1 reply

geomancer
Evangelist
Forum|alt.badge.img+48
  • Evangelist
  • July 4, 2024

Add the appropriate GEOM attribute to your query, so

select a.nm, a.fid, b.mlpst, b.feat, a.GEOM
from t_csm a
join t_fl b
on a.clss=b.clss

(or maybe replace a.GEOM with b.GEOM)


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings