Skip to main content
Question

Oracle Writer Spatial Index Parameters

  • Aug 10, 2015 5:11 PM UTC
  • 2 replies
  • 73 views

tfcw
Contributor
Forum|alt.badge.img+1
I'm using FME Desktop 2013 and writing to a new table with the Oracle SpatialWriter . Is there any way to use the parameters clause for the spatial index creation statement? I'd like to specify a layer_gtype for my spatial indexes.

 

 

For example like

 

 

CREATE INDEX bar_si ON foo(geometry) 

 

INDEXTYPE IS MDSYS.SPATIAL_INDEX

 

PARAMETERS ('layer_gtype=POINT')

 

 

Thanks,

 

Yola
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

davideagle
Contributor
Forum|alt.badge.img+21
  • Contributor
  • Jan 8, 2016 10:15 AM UTC

Are you able to make use of the Advanced Parameter that can run after the translation, found on the writer? Instead of using the dedicated indexing parameters...


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Jan 8, 2016 3:52 PM UTC

I never use the SQL parameters in FME to create the Spatial index on an Oracle table.

To control what you need to do I would create the Metadata before and the Spatial index after inserting the data into the table using SQL scripts or statements in a SQL application (SQLDeveloper, SQL*Plus or Toad). If you need to reload a big table, dropping the Spatial index before inserting and recreating it after inserting the data will boost your performance.

Creating the Metadata before inserting will allow you to add a SRID to the geometry as FME reads the Metadata to define the SRID.