1.6. How to connect data from external sources

Web GIS supports connection of basemaps (TMS services) from external servers, vector geodata from external PostGIS databases and connection of vector and raster geodata from external WMS services.

1.6.1. Basemaps

Note

Only nextgis.com Mini and Premium users have access to creation of Basemaps.

1.6.1.1. Create Basemap:

  1. Open Resource group where you want to create a basemap (by default from the main page of Web GIS you can access Main resource group);
  2. Select Create resource ‣ Basemap on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab. Then in Basemap tab fill in the field URL (if you know the correct link to TMS service) or start typing the name of the basemap in the field Search. If this basemap will be found in QuickMapServices catalog, then URL field will be filled in automatically and option “Use options from QMS” will be activated;
  4. Press Create button. If Basemap is created successfully you’ll see its name in Child resources pane of the relevant Resource group.

Note

We recommend to create a separate “Basemaps” Resource group for storing basemaps which you plan to add to your Web maps.

How to add created basemaps to Web map read here.

1.6.2. External PostGIS databases

1.6.2.1. Create PostGIS connection:

  1. Open Resource group where you want to create a connection (by default from the main page of Web GIS you can access Main resource group);
  2. Select Create resource ‣ PostGIS connection on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab, then in PostGIS connection tab fill in the fields Host, Database, User (if applicable) and Password (if applicable);
  4. Press Create button. If PostGIS connection is created successfully you’ll see its name in Child resources pane of the relevant Resource group.

1.6.2.2. Create PostGIS layer:

  1. Open Resource group where you want to create a data layer (by default from the main page of Web GIS you can access Main resource group);
  2. Select Create resource ‣ PostGIS layer on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab, then in PostGIS layer tab select PostGIS connection and fill in the fields Schema, Table, ID column and Geometry column;
  4. Press Create button. If PostGIS layer is created successfully you’ll see its name in Child resources pane of the relevant Resource group.

Read more about connection of vector geodata from external PostGIS databases to Web GIS here.

If you plan to display PostGIS layer on Web map or publish it using WMS protocol you need to create Style for it.

1.6.3. External WMS services

1.6.3.1. Create WMS connection:

  1. Open Resource group where you want to create a connection (by default from the main page of Web GIS you can access Main resource group);
  2. Select Create resource ‣ WMS connection on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab, then in WMS connection tab fill in the fields URL, Username (if applicable) и Paasword (if applicable) to connect to WMS server;
  4. Press Create button. If WMS connection is created successfully you’ll see its name in Child resources pane of the relevant Resource group.

Warning

WMS server to which you connect should support coordinate system EPSG:3857.

1.6.3.2. Create WMS layer:

  1. Open Resource group where you want to create a data layer (by default from the main page of Web GIS you can access Main resource group);
  2. Select Create resource ‣ WMS layer on the right side of Web GIS admin console;
  3. In the opened dialog fill in the field Display name in Resource tab, then in WMS layer tab select WMS connection, image format and WMS layers you want to add to Web GIS;
  4. Press Create button. If WMS layer is created successfully you’ll see its name in Child resources pane of the relevant Resource group.

Read more about connection of geodata from external WMS services to Web GIS here.