4.3 Recommendations for Loading and Validating Spatial Data
You should validate all geometry data, and fix any validation errors, before performing any spatial operations on the data.
The recommended procedure for loading and validating spatial data is as follows:
- Load the data, using a method described in Bulk Loading or Transactional Insert Operations Using SQL.
- Use the SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT function or the SDO_GEOM.VALIDATE_LAYER_WITH_CONTEXT procedure on all spatial data loaded into the database.
- For any geometries with the wrong orientation or an invalid ETYPE or GTYPE value, use SDO_MIGRATE.TO_CURRENT on these invalid geometries to fix them.
- For any geometries that are invalid for other reasons, use SDO_UTIL.RECTIFY_GEOMETRY to fix these geometries.
For detailed information about using any of these subprograms, see the usage notes in its reference information section.
Parent topic: Loading Spatial Data