Editing Data
Dernière mise à jour
Dernière mise à jour
K2 Geospatial 2022
Two tools allow you to create, modify or delete elements on an editable layer:
JMap's Edition extension allows you to create new elements directly in a map-based interface and modify or delete them.
The elements explorer allows you modify attributes of existing elements or delete existing elements in the personal layers.
The JMap administrator included this extension in the JMap Pro application. The user manual of Edition extension, which can be accessed via your application's help menu, provides more details about this extension's functions.
If the edition tools are not visible, you can display them by selecting Edition in the View menu. The graphical user interface of the Edition extension is as follows:
1
Select the type of geometry you wish to create. Your selection must not be incompatible with the type of layer (e.g. you cannot create polygons on a layer of points).
2
Select the layer on which you wish to create elements. If several editable layers have been added to the project (including personal layers), they will all appear in this list. Note: The layer named Annotations is not a personal layer. It is a generic layer on which you can draw freely but it does not allow you to define attributes.
3
4
All editing operations can be canceled individually if they have not been saved. You can also restore canceled actions by clicking on the Redo arrow.
To create new elements you must select the editable layer in the extension Edition window and then the type of geometry of the layer, as indicated in the previous table.
You can create the geometry of each element using the editing tools directly by clicking on the map at the desired position. This section of the user manual of Edition provides details on the subject.
When the geometry is created, the attribute entry form is displayed. You can enter the values of the attributes here. Some attributes are required. The form can only be closed when all the required attributes have been completed.
Some attribute are affected by data validation rules. These rules are configured by the JMap administrator and are used to ensure the quality of the data collected with the form.
Two examples of validation rules:
a) If I select certain values in attribute A, attribute B becomes mandatory.
b) I select a value in attribute A and the attribute B value is calculated automatically.
You cannot save the form if the values you enter do not meet the validation rules.
The following section provides more details on the forms.
You can change the location, geometry, or attributes of cartographic elements.
To modify the attributes of an element you must click on the element in the map with the right button in order to display the pop-up menu. Select the Edit attributes function and select the element you want to edit. Notice that all the elements of the editable layers that are in the place where you clicked are displayed.
The element attributes form displays and you can edit the editable fields.
If the form contains a relevant field, you can add photos (standard and 360 degrees) from your computer's file system. You can also add a title and comments to photos that were entered using a JMap Survey application, or to photos that were uploaded as files in the forms of JMap Pro and JMap Web applications. To do this:
Open the form of the element you want to edit using the Edit attributes function in the pop-up menu. When the pointer moves over a photo, its name is displayed.
Double-click on a photo to open the metadata interface of the photo.
Add or edit the Title of the photo.
Add or edit a Comment. Your comment can contain up to 255 characters.
Metadata of the photo can be included and you can modify its presentation format.
Press OK to close the data interface of the photo.
Press OK to close the form.
Save the changes in the interface of the Edition extension. You can see the new title in the element form.
You can view the changes in the element's form and also in the mouseover bubble, if it has been configured to display the photo. To do so, double-click on the photo of your choice in the mouseover bubble to open the photo viewer. Note that the amount of photos to display in the mouseover bubble and their size can cause a delay in the display of the mouseover bubble. As 360 degree photos are large the delay in the display can be pronounced.
Forms can contain nested subforms. These may be used, for example, to enter information on the inspections performed for an element over time, as shown in the following image.
The pop-up menu offers editing tools for individual elements or for a selection of elements that you have made using the selection tools: you can delete the elements or you can duplicate them to another editable layer.
You must always save or cancel the transactions made in the extension Edition window for the changes to be saved.
You can also batch edit the attributes of a selection of elements from certain layers. Indeed, when a layer contains forms with subforms, you can edit the attributes of the form or of a subform in batches, for a set of elements you have selected. In the case of subforms, editing includes adding new records as well as modifying or deleting existing records.
The following figure illustrates this process.
In the extension Edition window, select the layer you want to edit.
Select elements from the layer using the interactive selection tools.
Open the attributes form of the selected elements using the pop-up menu.
Select the subform records you wish to modify and press Edit.... The subform interface displays.
Modify the attribute values for the set of selected elements.
Press OK to close the subform.
Press Add to add a new record to the subform. The procedure is similar to that of editing existing records.
To delete recordings, select them and press Delete.
Save the transactions made in the extension Edition window. The number of transactions is equal to the number of modifications made (edition, addition or deletion) times the number of elements of the layer selected.
The Edition extension also allows you to edit WKT elements. You can add WKT elements from Tools -> Add WKT geometry in the menu bar. A window opens, allowing you to enter the coordinates of the elements you want to add.
The elements are added in the Annotations layer. They can be saved in a context, where they can be selected and duplicated in other editable layers using the pop-up menu. This menu also allows you to delete elements and modify their vertical position.
The pop-up menu also allows you to edit WKT elements. The Edit WKT geometry function displays the elements of the layers found at the map point where the context menu is open. Select one of the elements to open the window containing the element's coordinates and data. If you have the appropriate permissions, you can edit this data.
1
2
Click on a field to enter or modify the attribute value.
3
Some of the attributes that are displayed cannot be edited (Author, Creation Time, Modification Time, ID JMap). These are system attributes and their values are automatically set by JMap.
Layer elements can also be deleted if Edit mode is enabled.
1
Select the element you want to delete. Press Delete on your computer keyboard.
2
The element disappears from the elements explorer.
3
The transaction must be saved in the Edition extension's window.
When you bring changes (add, modify, delete) to a personal layer, JMap stores the transactions that should be saved. Press to save the layer transactions on the JMap server. Press to reject the transactions and cancel all changes on the layer.
Once you have created the items you should save them by pressing in the Edition extension window.
To change the location of an element, you need to select it with the edition selection tool and move it to the new position.
To modify the geometry of an element, you must select it with the edition selection tool and use the tools to perform node operations of lines and polygons. This section of the user manual of Edition provides details on these operations.
Click on to download the photo.
Element attribute values can be entered or modified directly in the elements explorer of a personal layer. Edit mode must be enabled by pressing .
Press to enable theedit mode. In this mode, all modifiable attribute values can be entered or changed. Afterward, click on a field to change its value. Date fields display a calendar to facilitate data entry. Values that are entered are validated in order to ensure their compatibility with the attribute type. For more information on how to use the elements explorer, refer to Elements Explorer.