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
1.8.1.1. Add a Basemap resource
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);
Press Create resource and select Basemap;
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;
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
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);
Press Create resource and select PostGIS connection;
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);
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
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);
Press Create resource and select PostGIS layer;
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;
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
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);
Press Create resource and select WMS connection;
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;
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
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);
Press Create resource and select WMS layer;
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;
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
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);
Press Create resource and select TMS connection;
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;
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
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);
Press Create resource and select TMS layer;
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;
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.