1.15. How to edit data

Note

You can use described functionality in Web GIS created in nextgis.com service on Premium plan

Web GIS allows to edit objects, attributes and add descriptions and attachments (including photos) of separate features in Vector layers and PostGIS layers.

1.15.1. Edit a feature on a Web map

  1. Open Web map and select the layer with an feature you need to edit.

  2. Open dropdown menu pressing “Layer” button (see Pic. 1.25.) and tick a box next to “Editing” field.

../../_images/webgis_edit_objects_eng.png

Pic. 1.25. “Layer” menu.

  1. Editing toolbar will appear on a Web map (see Pic. 1.26.):

../../_images/webgis_edit_objects_panel_eng.png

Pic. 1.26. Editing toolbar.

1.15.1.1. Create a new feature (point, line, polygon)

  1. On the editing toolbar activate “Create features” button (it will be highlighted in green, see Pic. 1.27.):

../../_images/webgis_create_new_objects_eng.png

Pic. 1.27. “Create features” button on the editing toolbar.

  1. A blue circle will appear nearby a mouse pointer, with it you can add new features. Click on the map, where you can create a new feature. You can add several new features one after another. While creating a line you need to indicate its start and end points by clicking on a map. While creating a polygon each new click on a map will indicate its new vertice, to finish a polygon you need to click on its start point. During vertices adding an adhesion will work.

  2. To finish new features creation press “Layer” button (see Pic. 1.25.) and clear a tick box next to “Editing” field.

  3. In opened dialog select “Save”, if you want to save changes, select “Don’t save”, if you do not want to save them or “Cancel”, if you want to stay in the edit mode:

../../_images/webgis_finish_editting_eng.png

Pic. 1.28. Dialog window of finishing edits.

1.15.1.2. Delete a feature

  1. On the editing toolbar activate “Delete features” button (it will be highlighted in green, Pic. 1.29.):

../../_images/webgis_delete_objects_eng.png

Pic. 1.29. “Delete features” button on the editing toolbar.

  1. Select features you would like to delete by clicking on them with a left button of a mouse.

  2. Press “Layer” button (see Pic. 1.25.) and clear a tick box next to “Editing” field.

  3. In opened dialog select “Save” (see Pic. 1.28.).

1.15.1.3. Modify a feature

  1. Make sure that on the editing toolbar “Modify features” button is active (it is active by default when you enter the edit mode, see Pic. 1.30.):

../../_images/webgis_change_objects_eng.png

Pic. 1.30. “Modify features” button on the editing toolbar.

  1. Features you can modify will reduce their color intensity.

  2. Select a feature (point) or one of its vertices (line, polygon) with a mouse pointer and holding it with a left button of a mouse change its location, then release on a new place. During vertices modifying an adhesion will work.

  3. Press “Layer” button (see Pic. 1.25.) and clear a tick box next to “Editing” field.

  4. In opened dialog select “Save” (see Pic. 1.28.).

Note

You can edit several layers simultaneously. To do it enter the edit mode in every layer you want to edit. An adhesion will work for features of all editing layers.

1.15.2. Setting of permission for editing

You can change permission for editing in “Update resource” dialog of a Web map. You can find how to enter it in Update resource of NextGIS Web documentation. You can allow or deny editing of all map layers on the “Settings” tab by ticking or clearing a box next to “Enable layers editing” field (see Pic. 1.31.):

../../_images/webgis_allow_editting_eng.png

Pic. 1.31. “Enable layers editing” field.

Note

By default a box next to “Enable layers editing” field is clear.

To forbid some users editing of separate layers add a rule to deny separate users data writing (permission “Data:Write”)on “Permissions” tab of “Update resorce” dialog (see Pic. 1.32.). If user does not have a permission, he cannot enter the edit mode.

../../_images/webgis_forbid_editting_eng.png

Pic. 1.32. Changes of editing permission for separate users.

1.15.3. Edit feature’s attributes

There are 2 ways to edit feature’s attributes: 1) using edit form in Feature table or 2) using edit form in Web map web client (if the relevant layer is added to Web map).

1.15.3.1. Edit attributes using Feature table

  1. Open the Properties page of Vector layer or PostGIS layer;

  2. Select Vector layer ‣ Feature table on the right side of Web GIS admin console;

  3. In the opened dialog window select a feature you want to edit (if necessary search it by its attributes using Search bar) and press Edit button;

  4. In the opened form edit feature attributes values in Attributes tab, add description and attachments in Description and Attachments tabs;

  5. Press Save button. If attributes, description and attachments are saved successfully you’ll be able to view them by selecting the feature in Feature table and pressing Open button.

1.15.3.2. Edit attributes using Web map

  1. Open Web map and switch on the visibility of the relevant layer;

  2. Find a feature on the Web map (if necessary search it by its attributes using Search bar in the Toolbar or in Feature table which can be opened via Layer dropdown menu in the upper left corner of Web map web client. You can quickly find the selected feature on Web map using Go to button in Feature table);

  3. Click on the feature with identify tool. In the opened dialog window with feature properties press Edit button;

  4. In the opened form edit feature attributes values in Attributes tab, add description and attachments in Description and Attachments tabs;

  5. Press Save button. If attributes, description and attachments are saved successfully you’ll be able to view them on Web map by clicking on the feature with identify tool, or by selecting the feature in Feature table and pressing Open button.

Note

Updated attributes in PostGIS layers are saved directly to external PostGIS database. Updated attributes in Vector layers, as well as descriptions and attachments in Vector layers and PostGIS layers are saved to your Web GIS.

Note

You can also edit geometries and attributes of Vector layers features with desktop app NextGIS QGIS.

Read more on data editing here.