I use one featureReader to load Oracle spatial data on my workspace.
How can i choose my geometry like the oracle spatial reader ?
By defaut fme read the first geometry field.
Thank you
I use one featureReader to load Oracle spatial data on my workspace.
How can i choose my geometry like the oracle spatial reader ?
By defaut fme read the first geometry field.
Thank you
Best answer by david_r
I had a look but I cannot see that it is possible. Hopefully somebody else can prove me wrong :-)
Alternatively, you could use an SQLExecutor, where you can specify the column names, and transfer the geomtries as WKB using the Oracle spatial function To_WKBGeometry(), e.g.
SELECT OBJECTID, NAME, SDO_UTIL.TO_WKBGEOMETRY(GEOM3) AS GEOM3 FROM MYSCHEMA.MYTABLE
For this example, you should expose the attributes OBJECTID, NAME and GEOM3 in the SQLExecutor. After the SQLExecutor, insert a GeometryReplacer with OGC Well Known Binary as the geometry encoding.
David
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.