Edição de dados espaciais
A publicação de mapas pode permitir que os utilizadores editem determinados dados. Oferece também a capacidade de limitar possíveis alterações:
adicionar um objeto espacial
modificação da geometria
alteração de dados
eliminar um objeto espacial
O recurso está disponível na barra de menus do Lizmap. O menu de edição permite selecionar os dados a serem atualizados.
Uma vez selecionada a camada, o painel de edição aparece. O mesmo varia de acordo com a configuração desejada para a publicação de mapas. Se houver alguma alteração disponível, terá que escolher entre Adicionar um novo objeto ou Selecionar um existente.
Se selecionou Adicionar, será convidado a desenhar um forma simples que depende da camada de dados selecionada:
ponto
linha
polígono
No caso de linha e polígono, é necessário clicar várias vezes para desenhar a forma desejada.
Para terminar sua linha ou o seu polígono deve adicionar o último ponto clicando duas vezes no local desejado. Uma vez terminado o desenho, será apresentado um formulário de edição com os respetivos campos.
Se quiser reiniciar o desenho da geometria, clique em Cancelar.
Se a geometria estiver correta e se já tiver inserido as informações necessárias, poderá Guardar. O novo objeto será adicionado. O mesmo poderá ser atualizado, selecionando-o.
Para selecionar um objeto a ser atualizado, precisa de clicar no mapa e de seguida no botão Editar.
O objeto selecionado aparece no mapa e sua geometria pode ser alterada imediatamente.
You can undo geometry changes and stop edition using the Cancel button.
To validate your geometry modifications, you must click Save.
If you want to remove a point on a geometry, you must hover it and type Del on your keyboard.
Digitizing button is displayed with line and polygon geometries, by clicking it, you’ll access those tools:
Node tool (default). Move or delete the geom nodes (vertices) and also create new ones by dragging virtual nodes in the middle of the segments.
Drag tool. Translate a geometry by dragging the displayed point at the center of the geometry.
Rotate tool. Rotate a geometry by dragging the displayed point at bottom right of the geometry.
Reshape tool.
Split tool.
Reverse geom (To be used with the node tool). Reverse nodes (vertices) order. Useful for streets when their circulation orientation is reversed for example.
Copy existing geometry
When creating or editing a feature, you can copy the geometry of an existing feature from any visible layer that is published as WFS. This is useful when you need to create features with similar shapes to existing ones.
Start editing a layer by clicking Add or selecting an existing feature to edit.
Click the Copy and paste an existing geometry button in the digitizing toolbar. The draw tool is temporarily deactivated and the cursor changes to a crosshair.
Click on the map at the location of the feature whose geometry you want to copy. Lizmap will query all visible WFS-enabled layers at that position.
A popup appears listing the features found at the click location. Only features with a compatible geometry type are shown (e.g. when editing a polygon layer, only polygon features are listed).
Hover over a row in the popup to highlight the corresponding feature on the map.
Click on a row to copy that geometry into your current editing session.
The copied geometry is applied and the draw tool is reactivated. You can continue to modify the geometry or save the feature directly.
To cancel the copy operation, click the Copy and paste an existing geometry button again to deactivate it.
Dica
Only layers that are visible, with the popup enabled and published as WFS can be queried. If a visible layer does not appear in the feature list, contact your administrator to ensure the layer has these capabilities enabled.