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:
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
Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.