View and edit territories in QGIS

 Add theocbase territory layers to a QGIS project

  1. Open or create a new project in QGIS.
  2. Select the menu item Layer>Add Layer>Add Vector Layer...
  3. Chose File as Source type.
  4. Click on the Browse button and select the "theocbase.sqlite" file.
  5. Click on the Open button.
  6. Select the layers you want to use in QGIS:
    • territory: for editing boundaries
      Caution: When editing the geometry in a third party tool like QGIS, theocbase will not be aware of the changes when cloud syncing. In order to upload the changes you need to mark the territories as edited e.g. add a blank in the remark field. In QGIS you can also export the territories into a KML file and import this file in theocbase.
    • territories: for viewing and analizing the territories
  7. Add the layers by clicking on the OK button.

Split a territory

  1. Open the QGIS project with the theocbase territory layer.
  2. Select and copy the territory that you want to split through Edit>Copy Features.
  3. Paste the territory into a new scratch layer by selecting the menu item Edit>Paste Features As>Temporary Scratch Layer....
  4. Click OK in the following Dialog New temporary scratch layer name.
  5. Toggle editing and select the menu item Split Features from the Edit menu.
  6. Start clicking in the map along the line that should split the territory. 
    Note: Start and end outside the territory.
  7. After finishing with a right click, the territory is split apart.
  8. Open the Attribute Table and change the territory number and locality of one part.
  9. Save the changes by Toggle Editing.
  10. Export the scratch layer into a KML file.
  11. Import the KML file in theocbase.

Export into a KML file

  1. Right click the layer you want to export and select Save As...
  2. In the Format field choose Keyhole Markup Language [KML].
  3. Click on the Browse button and select a filename.
  4. Chose the CRS (Coordinate Reference System): EPSG:4326.
  5. In the field Select fields to export and their export options chose the following fields:
    • territory_number
    • locality
  6. Edit the Datasource Options:
    1. Enter locality in DescriptionField.
    2. Enter territory_number in NameField.
  7. Click OK to save the KML file.

By accepting you will be accessing a service provided by a third-party external to https://www.theocbase.net/