Skip to main content
Solved

How to add the geometry to a feature using a query within sql executor?

  • March 29, 2018
  • 1 reply
  • 41 views

arthy
Contributor
Forum|alt.badge.img+8
  • Contributor

Hi,

 

I'm executing the following query
select 'PT' as TEST, sdo_geometry (20019999999, sdo_point_type(1673919.702513986.296NULL), NULL,NULLas geom from dual;

which returns (in sql developper) a geom value of 

MDSYS.SDO_GEOMETRY(20019999999, MDSYS.SDO_POINT_TYPE(1673919.702513986.296NULL), NULLNULL)

How can I add such query in sql executor so that the field geom will be considered as the geometry of the feature?

 

 

Rigth now there is no 'geometry' in the inspector 

 

 

Thanks

Best answer by erik_jan

Make sure you set the parameter to use the result geometry.

And if the source of the workspace is also Oracle, remove the oracle_ attributes as some of the (oracle_type and oracle_geometry) will indicate the type of geometry being oracle_null (= no geometry)..

This is a link to the transformer document SqlExecutor

I assume you have the format set to Oracle Spatial Object or else it will not recognize a geometry.

View original
Did this help you find an answer to your question?

1 reply

erik_jan
Contributor
Forum|alt.badge.img+17
  • Contributor
  • Best Answer
  • March 29, 2018

Make sure you set the parameter to use the result geometry.

And if the source of the workspace is also Oracle, remove the oracle_ attributes as some of the (oracle_type and oracle_geometry) will indicate the type of geometry being oracle_null (= no geometry)..

This is a link to the transformer document SqlExecutor

I assume you have the format set to Oracle Spatial Object or else it will not recognize a geometry.


Reply


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