1.26. How to manage data with desktop app QGIS

You can upload, edit and perform other operations with geodata in your Web GIS not only in admin console but also with desktop app QGIS.

To make it super-easy we’ve created NextGIS Connect plugin. You can update the module through the menu Modules -> Manage Modules -> NextGIS Connect. After successfull installation you’ll see NextGIS Connect panel on the right side of the screen.

1.26.1. Establishing Web GIS connection

After successful installation of the module, a panel will appear on the right side of the screen NextGIS Connect.

First you need to establish a connection to your Web GIS:

  • Open Settings dialog from NextGIS Connect control panel;

../../_images/NGconnection_main_en.png

Pic. 1.88. Selecting NextGIS Connect Settings

  • Press New button;

../../_images/NGconnection_new_en.png

Pic. 1.89. NextGIS Connect Settings widnow

  • In the opened dialog window fill in fields URL (for example, https://examples.nextgis.com) and Name (this name will be used in a list of available connections). Uncheck the checkbox As guest and enter the your NextGIS ID username (or the e-mail you used to register) and password;

../../_images/NGconnection_create_en.png

Pic. 1.90. Creating new connection

Note

Only the owner of the Web GIS and users added to the team can create and delete resources in the Web GIS.

  • Press Ок button. The name of the new connection will appear in the Settings window. Press Close. If the connection is established successfully you’ll see your Web GIS resources tree in the plugin window.

../../_images/NGconnection_complete_en.png

Pic. 1.91. Completing the creation of a new connection

../../_images/NGconnection_result_en.png

Pic. 1.92. Web GIS resources tree in the plugin window

1.26.2. Creating and uploading data

NextGIS Connect plugin enables a fast upload of raster and vector data and whole QGIS projects to Web GIS. You’ll be able to publish your maps and geodata online very quick and easy.

1.26.2.1. Uploading vector data

Warning

You can avoid data format limitations when uploading vector data to Web GIS through NextGIS Connect by switching on options “Rename forbidden fields” and “Fix incorrect geometries” in Settings dialog.

  • Create in QGIS from scratch or upload from ESRI Shape, GeoJSON or CSV files vector layers. Tailor their styles;

  • Select in NextGIS Connect Resources panel Resource group to which you want to upload your data;

  • Select in QGIS Layers panel a vector layer which you want to upload to Web GIS;

  • Press Import selected layer button on NextGIS Connect control panel or select NextGIS Connect –> Import selected layer in layer context menu;

  • If data is uploaded successfully you’ll see in the relevant Resource group a new Vector layer with QGIS style tailored by you.

1.26.2.2. Uploading raster data

  • Add raster layers to QGIS from GeoTIFF files;

  • Select in NextGIS Connect Resources panel Resource group to which you want to upload your data;

  • Select in QGIS Layers panel a raster layer which you want to upload to Web GIS;

  • Press Import selected layer button on NextGIS Connect control panel or select NextGIS Connect –> Import selected layer in layer context menu;

  • If data is uploaded successfully you’ll see in the relevant Resource group a new Raster layer with default Raster style.

1.26.2.3. Uploading basemaps

  • Add basemaps to QGIS via TMS;

  • Select in NextGIS Connect Resources panel Resource group to which you want to add your basemap;

  • Select in QGIS Layers panel a basemap which you want to upload to Web GIS;

  • Press Import selected layer button on NextGIS Connect control panel or select NextGIS Connect –> Import selected layer in layer context menu;

  • If a basemap is uploaded successfully you’ll see it the relevant Resource group.

You need to be on Mini or Premium to work with basemaps.

1.26.2.4. Creating and uploading a whole QGIS project

  • Create a QGIS project with raster and vector layers. Tailor their styles, group them, set their hierarchy and visibility settings. Set the map extent;

  • Select in NextGIS Connect panel Resource group to which you want to upload the project;

  • Press Import current project button on NextGIS Connect control panel or select NextGIS Connect –> Import current project in any layer context menu;

../../_images/NGConnect_import_menu_en.png

Pic. 1.93. Choosing “Import current project” in the NextGIS Connect panel. Target resource group is highligthed in blue

  • In the opened dialog window fill in the name of the new Resource group to which the project will be imported;

../../_images/NGConnect_import_name_en.png

Pic. 1.94. Entering the name of the imported project

  • If the project is uploaded successfully you’ll see in a selected Resource group a newly created group with: 1) all Raster and Vector layers to which Import selected layer operation is applicable, and their Styles; 2) automatically created Web map with a set extent, to which all the imported layers are added with groups, hierarchy and visibility settings similar to QGIS.

Note

The fastest way to go to the newly created Web map is by pressing Open map in browser button on NextGIS Connect control panel or select Open map in browser in map’s context layer.

../../_images/NGConnect_import_view_en.png

Pic. 1.95. Opening the newly created Web Map via context menu of the imported project

1.26.3. Creating WFS and WFS services

NextGIS Connect module allows you to quickly publish Vector layers to Web GIS using standard protocols WFS and :term:` WMS`.

1.26.3.1. Creating WFS services

NextGIS Connect plugin enables a fast publication of Vector layers from your Web GIS using standard WFS protocol.

It’s possible due to the quick creation of WFS service option in NextGIS Connect:

  • Select in NextGIS Connect Resources panel Vector layer which you want to publish using WFS protocol;

../../_images/NGConnect_wfs_select_en.png

Pic. 1.96. Selecting vector layer

  • Select Create WFS service in layer context menu;

../../_images/NGConnect_wfs_context_en.png

Pic. 1.97. Selecting “Create WFS service” in the Vector layer context menu

  • In the opened dialog window set the number of layer’s features to be published via WFS service by changing the value of the field The number of objects returned by default;

../../_images/NGConnect_wfs_number_en.png

Pic. 1.98. Number of objects returned by default

  • If WFS service is created successfully you’ll see it in the relevant Resource group. The Vector layer is already connected to it.

../../_images/NGConnect_wfs_result_en.png

Pic. 1.99. Newly created WFS service

Note

You can edit the settings of WFS service (including its name, published layers and their settings) in the Web GIS admin console.

1.26.3.2. Creating WMS services

To do this the module provides a quick creation operation WMS service. The process is similar to creation of WFS service (see above)

  • In the desktop application (QGIS) in the resource Web GIS tree of module NextGIS Connect select Vector layer that you want to publish via the WMS protocol;

../../_images/NGConnect_wfs_select_en.png

Pic. 1.100. Selecting vector layer

  • Select Create WMS Service in the context menu of the layer;

../../_images/NGConnect_wms_context_en.png

Pic. 1.101. Selecting “Create WMS service” in the Vector layer context menu

  • In the dialog that opens select a layer style for publishing the WMS Service;

../../_images/NGConnect_wms_style_en.png

Pic. 1.102. Selecting layer style

  • If the WMS Service has been created successfully, then a new WMS Service will appear in the corresponding Resource Group, to which your Vector Layer is already connected.

../../_images/NGConnect_wms_result_en.png

Pic. 1.103. Newly created WMS service

1.26.4. Editing data

NextGIS Connect plugin enables an easy editing of geometries and attributes of Vector layers features.

It’s possible due to the use of standard WFS protocol (with feature edit support):

  • Publish via WFS protocol Vector layer which features you’re going to edit;

  • Select in NextGIS Connect Resources panel the relevant WFS service;

  • Press Add to QGIS button on NextGIS Connect control panel or select Add to QGIS in service context menu;

../../_images/NGConnect_edit_add_en.png

Pic. 1.104. Adding layer to QGIS using WFS service

  • If operation is successful you’ll see in QGIS Layers panel a new group of WFS layers published via selected WFS service;

  • Edit features’ geometries and attributes in added WFS layers using standard QGIS tools;

../../_images/NGConnect_edit_process_en.png

Pic. 1.105. Added layer in the Layers panel

  • Press the “Toggle Edit” button to finish editing and press “Save” in the opened window.

../../_images/NGConnect_edit_save_en.png

Pic. 1.106. Saving changes

  • If editing went successful you’ll be able to see the changes at once in the Web GIS Feature table and Web Map web client.

1.26.5. Updating data

NextGIS Connect allows you to update the content of an existing Web GIS vector layer keeping its styles, attribute aliases and other settings.

Warning

All target layer data including attachments (photos or documens) will be cleared. If you need to save them - update via WFS instead.

To update (overwrite) layer’s data:

  • Select the vector layer in QGIS Layers panel the contents of which you need to send to a vector layer in Web GIS;

  • Select the vector layer in NextGIS Connect panel the contents of which you need to overwrite;

  • Right click on the last layer and choose Overwrite selected layer.

Layer resource identifier will also be kept. Overwrite assumes that both layers have the same structure.

../../_images/NGconnect_vector_overwrite_en.png

Pic. 1.107. Overwriting layer with the new version via context menu

1.26.6. Updating styles

  • Add layer to QGIS via Connect

  • Change the style of the layer (color, line width, etc.)

  • Next select Import/Update style, highlighting the style of the desired resource in the right pane

After these operations, the NextGIS Connect module will remove the old style of the layer from the Web GIS and load the new one leaving all data and attachments intact.

1.26.7. Exporting data

NextGIS Connect plugin enables a fast export of vector data from Web GIS to QGIS for further processing, analysis, saving in different formats and other data operations.

It’s possible due to the option of fast creation of GeoJSON vector layers in QGIS using vector data from Web GIS:

  • Select in NextGIS Connect Resources panel Vector layer which you want to export to QGIS;

  • Press Add to QGIS button on NextGIS Connect control panel or select Add to QGIS in layer context menu;

../../_images/NGConnect_export_select_en.png

Pic. 1.108. Exporting vector layer from Web GIS

  • If the layer has multiple QGIS styles, select one in the pop-up window.

../../_images/NGConnect_export_select_style_en.png

Pic. 1.109. Selecting QGIS style for export

If the layer is exported successfully you’ll see in QGIS Layers panel a new GeoJSON vector layer which you can use in your projects or save to your device in a required format.

  • To save the layer select it in the Layers panel, then open the “Layer” menu in the main menu panel and press Save as or use the context menu of the “Layers” panel to select Export ‣ Save features as.

  • In the opened window select the desired file type and enter the name for the file.

../../_images/NGConnect_export_save_en.png

Pic. 1.110. Saving the exported layer to the device

Note

Geometry and attributes data export is supported. Styles, descriptions, metadata and images of the objects can’t be exported in the described way.

1.26.8. Creating Resource groups

NextGIS Connect plugin enables a fast creation of Resource groups in Web GIS. For that:

  • Select in NextGIS Connect Resources panel Resource group where you want to create a new Group;

  • Press Create new group button on NextGIS Connect control panel or select Create new group in group context menu;

  • In the opened dialog window fill in the name of the new Resource group;

  • If Resource group is created successfully you’ll see it in the Web GIS resources tree in the plugin window.

1.26.9. Deleting resources

NextGIS Connect plugin enables a fast deletion of any resources from Web GIS. For that:

  • Select in NextGIS Connect Resources panel a resource you want to delete;

  • Select Delete in resource context menu;

  • If resource is deleted successfully it will disappear from Web GIS resources tree in the plugin window.

More info about NextGIS Connect.