code: protected void dropSpatialIndexIfExists(final String catalogName, final String schemaName,
           final String tableName, final Database database, final List<Sql> list) {
        final DropSpatialIndexGeneratorGeoDB generator = new DropSpatialIndexGeneratorGeoDB();
        final DropSpatialIndexStatement statement = new DropSpatialIndexStatement(null, catalogName,
              schemaName, tableName);
        list.addAll(Arrays.asList(generator.generateSqlIfExists(statement, database)));
     }
docs: Adds the SQL statement to drop the spatial index if it is present.
  
  @param catalogName
  the catalog name.
  @param schemaName
  the schema name.
  @param tableName
  the table name.
  @param database
  the database.
  @param list
  the list of SQL statements to execute.