1.16. How to manage data with desktop app NextGIS 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 NextGIS QGIS.

To make it super-easy we’ve created NextGIS Connect plugin. After successfull installation you’ll see NextGIS Resources panel on the right side of the screen.

1.16.1. Establishing Web GIS connection

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

  • Open Settings dialog from NextGIS Connect control panel;
  • Press New button;
  • In the opened dialog window fill in fields URL (for example, http://examples.nextgis.com) and Name (this name will be used in a list of available connections). In order to be able to create and delete resources uncheck a checkbox As guest and fill in fields User name and Password;

Note

User name and Password to access your Web GIS are sent by email after you requested to create it (might take time). Email that you provided at my.nextgis.com is used. User name and password can also be assigned later by Web GIS administrator through its Control panel.

  • Press Ок button. If the connection is established successfully you’ll see your Web GIS resources tree in the plugin window.
../../_images/NGConnect_connection.gif

1.16.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.16.2.1. Creating and uploading vector data to Web GIS:

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.

Warning

When creating vector layers in QGIS from scratch for further upload to Web GIS use coordinate system EPSG:3857.

  • 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.16.2.2. Uploading raster data to Web GIS:

  • Upload to QGIS raster layers 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.16.2.3. Creating and uploading a whole QGIS project to Web GIS:

  • 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 Resources 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;
  • In the opened dialog window fill in the name of the new Resource group to which the project will be imported;
  • 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) 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_project_import.gif

1.16.3. 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;
  • Select Create WFS service in 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;
  • If WFS service is created successfully you’ll see it in the relevant Resource group. The Vector layer is already connected to it.

Note

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

../../_images/NGConnect_wfs_service.gif

1.16.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;
  • 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;
  • If editing went successful you’ll be able to see the changes at once in Web GIS Feature table and Web map web client.
../../_images/NGConnect_data_edit.gif

1.16.5. 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;
  • 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.

Note

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

../../_images/NGConnect_data_export.gif

1.16.6. 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.16.7. 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.