1.7. 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.7.1. Basemaps

Note

Creating Basemaps is only available for nextgis.com Mini and Premium users.

1.7.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 access the Main resource group);

  2. Select Create resource ‣ Basemap on the right side of Web GIS admin console;

  3. In the opened dialog, go to Resource tab and type a name for the new basemap in the field Display name. 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 is found in QuickMapServices catalog, the 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 creating a separate “Basemaps” Resource group to store basemaps which you plan to add to your Web maps.

Find out how to add basemaps you created to the Web map here.

1.7.2. External PostGIS databases

1.7.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 access the Main resource group);

  2. Select Create resource ‣ PostGIS connection on the right side of Web GIS admin console;

  3. In the opened dialog, go to Resource tab and type a name for the new connection in the field Display name. 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.7.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 access the Main resource group);

  2. Select Create resource ‣ PostGIS layer on the right side of Web GIS admin console;

  3. In the opened dialog, go to Resource tab and type a name for the new layer in the field Display name. 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.

Note

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 a Style for it.

1.7.3. External WMS services

1.7.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 access the Main resource group);

  2. Select Create resource ‣ WMS connection on the right side of Web GIS admin console;

  3. In the opened dialog, go to Resource tab and type a name for the new connection in the field Display name. Then in WMS connection tab fill in the fields URL, Username (if applicable) and Password (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 EPSG:3857 coordinate system.

1.7.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 access the Main resource group);

  2. Select Create resource ‣ WMS layer on the right side of Web GIS admin console;

  3. In the opened dialog, go to Resource tab and type a name for the new layer in the field Display name. 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.

Note

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

1.7.4. External TMS services

1.7.4.1. Create TMS connection:

  1. Open Resource group where you want to create a connection (by default, from the main page of Web GIS you access the Main resource group);

  2. Select Create resource ‣ TMS connection on the right side of Web GIS admin console;

  3. In the opened dialog, go to Resource tab and type a name for the new connection in the field Display name. Then in TMS connection tab select the mode for connection with TMS server (Custom or NextGIS geoservices) and enter URL template, API key parameters and tile scheme;

  4. Press Create button. If TMS connection is created successfully, you’ll see its name in Child resources pane of the relevant Resource group.

1.7.4.2. Create TMS layer:

  1. Open Resource group where you want to create a data layer (by default, from the main page of Web GIS you access the Main resource group);

  2. Select Create resource ‣ TMS layer on the right side of Web GIS admin console;

  3. In the opened dialog, go to Resource tab and type a name for the new layer in the field Display name. Then in the Tile cache tab choose cache settings, and in the TMS layer tab select the required TMS connection and set up display parameters;

  4. Press Create button. If TMS layer is created successfully, you’ll see its name in Child resources pane of the relevant Resource group.

Note

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