1.8. 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.8.1. Basemaps

Note

Adding non-standard Basemaps is only available for nextgis.com Mini and Premium users.

1.8.1.1. Add a Basemap resource

  1. Navigate to a Resource group where you want to create a basemap resource (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 keep the basemaps to add your Web maps.

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

1.8.2. External PostGIS databases

1.8.2.1. Create a 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.8.2.2. Create a 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.

Read more about connecting to external PostGIS databases 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.8.3. External WMS services

Note

Currently supported WMS versions 1.1.1 and 1.3.0.

1.8.3.1. Create a 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 must support EPSG:3857 coordinate system.

1.8.3.2. Create a 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.

Read more about connecting to external WMS servers here.

1.8.4. External TMS services

1.8.4.1. Create a 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.8.4.2. Create a 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.

Read more about connecting to external TMS services here.