---
title: "Modify the db file with the collect data"
url: "https://openforis.support/questions/1032/modify-the-db-file-with-the-collect-data"
tags: ["collectearth"]
status: "answered"
score: 0
answer_count: 4
asked: "2017-01-31T23:34:50"
last_activity: "2017-02-03T17:30:42"
source: "Open Foris Support - Q&A Forum"
license: "Copyright Open Foris, 2026. Some rights reserved under creative commons license."
---

# Modify the db file with the collect data

Asked by francisco_lillo_r on 2017-01-31

Hello,
I want to edit the db of collect, in order to eliminate entries that can be noisy in the analysis in saiku and leave in each operator, only those of its corresponding grid.

I have tried to open the db with several programs, but none can open it.

Can i modify the db?


## Answer (score 0, by collectearth on 2017-02-01)

Link: https://openforis.support/questions/1032/modify-the-db-file-with-the-collect-data/1033

Hi Francisco!

The database file used by Collect Earth when using the single user version (SQLite) is located in the file:

**C:\Users\YOU_USERNAME\AppData\Roaming\CollectEarth\collectEarthDatabase.db**

This is an SQLite database. In order to open the SQLite file then you need to use an application such as [SQLite Browser][1].

NOW : The problem is that the data of the plots is stored in a table called **ofc_record** in a format that is not completely readable...you can find the ID of the plot in the column **key1** but other than that you cannot really see what the information for the plot is as it is stored in a binary format in the column **data1**

So you can only remove data if you know what are they IDs of the plots that you want to delete, using a query like :

    DELETE FROM ofc_record WHERE key1 IN ( ID_1, ID_2,ID_3 ... ID_N)


----------
## DATA CLEANSING (USING COLLECT) AS AN ALTERNATIVE##

This is probably what you are looking for as you want to remove/edit plots but want to query the data and search for specific rows but not by ID.

This is an option that is present in the Collect (in the main page) . A video will come shortly explaining how this works as it is a bit complex....

The first step is to import the plots though the Data management option, after that you can start defining the cleaning steps...

![alt text][2]


  [1]: http://sqlitebrowser.org/
  [2]: http://www.openforis.org/support/upfiles/chrome_2017-02-01_12-56-03_1.png


## Answer (score 0, by Open Foris on 2017-02-03)

Link: https://openforis.support/questions/1032/modify-the-db-file-with-the-collect-data/1035

Here is a video on how to use the Collect Data Cleansing functionality :
 [LINK TO VIDEO][1]


Also there is more info on the manual ![LINK][2] (page 42)


  [1]: https://www.youtube.com/watch?v=Z-_j7eDYrs4
  [2]: http://www.openforis.org/fileadmin/docs/collect/OF_Collect_MANUAL_October2016_WEB.pdf


## Answer (score 0, by francisco_lillo_r on 2017-02-03)

Link: https://openforis.support/questions/1032/modify-the-db-file-with-the-collect-data/1036

Great!

In fact, I am now reviewing the manual, thank you very much !!

Something happens to the video, it fails to reproduce.


## Answer (score 0, by collectearth on 2017-02-03)

Link: https://openforis.support/questions/1032/modify-the-db-file-with-the-collect-data/1037

Try the channel

https://www.youtube.com/channel/UCKwDbo_cf5PhwHDGOIcNA2A
