Once the import script has been run on the server we are ready to create references in Earthlight. To create new reference for a layer please follow the steps below:
- Click here to select the repository.
- Highlight layer/s for which you want to create references.
- Select destination folder for references.
- Click Create layer reference to start the operation.
You can also reference spatial views and non-spatial tables which store Easting and Northing data.
Creating reference to Views and Non-spatial tables works in similar way as common table, however it required entering some additional information.
Views
- Choose a view that you want to reference.
- Select your reference location.
- Click Create a new reference button.
Now you need to set your reference settings.
- First, choose a primary key column for your view.
- Set view’s geometry column.
- Specify geometry type.
- Add all the tables that are referenced to your view.
Non-Spatial Tables
In case of Non-spatial tables – select Primary key(1), Easting(2) & Northing(3) columns and set SRID(4).
Web Mapping Service
Here’s the example of usage for some free geology data from http://ogc.bgs.ac.uk/
In order to add a new reference to the WMS layer go to Administration > Create > From Existing Table.
Now you should choose the directory where a reference will be created(1) (this is mandatory to enable the Create web layer referencebutton). Next click the arrow on the Create web layer reference button and choose Create WMS reference(2) option from the drop-down list.
To reference the layer, you have to set all the WMS settings inside the displayed dialog.
- First you have to fill the Address field for the Web Map Service (we used http://ogc.bgs.ac.uk/cgi-bin/BGS_Bedrock_and_Superficial_Geology/wms).
- Choose the version of WMS server (most servers serve all the versions of WMS, so if you are not sure which one is good, you can tryv1.3.0).
- Click the Get capabilities button to get the layer names from the server.
- Choose the layer, you want to reference.
- Write layer name. It has to be at least 3 characters long and consist exclusively of letters, numbers, underscores, spaces and dashes.
- Set SRS (Spatial Reference System) to EPSG:27700.
- Choose the tile images format and click OK.
Now the layer is referenced and ready for use. You can add it to the map.