Connection To The Server C3SL
Connection To The Server C3SL
Windows/Linux (For linux look at the end of the document in Notes section)
Requirements
Putty
1. Session
4. Connection -> SSH -> Tunnels -> Add new forwarded port:
a. Source Port: 5435
b. Destination: localhost5432
c. Click ADD.
5. Come back in Sessions, create a name for this connection, in the example images we use
CS3L, save it, next time you will only need to click twice in the name of the connection.
6. Click twice in the name of the connection, a prompt window will open, in this window
you will type the passphrase, which in this case is: N@oinvadaservidores.
7. If the connection was sucesssful a Debian GNU/Linux will be written, with this
connection open now we will move to the pgadmin software.
PgAdmin
4. After the connection you can access the SQL formatted data, and its schemas and
tables.
QGIS
1. Star the QGIS 2.18 Desktop and click on the elephant icon and new connection on the
pop-up window.
2. Insert the connection information, Name: BIGSEA, Host: localhost, Port: 5435,
Database: bigsea, Username: postread, Password: PostRead (save this for next time),
press ok, and connect, after the connection close the pop-up window.
3. Now we will add map layers to our data, by installing openlayers plugin, to do that, go
to the plugins menu, click on Manage and Install plugins… Will open a pop-up window,
in this window we will search for the required plugin and install it by clicking on Install
Plugin after selecting it.
4. After install openlayers, it can be accessed thru web menu, to add data form the tables
into qgis system, go to the browser panel after refreshing it, and select PostGis->
BIGSEA and add the tables that you choose, by clicking twice, it will be available in the
layers panel. In the example, we can see the bus lines (linhas de onibus in Portuguese).
5. In the layers panel we can add more than one table or even a layer from openlayers
plugin, the layers can be changed in front of other by ordering them in layers panel,
one more thing to is set the coordinate reference, for the data used is the SAD69/
UTM zone 22s, EPSG:29192, to change it you can click with right button on the data
selected and select properties->general->coordinate reference system.
6. Now the data is set and the final result, using openlayers with maps view is:
Notes:
1. The process for windows and linux is quite similar, with one “exception” the function
of tunneling can be done via shell without the use of putty application, by the
command: ssh -i keyfile -L 5435:localhost:5432 [email protected] in the
folder which is located the keyfile.
2. The openlayers uses Python to load the data; it is recommended the use of 2.7 version.
3. The keyfiles are located in the email, .ppk are for windows putty and without
extension is the version for linux
4. The version of the applications cited in the start of the document is related to the
support of the tools, such as SQL querrier and openlayers plugin.