Exporting a Database in 12c , the SRID is set to null , is there a way that FME can update all SRID to correct coordinate system within FME , would it be Feature class by Feature class or can it be doen for the whole Schema ?
Solved
Updating SRID from null to SRID 27700
Best answer by mark_f
@mantmania definitely a task for SQL in Oracle and have done exactly this in recent months.
- Drop the Spatial Index
- Update USER_SDO_GEOM_METADATA with SRID = 27700
- Update the SRID for each row in each table, but check it has a geometry.I would use:
update<YOUR_TABLE> t set t.<YOUR_GEOMETRY_COLUMN>.sdo_srid = 27700 where t.<YOUR_GEOMETRY_COLUMN> is not null;
- Rebuild the Spatial Index
Tricky parts include making sure any tablespace parameters specified for the Spatial Index are maintained during the Drop/Create index. Remember to manage the commit through the update of the various tables.
To check what tables to update:
select table_name, column_name from user_tab_cols where data_type = 'SDO_GEOMETRY';To check index names and tablespaces:
select SDO_INDEX_NAME,SDO_TABLESPACE from user_sdo_index_info i, user_sdo_index_metadata m where i.index_name = m.sdo_index_name and i.table_name = 'FIELDIM' and i.column_name = 'GEOMETRY';You can wrap it up in a PL/SQL block
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.
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.



